'ElementNotVisibleException' Unable to click button with Selenium

Refresh

April 2019

Views

96 time

1

A rather 'tricky' question that makes my head spin. I'm unable to click a button while using Selenium.

Css selector property: ValidateOrderForm > span > button
Xpath: #//*[@id="ValidateOrderForm"]/span/button

Attempts:

d.find_elements_by_xpath('ValidateOrderForm')[1].clear()
d.find_elements_by_id('ValidateOrderForm')[0].click()
d.find_element_by_css_selector("button.call-to-action").click()

And really everything in between. enter image description here

enter image description here

Update: it gives the following error

ElementNotVisibleException: element not interactable

0 answers