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

[BUG]: xpath issue again after hotfix #959

Closed
krzemienski opened this issue Nov 27, 2024 · 11 comments
Closed

[BUG]: xpath issue again after hotfix #959

krzemienski opened this issue Nov 27, 2024 · 11 comments
Labels
bug Something isn't working stale

Comments

@krzemienski
Copy link

Describe the bug

2024-11-26 21:04:00.805 | WARNING | ai_hawk.job_manager:get_jobs_from_page:276 - No job results found on the page. expection: Traceback (most recent call last): File "/Users/nick/Desktop/Auto_Jobs_Applier_AIHawk/src/ai_hawk/job_manager.py", line 258, in get_jobs_from_page jobs_container = self.driver.find_element(By.XPATH, jobs_xpath_query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nick/Library/Python/3.12/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 831, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nick/Library/Python/3.12/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute self.error_handler.check_response(response) File "/Users/nick/Library/Python/3.12/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//ul[contains(@Class, 'scaffold-layout__list-container')]"} (Session info: chrome=131.0.6778.86) Stacktrace: 0 chromedriver 0x0000000102fbbac4 cxxbridge1$str$ptr + 3651580 1 chromedriver 0x0000000102fb4314 cxxbridge1$str$ptr + 3620940 2 chromedriver 0x0000000102a1c4b4 cxxbridge1$string$len + 89224 3 chromedriver 0x0000000102a60898 cxxbridge1$string$len + 368748 4 chromedriver 0x0000000102a9a0fc cxxbridge1$string$len + 604368 5 chromedriver 0x0000000102a550b0 cxxbridge1$string$len + 321668 6 chromedriver 0x0000000102a55d00 cxxbridge1$string$len + 324820 7 chromedriver 0x0000000102f86e08 cxxbridge1$str$ptr + 3435328 8 chromedriver 0x0000000102f8a120 cxxbridge1$str$ptr + 3448408 9 chromedriver 0x0000000102f6e17c cxxbridge1$str$ptr + 3333812 10 chromedriver 0x0000000102f8a9e0 cxxbridge1$str$ptr + 3450648 11 chromedriver 0x0000000102f5f988 cxxbridge1$str$ptr + 3274432 12 chromedriver 0x0000000102fa50f4 cxxbridge1$str$ptr + 3558956 13 chromedriver 0x0000000102fa5270 cxxbridge1$str$ptr + 3559336 14 chromedriver 0x0000000102fb3f88 cxxbridge1$str$ptr + 3620032 15 libsystem_pthread.dylib 0x00000001866682e4 _pthread_start + 136 16 libsystem_pthread.dylib 0x00000001866630fc thread_start + 8

Steps to reproduce

I am using the main branch and was following the thread and pull request issues for the hotfix #924 and have ensured that my code locally is that with the hotfix changes in job manager.

So this code was ran on main and ensured that the job manager does have the pathfixing for that were made in the last two days. I then went ahead and went to try to run it again about 10 minutes ago and now it seems to be finding another XPath issue related to the same list. I just figured I would post this up quickly so that everyone is aware again. I was going to go ahead and try to figure out the changes needed over the evening into tomorrow.

Regardless, Happy Thanksgiving to everybody in the United States and thank you for this project.

2024-11-26 21:04:00.805 | WARNING  | ai_hawk.job_manager:get_jobs_from_page:276 - No job results found on the page.  expection: Traceback (most recent call last):   File "/Users/nick/Desktop/Auto_Jobs_Applier_AIHawk/src/ai_hawk/job_manager.py", line 258, in get_jobs_from_page     jobs_container = self.driver.find_element(By.XPATH, jobs_xpath_query)                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/nick/Library/Python/3.12/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 831, in find_element     return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/Users/nick/Library/Python/3.12/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute     self.error_handler.check_response(response)   File "/Users/nick/Library/Python/3.12/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response     raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//ul[contains(@class, 'scaffold-layout__list-container')]"}   (Session info: chrome=131.0.6778.86) Stacktrace: 0   chromedriver                        0x0000000102fbbac4 cxxbridge1$str$ptr + 3651580 1   chromedriver                        0x0000000102fb4314 cxxbridge1$str$ptr + 3620940 2   chromedriver                        0x0000000102a1c4b4 cxxbridge1$string$len + 89224 3   chromedriver                        0x0000000102a60898 cxxbridge1$string$len + 368748 4   chromedriver                        0x0000000102a9a0fc cxxbridge1$string$len + 604368 5   chromedriver                        0x0000000102a550b0 cxxbridge1$string$len + 321668 6   chromedriver                        0x0000000102a55d00 cxxbridge1$string$len + 324820 7   chromedriver                        0x0000000102f86e08 cxxbridge1$str$ptr + 3435328 8   chromedriver                        0x0000000102f8a120 cxxbridge1$str$ptr + 3448408 9   chromedriver                        0x0000000102f6e17c cxxbridge1$str$ptr + 3333812 10  chromedriver                        0x0000000102f8a9e0 cxxbridge1$str$ptr + 3450648 11  chromedriver                        0x0000000102f5f988 cxxbridge1$str$ptr + 3274432 12  chromedriver                        0x0000000102fa50f4 cxxbridge1$str$ptr + 3558956 13  chromedriver                        0x0000000102fa5270 cxxbridge1$str$ptr + 3559336 14  chromedriver                        0x0000000102fb3f88 cxxbridge1$str$ptr + 3620032 15  libsystem_pthread.dylib             0x00000001866682e4 _pthread_start + 136 16  libsystem_pthread.dylib             0x00000001866630fc thread_start + 8

Expected behavior

No response

Actual behavior

No response

Branch

main

Branch name

No response

Python version

No response

LLM Used

No response

Model used

No response

Additional context

No response

@krzemienski krzemienski added the bug Something isn't working label Nov 27, 2024
@krzemienski krzemienski changed the title [BUG]: another xpath issue again after hotfix [BUG]: xpath issue again after hotfix Nov 27, 2024
@sladinji
Copy link

Hi,

I have the same issue with Python 3.12 on MacOS.

Regards,

Julien

@ilushka999
Copy link

confirm. same issue

@austinyolo
Copy link

same issue

1 similar comment
@brcnwankwo
Copy link

same issue

@craschnet
Copy link

Same Issue

@leonardoeng13
Copy link

Same issue.

@kayo12
Copy link

kayo12 commented Nov 29, 2024

Same issue

@convexhull
Copy link

Same issue. The ul tag now doesn't have the class scaffold-layout__list-container. Rather now its seemingly a dynamically generated string. So the XPATH code is not working

@max870701
Copy link

Same issue.

Copy link

This issue has been marked as stale due to inactivity. Please comment or update if this is still relevant.

@github-actions github-actions bot added the stale label Dec 11, 2024
Copy link

This issue was closed due to prolonged inactivity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

10 participants