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

Upgrade to Selenium 4.2.0 to 4.3.0 and adjust deprecated find_element_by_XXX calls #1760

Open
4 tasks
gregelin opened this issue Jul 9, 2022 · 0 comments
Open
4 tasks

Comments

@gregelin
Copy link
Contributor

gregelin commented Jul 9, 2022

Upgrade from Selenium 4.2.0 to 4.3.0 and adjust all calls to WebDriver.find_element_by_XXX calls.

Background

Selenium 4.3.0 changes the API for finding an element on the page. This changes causes numerous existing tests that worked in 4.2.0 to fail in 4.3.0.

Fix

  • Upgrade library selenium==4.2.0 to selenium==4.3.0 in requirements.in
  • Rebuild requirements.txt by running ./requirements_txt_updater.sh
  • Search and replace all find_element_by_XXX references
  • Test changes until everything works

Reference

https://pythoninoffice.com/fixing-attributeerror-webdriver-object-has-no-attribute-find_element_by_xpath/

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