Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Connection refused while using Grid 2

View previous topic View next topic Go down

Connection refused while using Grid 2

Post by gurkensalat89 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:
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.

gurkensalat89

Posts : 1
Join date : 2011-08-10

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum