How to Switch to a New Window in Selenium

This post is written with the intent to teach you how to switch to a new window in selenium. We make use of window handles when we have to switch to a new window....