Switch to a new tab and open the previously saved URL.
To open a new browser tab, use the "Ctrl+t" command on the body element. To switch to the second browser tab, use the "Ctrl+2" command. For the second browser tab, change the URL to google.com. In the second browser tab, get the body web element.
Go to the above-mentioned URL.
Get the handle of the current window and write it to the console window.
Find and click the "Visit W3Schools.com!" link.
Gather all window handles and keep a list of them.
To the console, write the entire window handle number.