1.

In Selenium WebDriver, what is the difference between driver.getWindowHandle() and driver.getWindowHandles()?

Answer»

The difference between the two is as follows:

  • driver.getWindowHandle() – This method RETURNS the CURRENT PAGE's handle (a unique IDENTIFIER).
  • driver.getWindowHandles() – This function returns a list of handles for all of the pages that are opened at that particular TIME.


Discussion

No Comment Found