Skip to content

Updating Selenium "find_element" method#48

Open
samwesley wants to merge 1 commit into9b:masterfrom
samwesley:patch-1
Open

Updating Selenium "find_element" method#48
samwesley wants to merge 1 commit into9b:masterfrom
samwesley:patch-1

Conversation

@samwesley
Copy link
Copy Markdown

Selenium 4.3.0 deprecated the "find_element_by_*" methods, these are now "find_element(x," (See 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.

Selenium 4.3.0 deprecated the "find_element_by_*" methods, these are now "find_element(x," (See 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.
@samwesley
Copy link
Copy Markdown
Author

Created an issue for this here #49

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

Successfully merging this pull request may close these issues.

2 participants