AttributeError: ‘WebDriver’ object has no attribute ‘find_element_by_name’
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Selenium just removed that method in version
4.3.0
. See the CHANGES: https://github.com/SeleniumHQ/selenium/blob/a4995e2c096239b42c373f26498a6c9bb4f2b3e7/py/CHANGESYou now need to use:
In your example, it would become:
For improved reliability, you should consider using
WebDriverWait
in combination withelement_to_be_clickable
.