'ElementNotVisibleException'无法使用Selenium单击按钮

时间:2018-11-15 13:36:27

标签: python selenium xpath

一个相当“棘手”的问题使我头昏脑胀。使用硒时,我无法单击按钮。

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

尝试:

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()

实际上介于两者之间的所有内容。 enter image description here

enter image description here

更新:出现以下错误

ElementNotVisibleException:元素不可交互

0 个答案:

没有答案
相关问题