Friday, March 21, 2014

Selenium WebDriver... Multiple Windows(Child Window and Parent Window)

For Navigating to child window form parent window, can use below command...


String Parent_Window = Driver.driver.getWindowHandle();
  for (String Child_Window : Driver.driver.getWindowHandles()) {

   Driver.driver.switchTo().window(Child_Window);
  }


No comments:

Post a Comment