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

Deprecated Selenium method #49

Open
samwesley opened this issue Jan 19, 2023 · 0 comments
Open

Deprecated Selenium method #49

samwesley opened this issue Jan 19, 2023 · 0 comments

Comments

@samwesley
Copy link

Describe the bug
manage.py uses the deprecated method "find_element_by_*". (See the change log here: https://github.com/SeleniumHQ/selenium/blob/a4995e2c096239b42c373f26498a6c9bb4f2b3e7/py/CHANGES_)
This commit fixes the "AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'" error by using the up-to-date Selenium method "find_element('path,..."

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to seed for the first time using cmd google-alerts seed -d
  2. receive error "AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'"

Expected behavior
Selenium is able to click the log-in via google button, user is authenticated to stack overflow, then google alerts

Screenshots

Desktop (please complete the following information):

  • OS: iOS
  • Browser Chrome
  • Version 109

Additional context
This is my first commit to an open-source project, let me know if this isn't the way to do it!

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

1 participant