selenium-chromedriver - 使用 Chrome Canary 运行 WebDriver?

标签 selenium-chromedriver

有没有办法告诉chromedriver (Chrome 中的 webdriver 实现)使用 Canary、Beta 或当前生产的 chrome?

最佳答案

您可以要求 ChromeDriver 在非标准位置使用 Chrome 可执行文件

ChromeOptions options = new ChromeOptions();
options.setBinary("/path/to/other/chrome.exe");

在 Mac OS X 上,这应该是实际的二进制文件,而不仅仅是应用程序。例如,/Applications/Google Chrome.app/Contents/MacOS/Google Chrome .

[通过 chromedriver Capabilities and Switches]

关于selenium-chromedriver - 使用 Chrome Canary 运行 WebDriver?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18499367/

相关文章:

javascript - Python - Selenium 测试在尝试接受警报时卡住

python - 在 Python Selenium 中创建页面倒计时

java - Selenium 等到可点击但仍然不可点击

python - 网络驱动程序异常 : Message: Service/usr/lib/chromium-browser/chromedriver unexpectedly exited on Raspberry-Pi with ChromeDriver and Selenium

python - 创建一个新文件夹并将其作为 Selenium 中的默认下载

c# - Selenium C# 日志记录首选项未完全实现?

javascript - ReCaptcha - Chrome 隐藏扩展

java - Tomcat 中的 Selenium Chrome 驱动程序为什么不工作?

google-chrome - Selenium Webdriver - SessionNotCreatedError

javascript - 使用 JavaScript 的 Selenium Webdriver,如何使用 chromedriver.exe 的特定路径启动 Chrome?