Locating target windows and Frames

WebDriver enables the developers to switch between multiple child windows, browser tabs, and frames used in the application. For example, when you click on an internet banking link on a bank web application, it will open the internet banking application in a separate window or Tab. At this point, you may want to switch back to the original window to handle some events. Similarly, you may have to deal with a web application that is divided into two frames on the web page. The frame on the left may contain navigation items, and the frame on the right displays the appropriate web page, based on what is selected in the frame on the left. Using WebDriver, you can develop test cases that can easily handle such ...

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.