joaosilvalopes / linkedin-easy-apply-bot

MIT License
237 stars 87 forks source link

Unable to choose home country #56

Open IggsGrey opened 1 year ago

IggsGrey commented 1 year ago

The job applications always fail at the part where the homeCountry is to be selected.

It keeps typing the country over and over until it finally fails after about 3 retries

image

joaosilvalopes commented 1 year ago

Hi @IggsGrey when inserting the City linkedin forms does some ajax validation to check whether this city/country is valid, i tried using the bot with Accra, Greater Accra Region, Ghana as the HOME_CITY config and it works for this job link https://www.linkedin.com/jobs/view/3540699774/?eBP=JOB_SEARCH_ORGANIC&recommendedFlavor=SKILL_ASSESSMENTS&refId=U8hJvtebc4x1NTl4QtMVTw%3D%3D&trackingId=6eZCYD%2BTEgNfcXOOjvKhSg%3D%3D&trk=flagship3_search_srp_jobs

Can you share the job link you are having trouble with?

I'll be adding a chromium recorder to make this debugging process easier, something like https://www.npmjs.com/package/puppeteer-screen-recorder

IggsGrey commented 1 year ago

Here's a screen recording of it.

As you can see, even though it is possible to proceed to the next step, it didn't proceed. It just kept trying to select a country. Also it seems to select a different country sometimes and then it tries to select the correct one again. It repeats this for about 3 times until it finally fails.

Screencast from 10-04-23 19:28:42.webm

joaosilvalopes commented 1 year ago

I ran the bot with that job link and Accra, Greater Accra Region, Ghana as the city and it was giving me a different error, it was giving up on the 5th page as i was limiting it to 5 page fill tries, i increased the counter and it started working. can you tell me if this pr fixes it?

joaosilvalopes commented 1 year ago

https://user-images.githubusercontent.com/24548926/231585882-917bf640-93ca-4069-a6cc-c3cd9498479c.mp4

@IggsGrey as you can see it is working on my computer, once you are able to test it with this change let me know, thanks for reporting! 🙂

IggsGrey commented 1 year ago

Unfortunately, my PC broke so I am unable to provide feedback immediately, I attempted running it on my MacOS but it seems the app is unable to run after installing on MacOS, I have created a new issue for that.

Will update as soon as i get my PC up and running

IggsGrey commented 1 year ago

Hi so I noticed there are certain cases where after failing for the 3rd time, the application is able to proceed to the next step/page.

In cases like that. your PR does the good job of not limiting the number of pages remaining...

However, i guess this is more of a workaround than an actual fix?

Even then, it still implies more job applications are likely to fail

torusservices commented 1 year ago

@joaosilvalopes I do have the same issue, maybe it is because it does the operation too quickly? so the validation still fails? as it seems to re-type it multiple times. Get a failed validation 3x times and then quit.

IggsGrey commented 1 year ago

@torusservices Please try:

and

to see which of them best addresses the issue in your case

torusservices commented 1 year ago

at the moment I just increased the page ties like you guys said before. One more thing I have observed it doing now. It tries stuff like , Spain even tho I am from UK and never added spain to my config. But it works with more tries, maybe later I will try the pull requests