How to Handle Multiple Windows in Selenium WebDriver

preview_player
Показать описание
In this video, you’ll learn how to automate window switching in Selenium WebDriver. We’ll use getWindowHandles() and switchTo().window() methods to handle multiple browser windows and tabs during test execution.

Visit my blog for more tutorial

Get in-depth automation tutorials and personalized notes at:

For more valuable and exclusive learnings on automation visit:

Contact Mukesh Otwani at:

Mukesh Otwani Social Media Handles:

Read Our Latest Blogs On Automation:

Generative AI-based Test Automation Tool - TestRigor:

Playwright with Java: Complete Web & API Automation Framework Series:

QA & Tech Essentials: Career, Tools, and Quick Tips:

Playwright With JavaScript Tutorials - From Basic To Advanced:

About Mukesh Otwani and Test Automation:
Hi, I’m Mukesh Otwani, A passionate working professional based in the vibrant city of Bangalore, India. This channel is dedicated to helping manual testers and aspiring QA professionals transition smoothly into the world of automation testing. With years of hands-on experience, I share practical and beginner-friendly tutorials covering a wide range of tools and technologies including Selenium WebDriver, TestNG, Maven, Appium, Sikuli, AutoIT, Jenkins, Git, GitHub, RPA, Playwright, and more. Whether you're starting your automation journey or looking to upgrade your skills with real-world project insights and framework development, you’re in the right place. Subscribe and join a growing community of learners committed to mastering automation and staying ahead in the ever-evolving tech industry.

Get Exclusive & Premium Automation Courses Here 👉 -

🔍All Affiliate and Partnership Links :

Keywords:
multiple windows selenium, switch window selenium, selenium handle new tab, selenium multiple browsers, window handles selenium

Hashtags:
#Selenium #WebDriver #WindowHandling #AutomationTesting #TestAutomation #SoftwareTesting #QA #MultipleWindows #UITesting
Рекомендации по теме
Комментарии
Автор

hi mukesh,

Your tutorials are very helpful for beginner llike me. you are doing a great job keep it up bro and do keep posting.

pradeeppandey
Автор

Mukesh, your videos are very useful for us, its very good for trainers in order to explain the concepts, its me hema as corporate trainer

hemalatha-egnn
Автор

Hi Mukesh will this work when I am switching between chrome and ie?

everythingandelse
Автор

Hi Mukesh sir...again bhupi here, can u pls tell us why u havnt create main function in this program and while login also, u have used run as TestNG .. can u pls give us some introduction of that as from this . this was gud demo . i got each and every point.
1 small doubt : what is iteration here.. it is type of datatype?

bhupendrabisht
Автор

Hi Mukesh,
If there are 4 windows and i want to perform some task on the third window.How can switch the control to third window.plz help me out.

deviprasadguru
Автор

hi mukesh
Clicking on link, Its navigating to new tab instead of new window
Because of this Set<String> is getting only one value
Can u helpp me with this issue

LikhithReddy
Автор

can u please tell me how many programmes are there in testing of a webelement?

barunkumarpanda
Автор

Mukesh, very nice tutorial, there is only one issue that your voice is very low, we can hardly hear you, please keep the mic very close to. Thanks

kulwantsahota
Автор

How to switch between two incognito windows?
With getWindowHandles() method, I am only getting only normal window ID’S..
So with the above methods can’t able to switch between two incognito windows, pls suggest

venkatjakkepalli
Автор

Hello Mukesh,
Will you plz guide me, how to handle multiple windows in selenium webdriver without page title

anuradhanangare
Автор

Hi Mukesh,

Above code not working with chrome browser... can u help me out?..thank u

varalakshmia
Автор

we don't have a getwindowhandle method in c# . can you please tell me the function to get windows handle in c#?

DineshKumar-oybe
Автор

Hi mukesh, pls upload the video with high audio..not able to hear properly

mannuhunasigi
Автор

Hi, i am able to switch b/w the multiple windows but in my scenario i want to switch b/w tabs in IE browser.
Please suggest.

Thanks for helping people like me who are new to automation.

kvrao
Автор

hi, while automating naukri.com site getting small popup, I tried to use switchto(), it couldn't. How to handle it ? please suggest..

manjunathm
Автор

How to switch to a specific window if multiple windows are open? Could you please upload a video on that?

rajendramahapatra
Автор

Hello Mukesh, Sushovan here, , Audio is vey low, its hardly audible . Please could you upload a fresh one.

sushovanashe
Автор

audio is very low. can u upload new video on this topic

kavyak
Автор

Hi Mukhesh, How to handle a dynamic windows in selenium ??

dileepkumar-pefr
Автор

Hi Mukesh, I have an application, have done with almost all. Login page done >> then another alert(done)>> after loging in, alert is closed, but next there is extra window, that I am not able to close it. I need to work on the main window for the remaining test cases. Could you plz help?

Login page: done
After login>> Alert: accept/close alert done
then it goes to main window and the other smal window remains unclosed.

Artech.Ranjit
visit shbcf.ru