我正在尝试在购物车中自动添加此蓝色Jbl扬声器,以便首先进入link of the Jbl speaker并点击蓝色jbl扬声器,然后点击添加到购物车按钮
但我无法联系到Url说错误此网站无法联系到
答案 0 :(得分:-1)
有一个cookie问题试试吧
from selenium import webdriver
import time
driver = webdriver.Chrome(executable_path = "PATH OF CHROMEDRIVER")
driver.maximize_window()
driver.get("http://https://www.amazon.in")
driver.get("https://www.amazon.in/dp/B010RWAIAC/ref=twister_B07D5KL6TC?_encoding=UTF8&th=1")
time.sleep(5)
driver.find_element_by_id('color_name_1_price').click()
time.sleep(3)
driver.find_element_by_id('add-to-cart-button').click()