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]: Falsely say No job results found on the page #978

Open
sonnyding1 opened this issue Dec 1, 2024 · 4 comments
Open

[BUG]: Falsely say No job results found on the page #978

sonnyding1 opened this issue Dec 1, 2024 · 4 comments
Labels
bug Something isn't working stale

Comments

@sonnyding1
Copy link

Describe the bug

The agent falsely says No job results found on the page when there are job results found on the page.

Steps to reproduce

  1. Use code from main branch
  2. Run the code
  3. See error

Expected behavior

No response

Actual behavior

No response

Branch

main

Branch name

main

Python version

3.12.3

LLM Used

GPT

Model used

GPT-4o-mini

Additional context

Here is the log:

2024-12-01 15:10:02.714 | WARNING  | ai_hawk.job_manager:get_jobs_from_page:276 - No job results found on the page. 
 expection: Traceback (most recent call last):
  File "C:\code\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 "C:\code\Auto_Jobs_Applier_AIHawk\virtual\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 831, in 
find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\code\Auto_Jobs_Applier_AIHawk\virtual\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in 
execute
    self.error_handler.check_response(response)
  File "C:\code\Auto_Jobs_Applier_AIHawk\virtual\Lib\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:
        GetHandleVerifier [0x005A33E3+25059]
        (No symbol) [0x0052CDE4]
        (No symbol) [0x0040BEC3]
        (No symbol) [0x0044FD86]
        (No symbol) [0x0044FFCB]
        (No symbol) [0x0048D952]
        (No symbol) [0x00471F44]
        (No symbol) [0x0048B51E]
        (No symbol) [0x00471C96]
        (No symbol) [0x00443FAC]
        (No symbol) [0x00444F3D]
        GetHandleVerifier [0x00895543+3113795]
        GetHandleVerifier [0x008AA20A+3198986]
        GetHandleVerifier [0x008A29E2+3168226]
        GetHandleVerifier [0x00643250+680016]
        (No symbol) [0x0053572D]
        (No symbol) [0x005329D8]
        (No symbol) [0x00532B75]
        (No symbol) [0x005257D0]
        BaseThreadInitThunk [0x7594FCC9+25]
        RtlGetAppContainerNamedObjectPath [0x7718809E+286]
        RtlGetAppContainerNamedObjectPath [0x7718806E+238]
@sonnyding1 sonnyding1 added the bug Something isn't working label Dec 1, 2024
@bjamin5
Copy link

bjamin5 commented Dec 2, 2024

Also getting this exception

@innocen3
Copy link

innocen3 commented Dec 2, 2024

check out this one; we all have the same issue.
#919

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 stale and removed stale labels Dec 13, 2024
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 25, 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

3 participants