Open Jamiex64 opened 3 years ago
same.
`Kevins-iMac:Amazon-Bot k3vl4r$ python3 amazon_bot.py
[WDM] - ====== WebDriver manager ======
[WDM] - Current google-chrome version is 89.0.4389
[WDM] - Get LATEST driver version for 89.0.4389
[WDM] - There is no [mac64] chromedriver for browser 89.0.4389 in cache
[WDM] - Get LATEST driver version for 89.0.4389
[WDM] - Trying to download new driver from https://chromedriver.storage.googleapis.com/89.0.4389.23/chromedriver_mac64.zip
[WDM] - Driver has been saved in cache [/Users/k3vl4r/.wdm/drivers/chromedriver/mac64/89.0.4389.23]
Traceback (most recent call last):
File "amazon_bot.py", line 143, in
Hey thx for raising these concerns! The elements that are chosen were just the xpath of these elements on the web browser itself (you can replace these by right clicking the element you want the bot to select, click "inspect" and copy the xpath of the element in the inspect panel). Check out the following tutorial, which goes over how this works with Selenium!
I'll try to be useful:
self.driver.find_element_by_xpath(
And here's a newline. Probably why it doesn't work for other folks. Line 51 I believe.
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/header/div/div[1]/div[2]/div/a[2]/span[1]"} (Session info: chrome=87.0.4280.88)