wodsuz/EasyApplyJobsBot

Message: Unable to locate element: //small

muhmtayyab opened this issue · 5 comments

I had the same issue because I was connected to a VPN and it was first redirecting me to a page that require authentication.

when there is no job for a search then it throws this error.

Hi there, did you get past this issue? @muhammad-tayyab-qbatch

Hi there, I got it past this step by sleeping the code, try this after you get the url:

self.driver.get(url)
            time.sleep(random.uniform(1.5, 2.5))

            totalJobs = self.driver.find_element(By.XPATH,'//small').text 

@Kickbykick there was not any issue with that. It was just throwing error because there is no job for search term