AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'
KingBarker opened this issue · 1 comments
chrome driver path is set, asked to input captcha then receive this error
Traceback (most recent call last):
File "C:\Users\usr\OneDrive\Desktop\Zefoy-TikTok-Automator-main\tiktok.py", line 276, in
obj.main()
File "C:\Users\usr\OneDrive\Desktop\Zefoy-TikTok-Automator-main\tiktok.py", line 226, in main
self.check_status()
File "C:\Users\usr\OneDrive\Desktop\Zefoy-TikTok-Automator-main\tiktok.py", line 55, in check_status
element = self.driver.find_element_by_xpath(value)
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'
C:\Users\usr\OneDrive\Desktop\Zefoy-TikTok-Automator-main>
Code must've been edited, or selenium updated attributes that I'm not aware of. Either way, download latest version and install the requirements from requirements.txt
Ensure you are using the same selenium version.