Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchElementException for label [for='follow-company-checkbox'] breaks runtime #113

Open
twitterduck opened this issue Feb 24, 2025 · 1 comment
Labels
bug Something isn't working help welcomed I'm not planning to do it soon so I leave it to others to solve TDD TDD (testing driven development) - add tests before developing functionality

Comments

@twitterduck
Copy link

twitterduck commented Feb 24, 2025

Steps to reproduce:
-Run the EasyApplyJobsBot following the non-docker steps
-Notice the runtime error that completely stops the program from running once it gets to the step where it attempts to check off the follow-company-checkbox

Terminal Dump:

(myenv) twitterduck@twitterduck-ThinkPad-T431s:~/EasyApplyJobsBot$ python3 runner.py
Traceback (most recent call last):
  File "/home/twitterduck/EasyApplyJobsBot/linkedin.py", line 101, in startApplying
    jobCounter = self.processJob(jobID=job.linkedinJobId, jobCounter=jobCounter)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twitterduck/EasyApplyJobsBot/linkedin.py", line 150, in processJob
    jobCounter = self.handleJobPost(
                 ^^^^^^^^^^^^^^^^^^^
  File "/home/twitterduck/EasyApplyJobsBot/linkedin.py", line 252, in handleJobPost
    jobCounter = self.handleMultiplePages(jobPage, jobProperties, jobCounter)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twitterduck/EasyApplyJobsBot/linkedin.py", line 436, in handleMultiplePages
    jobCounter = self.handleSubmitPage(jobPage, jobProperties, jobCounter)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twitterduck/EasyApplyJobsBot/linkedin.py", line 451, in handleSubmitPage
    followCompany = self.driver.find_element(By.CSS_SELECTOR, constants.followCheckboxCSS)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twitterduck/EasyApplyJobsBot/myenv/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 898, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twitterduck/EasyApplyJobsBot/myenv/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
    self.error_handler.check_response(response)
  File "/home/twitterduck/EasyApplyJobsBot/myenv/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"label[for='follow-company-checkbox']"}
  (Session info: chrome=131.0.6778.69); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
#0 0x5e9971cde1fa <unknown>
#1 0x5e99717ee810 <unknown>
#2 0x5e997183d506 <unknown>
#3 0x5e997183d7a1 <unknown>
#4 0x5e9971882c24 <unknown>
#5 0x5e99718615ad <unknown>
#6 0x5e9971880007 <unknown>
#7 0x5e9971861323 <unknown>
#8 0x5e997182fde0 <unknown>
#9 0x5e9971830dbe <unknown>
#10 0x5e9971caa12b <unknown>
#11 0x5e9971cae0c7 <unknown>
#12 0x5e9971c976cc <unknown>
#13 0x5e9971caec47 <unknown>
#14 0x5e9971c7c67f <unknown>
#15 0x5e9971ccd288 <unknown>
#16 0x5e9971ccd450 <unknown>
#17 0x5e9971cdd076 <unknown>
#18 0x78c85f09ca94 <unknown>
#19 0x78c85f129c3c <unknown>

@twitterduck
Copy link
Author

@GabeGiro just wanted to document this bug. Thank you for making this project free and available to the general public, I made a github account just so I can help improve things in the little ways that I can.

@GabeGiro GabeGiro added this to the Flawless free usage milestone Feb 26, 2025
@GabeGiro GabeGiro added bug Something isn't working help welcomed I'm not planning to do it soon so I leave it to others to solve TDD TDD (testing driven development) - add tests before developing functionality labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help welcomed I'm not planning to do it soon so I leave it to others to solve TDD TDD (testing driven development) - add tests before developing functionality
Projects
None yet
Development

No branches or pull requests

2 participants