【发布时间】:2012-04-04 12:44:08
【问题描述】:
我正在开发 facebook php webdriver,我正在使用与 webdriver 库位于同一目录中的 selenium 独立服务器的 Ubuntu。
我使用本地 IP 地址作为 192.168.x.x 连接到 linux,当我执行以下代码时
<?
require '__init__.php';
$wd_host = 'http://localhost:4444/wd/hub';
$web_driver = new WebDriver($wd_host);
$session = $web_driver->session('firefox');
?>
我经常收到这个错误 “未捕获的异常 'UnhandledWebDriverError' 带有消息 'Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox 控制台输出:错误:未指定显示”
谁能指出我哪里出错了?
谢谢
【问题讨论】: