Closed GabeGiro closed 9 months ago
My current fix should cover this easy apply button finding/clicking issue.
@wodsuz glad to have you back!
I saw your solution, looks good.
This one is more a suggestion for having fallback on all buttons:
def click_button(self, button):
try:
button.click()
except Exception as e:
# If click fails, use JavaScript to click on the button
self.driver.execute_script("arguments[0].click();", button)
Let me know your thoughts and I can adjust the PR to have that applied to all buttons.
The Linkedin page is updated, hence the update to finding the element. Falling back to Javascript if default click doesn't work.
This is tested with Chrome only.