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!
In essence, the bot is unable to find the XPath for //small. How can I resolve this issue?
Here is the full error I'm getting:
Traceback (most recent call last):
File "C:\Users\kevin\Documents\Coding\EasyApplyJobsBot\linkedin.py", line 267, in
Linkedin().linkJobApply()
^^^^^^^^^^
File "C:\Users\kevin\Documents\Coding\EasyApplyJobsBot\linkedin.py", line 44, in init
self.linkJobApply()
File "C:\Users\kevin\Documents\Coding\EasyApplyJobsBot\linkedin.py", line 91, in linkJobApply
totalJobs = self.driver.find_element(By.XPATH,'//small').text
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kevin\Anaconda3\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 748, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kevin\Anaconda3\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "C:\Users\kevin\Anaconda3\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//small"}
In essence, the bot is unable to find the XPath for //small. How can I resolve this issue?
Here is the full error I'm getting:
Traceback (most recent call last): File "C:\Users\kevin\Documents\Coding\EasyApplyJobsBot\linkedin.py", line 267, in
Linkedin().linkJobApply()
^^^^^^^^^^
File "C:\Users\kevin\Documents\Coding\EasyApplyJobsBot\linkedin.py", line 44, in init
self.linkJobApply()
File "C:\Users\kevin\Documents\Coding\EasyApplyJobsBot\linkedin.py", line 91, in linkJobApply
totalJobs = self.driver.find_element(By.XPATH,'//small').text
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kevin\Anaconda3\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 748, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kevin\Anaconda3\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "C:\Users\kevin\Anaconda3\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//small"}