9b/google-alerts

Deprecated Selenium method

samwesley opened this issue · 0 comments

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!