Dealing with reCAPTCHA in Python Selenium

后端 未结 3 1164
离开以前
离开以前 2021-01-23 08:48

I need to automate a web page using python selenium, but it encounters a reCaptcha, which is in another frame. I want to solve the captcha, and continue the script by clicking t

3条回答
  •  别那么骄傲
    2021-01-23 09:12

    Don't switch to the iframe.

    Everything you need is in #g-recaptcha-response and [data-sitekey] which are both in main context.

提交回复
热议问题