Interview Questions

Selenium WebdDriver - What is the difference between getWindowhandles() and getwindowhandle() ?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebdDriver - What is the difference between getWindowhandles() and getwindowhandle() ?

getwindowhandles(): It is used to get the address of all the open browser and its return type is iterator
getwindowhandle(): It is used to get the address of the current browser where the control is and return type is string

(Continued on next question...)

Other Interview Questions