无法连接到Chromedriver 127.0.0.1:9515。亚马逊Linux AMI。

5

我正在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 有关,因此我安装了它,但似乎并没有解决我的问题。

我该如何解决这个问题呢?

谢谢!


你的代码试验呢? - undetected Selenium
1个回答

3

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接