![](/img/trans.png)
[英]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.