Skip to content

Instantly share code, notes, and snippets.

@theshahzaibc
Created January 7, 2021 16:53
Show Gist options
  • Save theshahzaibc/095a15d6917a5153a0324f3f59009e9d to your computer and use it in GitHub Desktop.
Save theshahzaibc/095a15d6917a5153a0324f3f59009e9d to your computer and use it in GitHub Desktop.
def isBlocked():
try:
errors = driver.find_element_by_class_name('rc-doscaptcha-header-text')
print("TEXT: ", errors.text)
if errors.text == "Try again later":
return True
return False
except selenium.common.exceptions.NoSuchElementException:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment