Web applications can include frames that divide pages into different sections. Each of the sections usually includes specific content. The WebDriver class, combined with the WebDriver.TargetLocator interface, allows automation scripts to manage and iframes.
See the Managing Alerts section for a detailed description of the switchTo() method and WebDriver.TargetLocator interface.