Last active
January 7, 2021 16:56
-
-
Save theshahzaibc/7fb1b3c776a6bda1d4583a761a0bdb65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver.get(URL) | |
print("Getting Captcha") | |
g_recaptcha = WebDriverWait(driver, 100).until(EC.presence_of_element_located((By.ID, recaptchaId))) | |
outerIframe = g_recaptcha.find_element_by_tag_name('iframe') | |
print("Got captcha") | |
ActionChains(driver).move_to_element(outerIframe).pause(3).click(outerIframe).perform() | |
if isBlocked(): | |
sys.exit("Caught/Blocked by Google") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment