Scweet
Scweet copied to clipboard
AttributeError: 'WebDriver' object has no attribute 'find_elements_by_xpath'
I got an error as title said, how can I fix it?
install selenium==4.2.0
install selenium == 4.2.0 or older version, because the new ones removed the find_elements_by_xpath function
Works like a charm. Thanks to all the commenters above. :)
If selenium is already installed then use:
pip3 install -U selenium==4.2.0