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] Target not working | Can't locate password field? #152

Open
davefogo opened this issue Oct 6, 2021 · 1 comment
Open

[BUG] Target not working | Can't locate password field? #152

davefogo opened this issue Oct 6, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@davefogo
Copy link

davefogo commented Oct 6, 2021

Expected Behavior

Expected PhoenixBot to automate Target login, add to cart and purchase

Actual Behaviour

Stuck on login screen with this error in console:

  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/pages/homepage.py", line 524, in run
    Target(self.task_id, self.status_signal, self.image_signal, self.product, profile, proxy, self.monitor_delay, self.error_delay)
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/sites/target.py", line 70, in __init__
    self.login()
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/sites/target.py", line 103, in login
    self.fill_and_authenticate()
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/sites/target.py", line 139, in fill_and_authenticate
    self.browser.find_element_by_xpath('//input[@id="password"]').send_keys(settings.target_pass)
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/Users/davefogo/Documents/Workspace/learn/ps5/PhoenixBot/env/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //input[@id="password"]

Screenshots

Place any informational screenshots here.
Screen Shot 2021-10-06 at 5 39 05 AM

Repro Steps

  1. Download geckodriver and point to location in /usr/local/bin
  2. Run PhonixBot
  3. Click on play for Target
  4. Firefox opens
  5. Opens login
  6. Gets stuck in login screen and prints out error in console

Desktop Configuration

  • OS: MacOS 11.6
  • Browser: firefox
  • Version: 91.0.2

Additional Context

@davefogo davefogo added the bug Something isn't working label Oct 6, 2021
@sachinparyani
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants