handled already logined case
This commit is contained in:
parent
165a6150f8
commit
ba7ac0fbb1
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ class LinkedInAuthenticator:
|
|||
def handle_login(self):
|
||||
print("Navigating to the LinkedIn login page...")
|
||||
self.driver.get("https://www.linkedin.com/login")
|
||||
if 'feed' in self.driver.current_url:
|
||||
print("User is already logged in.")
|
||||
return
|
||||
try:
|
||||
self.enter_credentials()
|
||||
self.submit_login_form()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue