Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

Connection refused while using Grid 2 Empty 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:
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:
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