Display results as :
Advanced Search

Go down
Posts : 1
Join date : 2011-08-10

Connection refused while using Grid 2 Empty Connection refused while using Grid 2

on 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:
public static void main(String args[]){
        DesiredCapabilities capability = DesiredCapabilities.firefox();
        try {
            WebDriver driver = new RemoteWebDriver(new URL("[i]IP-to-Hub[/i]"), capability);
            WebElement element = driver.findElement("q"));

            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) {

The problem is that after one or two minutes the console of the hub outputs this:
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
I replaced the IP of the webdriver node with "IP-to-WebDriver-Node".

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.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum