Merge branch 'v3' into v3

This commit is contained in:
queukat 2024-09-07 14:23:03 +03:00 committed by GitHub
commit 0f48cb1e1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 1293 additions and 46 deletions

View file

@ -39,6 +39,9 @@ class LinkedInAuthenticator:
def handle_login(self):
logger.info("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()