Question: what is the difference between getwindowhandle() and getwindowhandles() what is its return type?
Answer: getWindowHandles() – It stores the set of handles for all the pages opened simultaneously. driver. getWindowHandle() – It fetches the handle of the web page which is in focus. It gets the address of the active browser and it has a return type of String.