无法使用Chrome(Python)在Selenium中打开页面,可以在Selenium中手动打开

2024-04-19 16:35:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试用chrome和python中的selenium打开下面的页面。当我试着用'打开它时,它不会打开驱动程序。获取(url)'命令。但如果我把链接放到Chrome上,它就会打开(与前一秒无法使用的窗口相同)驱动程序。获取(url)命令)并按enter键。知道为什么吗?你知道吗

from selenium import webdriver
driver = webdriver.Chrome()
driver.get('//api.netlook.com/service/widgets/vhtell/content.jsp?id=coggindelandford-d&clientId=DDCGROUPSITES&dealer=coggindelandfordfd&vin=3FADP4BJ7KM126162&tabs=PHOTO&tabs=VIDEOTELL&tabs=SPINTELL&useTabIcons=true&refererHost=www.coggindelandford.com&refererUrl=https%253A%252F%252Fwww.coggindelandford.com%252Fnew%252FFord%252F2019-Ford-Fiesta-in%252BOrlando-25f691af0a0e0aea042ff3df80ee344f.htm%253FsearchDepth%253D81%253A172')

Tags: from命令comurl链接driverselenium驱动程序