我正在关注位于此处的文档。我的目标是将 Drone 集成到我的客户端测试中。
这是我的代码示例:
@Test
@RunAsClient
public void testSomething(@Drone final FirefoxDriver driver) throws Exception {
final String url = "www.google.com";
System.out.println("### the endpoint is :: " + url);
driver.get(url);
driver.wait(5000);
final String pageSource = driver.getPageSource();
System.out.println("### source is :: " + pageSource);
}
当我运行我的 Arquillain 测试时,一个 firefox 窗口确实打开了,但它就在那里。一段时间后,我的测试超时,并给我以下混乱:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
我在 Firefox 32 和 45 上尝试过,结果相同。我对 selenium 的依赖结构如下:
硒火狐驱动程序:2.29.0
硒远程驱动程序:2.29.0
arquillian-drone-webdriver-depchain:1.1.1.Final
我在这里想念什么?