Switch to the parent window and check if the title matches. © 2020 Brain4ce Education Solutions Pvt. When we have multiple windows in test automation, all we need to do is switching the focus from one window to another. I bet most of the software testers out there must have worked with this amazing tool which makes their lives easier, and for those who don’t know what is Selenium, I’ll help you take your first baby steps in exploring this tool. Let us understand the same in the following way: Window A has a link "Link1" and we need to … Next, we have declared an object of type iterator to use it for switching to the child window and perform actions on it. … This article will discuss how to automate this action with Selenium so that the website’s behavior can be monitored by testers. You can close the child window, and switch to the parent window once the operation is completely done. If there are multiple frames, they are part of the