Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linkedin/actions/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _connect_direct(session):
if direct.count() == 0:
return False

direct.first.click()
direct.first.click(force=True)
logger.debug("Clicked direct 'Connect' button")

error = session.page.locator(SELECTORS["error_toast"])
Expand All @@ -95,13 +95,13 @@ def _connect_via_more(session):
more = top_card.locator(SELECTORS["more_button"])
if more.count() == 0:
return False
more.first.click()
more.first.click(force=True)
session.wait()

connect_option = page.locator(SELECTORS["connect_option"])
if connect_option.count() == 0:
return False
connect_option.first.click()
connect_option.first.click(force=True)
logger.debug("Used 'More → Connect' flow")

return True
Expand Down