getwindowhandles(): It is used to retrieve the addresses of all currently open browsers. The method returns a Set data type containing the addresses.
getwindowhandle(): It is used to obtain the current browser's address and its return type is a string data type.