GovReady / govready-q

An open source, self-service GRC tool to automate security assessments and compliance.
https://q.govready.com
Other
174 stars 55 forks source link

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

Open gregelin opened 2 years ago

gregelin commented 2 years ago

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

Reference

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