Python 3.x selenium不在chrome中打开URL
我对selenium很陌生,我的selenium只会打开chrome浏览器,而不会打开URL。我的代码非常简单Python 3.x selenium不在chrome中打开URL,python-3.x,selenium,Python 3.x,Selenium,我对selenium很陌生,我的selenium只会打开chrome浏览器,而不会打开URL。我的代码非常简单 from selenium import webdriver driver = webdriver.Chrome('my-path-to-chrome') driver.get("http://www.facebook.com")` 我查看控制台,发现4个错误: SW registered chrome-search://thumb/https://adwords.google.c
from selenium import webdriver
driver = webdriver.Chrome('my-path-to-chrome')
driver.get("http://www.facebook.com")`
我查看控制台,发现4个错误:
SW registered
chrome-search://thumb/https://adwords.google.com/mcm/Mcm?authuser=0&__u=4760590279&__c=3865711759#c&app=mcm Failed to load resource: net::ERR_FAILED
screener.ashx Failed to load resource: net::ERR_FAILED
thumb/ Failed to load resource: net::ERR_FAILED
thumb/ Failed to load resource: net::ERR_FAILED
Chrome版本:版本64.0.3282.167(官方版本)(64位)
Python:3.6
硒:3.9
谢谢大家!
编辑-我解决了它,对于你们这些人来说,这里是步骤
1) 首先下载chrome驱动程序,只需谷歌一下
2) 将驱动程序路径从chrome更改为chrome驱动程序
很高兴去 我也在处理同样的问题,并通过以下步骤得到解决:
谢谢你的帮助。我已经解决了我在帖子中提到的问题。Jdk不适用于这个问题,因为这是一个python代码问题而不是Java问题。这是正确的规则。你为什么这么做?你应该删除这个。我编辑了我的原始帖子,因为我想我会帮助其他谷歌用户,但你用java帮助回答了一个问题,这是问答网站。你将如何帮助他人在帖子中给出答案。如果其他人的答案是正确的,有一个地方可以给出答案或投票支持答案。我已经更新了我的答案。