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

Google login pw broken? #2

Open
Cassock opened this issue Mar 10, 2018 · 1 comment
Open

Google login pw broken? #2

Cassock opened this issue Mar 10, 2018 · 1 comment

Comments

@Cassock
Copy link

Cassock commented Mar 10, 2018

02:27:29 INFO app::do_google_login: Sleeping 2 seconds.
02:27:29 DEBUG app::sleep: Sleeping 2.85
02:27:42 ERROR app::main: Message: Unable to locate element: [name="password"]
Traceback (most recent call last):
  File "/app/app.py", line 344, in download_images
    self.load_cookies()
  File "/app/app.py", line 112, in load_cookies
    with open(self.COOKIE_FILE, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'state/cookies.pkl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/app.py", line 381, in main
    client.download_images()
  File "/app/app.py", line 353, in download_images
    self.do_google_login()
  File "/app/app.py", line 207, in do_google_login
    password = self.br.find_element_by_name("password")
  File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 487, in find_element_by_name
    return self.find_element(by=By.NAME, value=name)
  File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 955, in find_element
    'value': value})['value']
  File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.4/dist-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: [name="password"]

02:27:42 INFO app::__exit__: Shutting down browser
02:27:42 INFO app::__exit__: Shutting down xfvb display
@BenV
Copy link

BenV commented May 9, 2019

I fixed this in my branch for anyone who runs into this: BenV@526e4c0

I took some shortcuts to just use 2FA via push notifications instead of entering the 2FA code since that is the flow used on my phone, so your mileage may vary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants