Created
January 7, 2021 16:53
-
-
Save theshahzaibc/095a15d6917a5153a0324f3f59009e9d 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
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