nicolomantini / LinkedIn-Easy-Apply-Bot

Automate the application process on LinkedIn
Apache License 2.0
805 stars 324 forks source link

No such element: Unable to locate element #120

Closed thdevine closed 1 year ago

thdevine commented 1 year ago

Message: no such element: Unable to locate element:

I've ran this script many times, restarted, same issue. This is a fun script. Not sure why it's tanking. image

kuzae commented 1 year ago

Update this line

input_field = self.browser.find_element("xpath", "//input[contains(@name,'phoneNumber')]")

Change where it says @name to @id

PH13 commented 1 year ago

If that doesn't work try:

    input_field = self.browser.find_element("xpath", '//*[contains(concat( " ", @class, " " ), concat( " ", "artdeco-text-input--input", " " ))]')
dimonoid commented 1 year ago

Same issue, previous solutions don't work

xConde commented 1 year ago

try input_field = self.browser.find_element(By.CSS_SELECTOR, "input.artdeco-text-input--input[type='text']")

github-actions[bot] commented 1 year ago

Stale issue message