From aabb6425aabe6de910390c3b4f744bb68b0038ba Mon Sep 17 00:00:00 2001 From: Robert Ruidisch Date: Mon, 2 Sep 2024 23:45:46 +0200 Subject: [PATCH] Updated is_logged_in method to accommodate LinkedIn UI changes --- src/linkedIn_authenticator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkedIn_authenticator.py b/src/linkedIn_authenticator.py index c953e5a..f6ec301 100644 --- a/src/linkedIn_authenticator.py +++ b/src/linkedIn_authenticator.py @@ -71,7 +71,7 @@ class LinkedInAuthenticator: EC.presence_of_element_located((By.CLASS_NAME, 'share-box-feed-entry__trigger')) ) buttons = self.driver.find_elements(By.CLASS_NAME, 'share-box-feed-entry__trigger') - if any(button.text.strip() == 'Start a post' for button in buttons): + if any(button.text.strip() == 'Start a post, try writing with AI' for button in buttons): print("User is already logged in.") return True except TimeoutException: