Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'WebDriver' object has no attribute 'find_elements_by_xpath' #143

Open
albertxu1 opened this issue Nov 10, 2022 · 3 comments

Comments

@albertxu1
Copy link

I got an error as title said, how can I fix it?

@terryso
Copy link

terryso commented Nov 17, 2022

install selenium==4.2.0

@harryquan004
Copy link

install selenium == 4.2.0 or older version, because the new ones removed the find_elements_by_xpath function

@code-with-abdullah
Copy link

code-with-abdullah commented Feb 19, 2023

Works like a charm. Thanks to all the commenters above. :)

If selenium is already installed then use:
pip3 install -U selenium==4.2.0

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

No branches or pull requests

4 participants