Open gregelin opened 2 years ago
Upgrade from Selenium 4.2.0 to 4.3.0 and adjust all calls to WebDriver.find_element_by_XXX calls.
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.
selenium==4.2.0
selenium==4.3.0
requirements.in
requirements.txt
./requirements_txt_updater.sh
find_element_by_XXX
https://pythoninoffice.com/fixing-attributeerror-webdriver-object-has-no-attribute-find_element_by_xpath/
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
selenium==4.2.0
toselenium==4.3.0
inrequirements.in
requirements.txt
by running./requirements_txt_updater.sh
find_element_by_XXX
referencesReference
https://pythoninoffice.com/fixing-attributeerror-webdriver-object-has-no-attribute-find_element_by_xpath/