The submit button does not get clicked when tried in the window which is opened by Chrome driver (Even tried hitting the button manually in the Chrome controlled window) in the Automated run(Using pytest selenium-python).
However there is no issue with the button in the application as I am able to click the same button manually in the application.
Below is the HTML for the submit button:
<a title="Submit" rel="tool" data-placement="bottom" data-bind="click: showSubmitPopup, css: {'btn': true, 'disabled': workflow.isDirty()}, visible: work.id() != null" class="btn" style="">
<i class="ka ja-jw ka-play"></i>
</a>
I tried the below methods which didn't work:
1.) driver.find_element(By.CSS_SELECTOR, "[title='Submit'] > .a").click()
2.) driver.execute_script('arguments[0].scrollIntoView();', element)
3.) ActionChains(driver).move_to_element_with_offset(element, 0, 0).perform()
4.) driver.get_action_driver().move_to_element(element).click().perform()
5.) Updated the chrome & chrome driver to latest version
Any pointers appreciated !!
Error Finding Elementfor the next element after the submit button .... so issue here is selenium is able to click on the above submit button but click is not successful although its been clicked, so the error is thrown for the subsequent next element as Selenium already clicked the current Submit button