šŸ”„ How to Handle with Multiple Windows,Frames and Iframe in Selenium(with Code)

promode

Pramod Dutta

Posted on September 30, 2020

šŸ”„ How to Handle with Multiple Windows,Frames and Iframe in Selenium(with Code)

āœ… Join us - https://sendfox.com/thetestingacademy

āœ… Download Code - https://codeshare.io/5O1nOW

In this video, We are going to learn How To Handle Handle with Multiple Windows,Frames and Iframe in Selenium.

āœ… API Testing using Postman -
https://www.learnapitesting.com

āœ… Cypress Tutorial with LIVE Projects -
https://cypresstutorial.com

āœ… REST API testing with Python -
https://masterapitesting.com

āœ… Handling Multiple Windows in Selenium
The user scenario being automated here is: Open a new tab and then switch back to the last window to complete the other pending activities. In such scenarios, Selenium helps to handle multiple windows through window handlers and javascript executors.

āœ… What is a window handle?
It is a unique identifier that holds the address of all the windows. Think of it as a pointer to a window, which returns the string value. It is assumed that each browser will have a unique window handle. This window handle function helps to retrieve the handles of all windows.

āœ… Syntax

get.windowhandle(): This method helps to get the window handle of the current window
get.windowhandles(): This method helps to get the handles of all the windows opened
set: This method helps to set the window handles in the form of a string. set string set= driver.get.windowhandles()
switch to: This method helps to switch between the windows
action: This method helps to perform certain actions on the windows
These are some of the methods that will be used to handle multiple windows in Selenium.

šŸš€ What is 30 Days of Automation in Testing Challenge?

This video is part of 30 Days of Automation in Testing Challenge in Selenium where we will create our own Automation Framework from start.

#seleniumtutorial #thetestingacademy #seleniumframework #seleniumjava

seleniumforbeginner

šŸ’– šŸ’Ŗ šŸ™… šŸš©
promode
Pramod Dutta

Posted on September 30, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related