I am following the documentation located here. My goal is to integrate Drone into my client tests.
Here is an example of my code:
@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);
}
When I run my Arquillain tests, a firefox window does open, but it just sits there. After some time, my test times out, and gives me the following mess:
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
I tried this on Firefox 32 and 45, with the same result. My dependency structure for selenium is as follows:
selenium-firefox-driver: 2.29.0
selenium-remote-driver: 2.29.0
arquillian-drone-webdriver-depchain:1.1.1.Final
What am I missing here?
Firefox 32, 45 are very old.
You seem to be referring to some old doc on Arquillian Drone.
Check this new documentation - http://arquillian.org/arquillian-extension-drone/
Check my pom which works great and adjust yours accordingly.