What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?



What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?..

Answer / Rahul Pratap Singh

The 'driver.getWindowHandle()' method returns the current window handle (ID) of the active browser window, while 'driver.getWindowHandles()' method returns all available window handles (IDs) of both the active and other opened windows.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are some advantages of selenium?

1 Answers  


What is the selenium webdriver?

1 Answers  


What test can selenium perform?

1 Answers  


Which web driver implementation is fastest?

1 Answers  


What is an absolute xpath?

1 Answers  


Do you know how to debug the tests in selenium ide?

1 Answers  


How to install use TestNG in selenium webdriver ?

1 Answers   Infosys,


Which attribute you should consider throughout the script in frame for “if no frame id as well as no frame name”?

1 Answers  


What could be the cause of selenium webdriver test to fail?

1 Answers  


What are the advantages of pom?

1 Answers  


Which is the package which is to be imported while working with webdriver?

1 Answers  


What is the difference between setspeed() and sleep() methods?

1 Answers  


Categories