add a little time for 2fa
This commit is contained in:
parent
12906afd56
commit
f281867537
@ -1,3 +1,4 @@
|
|||||||
|
import time
|
||||||
from selenium.common.exceptions import NoSuchElementException, TimeoutException
|
from selenium.common.exceptions import NoSuchElementException, TimeoutException
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
from selenium.webdriver.support.ui import WebDriverWait
|
from selenium.webdriver.support.ui import WebDriverWait
|
||||||
@ -31,6 +32,7 @@ class LinkedInAuthenticator:
|
|||||||
self.submit_login_form()
|
self.submit_login_form()
|
||||||
except NoSuchElementException:
|
except NoSuchElementException:
|
||||||
print("Could not log in to LinkedIn. Please check your credentials.")
|
print("Could not log in to LinkedIn. Please check your credentials.")
|
||||||
|
time.sleep(35) #TODO fix better
|
||||||
self.handle_security_check()
|
self.handle_security_check()
|
||||||
|
|
||||||
def enter_credentials(self):
|
def enter_credentials(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user