Skip to content

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

@gregelin

Description

@gregelin

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions