- gurkensalat89
- Posts : 1
Join date : 2011-08-10
Connection refused while using Grid 2
Wed Aug 10, 2011 5:58 pm
Hi everyone,
I set up Grid 2 following this article: Sry, as a new member I can't post external links. I don't know why. This is why I had to replace all the links and IPs in the code too. Is this really necessary?
I have two iMacs. I set up a hub on one iMac and on the other a WebDriver node.
On the hub machine I started a Selenium test in Eclipse:
The problem is that after one or two minutes the console of the hub outputs this:
Has anyone an idea? Firewall settings? Any other security settings? I don't know what to do. Google didn't find anything. Thanks a lot guys.
I set up Grid 2 following this article: Sry, as a new member I can't post external links. I don't know why. This is why I had to replace all the links and IPs in the code too. Is this really necessary?
I have two iMacs. I set up a hub on one iMac and on the other a WebDriver node.
On the hub machine I started a Selenium test in Eclipse:
- Code:
public static void main(String args[]){
DesiredCapabilities capability = DesiredCapabilities.firefox();
try {
WebDriver driver = new RemoteWebDriver(new URL("[i]IP-to-Hub[/i]"), capability);
driver.get("[i]someURL[/i]");
WebElement element = driver.findElement(By.name("q"));
element.sendKeys("Cheese");
element.submit();
System.out.println("Page title is: " + driver.getTitle());
(new WebDriverWait(driver, 10)).until(new ExpectedCondition() {
public Boolean apply(WebDriver d) {
return d.getTitle().startsWith("cheese");
}
});
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
The problem is that after one or two minutes the console of the hub outputs this:
I replaced the IP of the webdriver node with "IP-to-WebDriver-Node".10.08.2011 12:31:00 org.openqa.grid.web.servlet.handler.WebDriverRequestHandler forwardNewSessionRequest
WARNING: Error forwarding the request Connection to IP-to-WebDriver-Node refused
Has anyone an idea? Firewall settings? Any other security settings? I don't know what to do. Google didn't find anything. Thanks a lot guys.
Permissions in this forum:
You cannot reply to topics in this forum