Selenium Grid concept

Hi friends,

Hope you are fine.

I set up selenium grid environment in my system and when i compile and run only one node1 was executing and the other node2 was not running.

Tried with the same port and different port also.

And my question is whether GRID is used to run in single system at a time or multiple system ?? if multiple system mean why its not running in my node2.

If anyone know please explain.

Thanks in Advance

Add Comment
  • 2 Answer(s)

    I have nodes on different OS

    Give your nodes config, I’ll help.

    Reviewer Answered on April 8, 2016.
    Add Comment

    Hi Victor,

    Thanks for the reply kindly find the attached config image.

    RE: Selenium Grid concept

    Kindly tell what mistake i have done and see my code for your reference.

    
    @BeforeMethod
    
    public void beforeMethod() throws IOException
    
    {
    
    dr=new DesiredCapabilities();
    
    dr.setBrowserName("firefox");
    
    dr.setPlatform(Platform.WINDOWS);
    driver=new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), dr);
    
    String appUrl = "http://gmail.com";
    
    driver.get(appUrl);
    
    driver.manage().window().maximize();
    }
    @Test
    
    public void f() throws MalformedURLException, Exception
    
    {
    
    driver.findElement(By.id("username")).sendKeys("admin");
    
    Thread.sleep(2000);
    
    driver.findElement(By.id("password")).sendKeys("password");
    
    Thread.sleep(2000);
    
    driver.findElement(By.cssSelector("input.t-button.t-button-expand")).click();
    
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
    
    Thread.sleep(5000);
    }
    
    
    Default Answered on April 11, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.