diff --git a/linkedIn_authenticator.py b/linkedIn_authenticator.py index 1d976f2..590cfcc 100644 --- a/linkedIn_authenticator.py +++ b/linkedIn_authenticator.py @@ -1,3 +1,4 @@ +import time from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait @@ -31,6 +32,7 @@ class LinkedInAuthenticator: self.submit_login_form() except NoSuchElementException: print("Could not log in to LinkedIn. Please check your credentials.") + time.sleep(35) #TODO fix better self.handle_security_check() def enter_credentials(self):