【发布时间】:2018-01-14 17:03:57
【问题描述】:
如何在selenium中找到“check”,对应我需要点击的按钮?
我无法直接找到它。我必须使用 id='animal'。如果我在下面尝试没有错误,但没有响应。
driver.find_element_by_xpath('//div[@id="animal"]//following-sibling::div[contains(@style,"height:10px")]').find_element_by_xpath('//input[@value="check"]')
【问题讨论】: