How to Handle Multiple Tabs and Windows Using Selenium
Since Selenium is open source, it is widely used throughout the world. No matter how complicated the user interface (UI) is, Selenium offers several methods to automate it, decreasing or eliminating the need for manual work. Webdriver does not differentiate between windows and tabs. If you open any new tab or window, both can be handled using window handles. Each window or tab has a unique identifier which remains the same for a session.