草庐IT

chromium-chromedriver

全部标签

windows - 使用 Chromium Portable 时 Google API key 丢失警告消息

当我使用新的ChromiumPortable浏览器时,启动后总是显示“GoogleAPIkeysaremissing.SomefunctionalityofChromiumPortablewillbedisabled”。p>我如何摆脱这个警告消息,它是什么意思? 最佳答案 删除消息......在Windows上,您可以使用命令提示符将以下环境变量设置为“否”:setxGOOGLE_API_KEY"no"setxGOOGLE_DEFAULT_CLIENT_ID"no"setxGOOGLE_DEFAULT_CLIENT_SECRET"n

java - 更新到 ChromeDriver 2.46 后 Chrome version must be between 71 and 75 错误

将chromedriver更新到2.46版后,我的口味无法初始化。我收到这样的消息:StartingChromeDriver2.46.628402(536cd7adbad73a3783fdc2cab92ab2ba7ec361e1)onport44269Onlylocalconnectionsareallowed.PleaseprotectportsusedbyChromeDriverandrelatedtestframeworkstopreventaccessbymaliciouscode.Failedtoinvokeconfigurationmethodcom.personal.Cu

java - 如何使用 Selenium 连接到 Chromium Headless

我想使用chromiumheadless来使用selenium进行自动化测试。(https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md)我确实已经在9222上运行了headless(headless)版本。所以如果我打开http://10.252.100.33:9222/json/I得到[{"description":"","devtoolsFrontendUrl":"/devtools/inspector.html?ws=127.0.0.1:9223/devtools/page/0261be06

java - 使用 Selenium ChromeDriver 设置 Chrome 的语言

我下载了ChromeDriver,默认浏览器语言是英文,我需要改成西类牙文,一直不行。publicWebDrivergetDriver(Stringlocale){System.setProperty("webdriver.chrome.driver","driver/chromedriver.exe");returnnewChromeDriver();}publicvoidinitializeSelenium()throwsException{driver=getDriver("en-us")} 最佳答案 您可以通过添加Chrom

selenium - 哪个 ChromeDriver 版本与哪个 Chrome 浏览器版本兼容?

其实我有点迷茫。虽然我读了severalresources关于这个。要使用ChromeBrowser测试Selenium3,我们需要一个名为ChromeDriver的额外应用。我找到了这段文字fromGitHub:ChromeDriverisonlycompatiblewithChromeversion12.0.712.0ornewer.IfyouneedtotestanolderversionofChrome,useSeleniumRCandaSelenium-backedWebDriverinstance.我的问题是所有ChromeDriver版本都与所有Chrome版本兼容吗?各

java - OSX (Java) 上 new ChromeDriver() 抛出的 IllegalAccessError

直接在Eclipse下获取它。代码:System.setProperty("webdriver.chrome.driver","/path/to/selenium/chromedriver");WebDriverdriver=newChromeDriver();抛出异常:Exceptioninthread"main"java.lang.IllegalAccessError:triedtoaccessmethodcom.google.common.util.concurrent.SimpleTimeLimiter.(Ljava/util/concurrent/ExecutorServic

python - 错误 :gpu_process_transport_factory. cc(1007) - 丢失 UI 共享上下文:在 Headless 模式下通过 ChromeDriver 初始化 Chrome 浏览器时

当我尝试在3台计算机中的2台上运行代码时出现此错误:[0502/155335.565:ERROR:gpu_process_transport_factory.cc(1007)]LostUIsharedcontext.代码如下:fromseleniumimportwebdriverfromselenium.webdriver.chrome.optionsimportOptionsimportoschrome_options=Options()chrome_options.add_argument("--headless")chrome_options.add_argument("--di

python - ChromeDriver ERR_SSL_PROTOCOL_ERROR 尽管 --ignore-certificate-errors

我正在尝试使用带有ChromeDriver的selenium在本地主机(没有HTTPS)上运行集成测试。Chrome需要https证书,但来自this我知道我可以使用arg--ignore-certificate-errors来规避这个问题我还在我的功能中添加了acceptInsecureCerts,因为这似乎是适当的操作过程(docs)chromedriver的响应仍然不是我所期望的:Thissitecan’tprovideasecureconnectionappsentaninvalidresponse.ERR_SSL_PROTOCOL_ERROR我的代码如下:fromseleni

python - WebDriverException : Message: 'Can not connect to the ChromeDriver' . utils.is_connectable(self.port) 错误:

我正在尝试使用chromedriver2.10在CentOS机器上的Chrome浏览器版本35.0.1916.114上运行我的测试/home/varunm/EC_WTF_0.4.10/EC_WTF0.4.10_Project/wtframework/wtf/drivers/chromedriver实际上我解决了路径问题,因为如果问题出在路径上,错误消息会有所不同defstart(self):"""StartstheChromeDriverService.:Exceptions:-WebDriverException:Raisedeitherwhenitcan'tstarttheserv

python - 在 Mac 上使用 selenium 和 chromedriver

我想在Mac上使用selenium和chromedriver,但我遇到了一些麻烦。我从ChromeDriver-WebDriverforChrome下载chromedriver|但我不想把它放到PATH中。所以我这样做了。importosfromseleniumimportwebdriverPROJECT_ROOT=os.path.abspath(os.path.dirname(__file__))DRIVER_BIN=os.path.join(PROJECT_ROOT,"bin/chromedriver_for_mac")printDRIVER_BINbrowser=webdrive