add a little time for 2fa

This commit is contained in:
feder-cr 2024-08-11 00:50:40 +01:00
parent 12906afd56
commit f281867537

View File

@ -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):