Chapter 2
WebDriver Functionality
Section 4
Controlling the Browser Window
A web application starts as a single page in a browser window, but new windows and popups can be opened and closed throughout the workflow. The WebDriver class provides methods to handle navigating, resizing, and switching between windows. Let us learn to navigate through the webpages using the Selenium script.