wodsuz / EasyApplyJobsBot

A python bot to automatically apply all Linkedin,Glassdoor, etc Easy Apply jobs based on your preferences. Auto login, auto fill additional questions, apply automatically!
https://www.automated-bots.com/
Other
424 stars 141 forks source link

[Fix] Clicking Easy Apply button now works #44

Closed GabeGiro closed 9 months ago

GabeGiro commented 10 months ago

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.

wodsuz commented 9 months ago

My current fix should cover this easy apply button finding/clicking issue.

GabeGiro commented 9 months ago

@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.