Scweet icon indicating copy to clipboard operation
Scweet copied to clipboard

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

Open albertxu1 opened this issue 2 years ago • 3 comments

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

albertxu1 avatar Nov 10 '22 08:11 albertxu1

install selenium==4.2.0

terryso avatar Nov 17 '22 10:11 terryso

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

harryquan004 avatar Nov 22 '22 00:11 harryquan004

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

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

code-with-abdullah avatar Feb 19 '23 14:02 code-with-abdullah