【发布时间】:2018-06-18 23:16:53
【问题描述】:
我正在使用 Linux 设置我的 selenium-webdriver 测试,并致力于使用 Cron Jobs 自动化我的测试。运行我的脚本时,我收到此错误
Selenium::WebDriver::Error::WebDriverError:
unable to connect to chromedriver 127.0.0.1:9515
which chromedriver 返回:
/usr/bin/chromedriver
和which google-chrome-stable 返回:
/usr/bin/google-chrome-stable
我认为该错误与尚未安装 Chrome 有关,所以我这样做了,但似乎没有解决我的问题。
我该如何解决这个问题?
谢谢!
【问题讨论】:
-
请您的代码试用?
标签: ruby linux google-chrome selenium amazon-ec2