Interview Questions

Selenium WebDriver - What is the difference b/w getWindowHandles() and getWindowHandle() ?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - What is the difference b/w getWindowHandles() and getWindowHandle() ?

getWindowHandles()- is used to get the address of all the open browser and its return type is Iterator.

getWindowHandle()- is used to get the address of the current browser where the conrol is and return type is String.

(Continued on next question...)

Other Interview Questions