Merge pull request #266 from feder-cr/main

add
This commit is contained in:
Federico 2024-09-03 19:08:44 +02:00 committed by GitHub
commit e3bcc9d5e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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