python - selenuim hidden element click
怪我咯
怪我咯 2017-04-18 10:27:14
0
1
566
while "pointer" in driver.find_element_by_id("sitbReaderRightPageTurner").get_attribute("style"):
    driver.find_element_by_id("sitbReaderRightPageTurner").click()

第二行运行时出现问题怎么回事?

selenium.common.exceptions.ElementNotVisibleException: Message:
Screenshot: available via screen

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
伊谢尔伦

Invisible elements cannot be clicked, of course. You can click them using js, or make them appear and then click them

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!