Message: Unable to locate element: //small
muhmtayyab opened this issue · 5 comments
muhmtayyab commented
f1rstxlas7 commented
I had the same issue because I was connected to a VPN and it was first redirecting me to a page that require authentication.
muhmtayyab commented
when there is no job for a search then it throws this error.
Kickbykick commented
Hi there, did you get past this issue? @muhammad-tayyab-qbatch
Kickbykick commented
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
muhmtayyab commented
@Kickbykick there was not any issue with that. It was just throwing error because there is no job for search term