[英]how to interact with recaptcha audio button selenium python
[英]reCaptcha : Cannot find frame to click on audio button : Python & selenium
我已经通过这段代码解决了我的问题:
self.driver.switch_to_frame(self.driver.find_element_by_tag_name("iframe"))
self.driver.switch_to.default_content()
frames = self.driver.find_elements_by_tag_name("iframe")
self.driver.switch_to.frame(frames[-1])
self.driver.find_element(By.ID, 'recaptcha-audio-button').click()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.