Selenium WebDriver Tutorial #25 - How to Handle Multiple Windows in Selenium

  Рет қаралды 54,191

Software Testing Mentor

Software Testing Mentor

4 жыл бұрын

Get all my courses for USD 5.99/Month - bit.ly/all-courses-subscription
🔹 FREE Training's at training.rcvacademy.com 🔹
In this Selenium Webdriver Tutorial we will learn How to Handle Multiple Windows in Selenium WebDriver.
When you click a link which opens in a new window will focus the new window or tab on screen, but WebDriver will not know which window the Operating System considers active.
In order to work with the new window you will need to switch to it. Selenium WebDriver provides method to switch between windows and tabs.
Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials. More tutorial playlists below:
✅ ALL PLAYLISTS (Software Testing Mentor)🔸 / softwaretes. .
✅ ALL PLAYLISTS (RCV Academy)🔸 kzfaq.info/love/ddU...
✅ JIRA BEGINNER TUTORIAL🔸 bit.ly/jira-beginner-tutorial
✅ JIRA WORKFLOW TUTORIAL🔸 bit.ly/2EzKOEB
✅ JIRA ADMINISTRATION TUTORIAL🔸 bit.ly/36MPPFR
✅ JIRA TUTORIAL INTERMEDIATE🔸 bit.ly/Atlassian-JIRA-tutorials
✅ JIRA TUTORIALS🔸 bit.ly/jira-tutorials
✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-for-jira-tutorials
✅ SOAPUI TUTORIAL🔸 bit.ly/Sopui-tutorial
✅ JSONPath TUTORIAL🔸 bit.ly/2sIZIFG
✅ POSTMAN TUTORIAL🔸 bit.ly/2PBbhI7
✅ ISTQB AGILE TESTER CERTIFICATION TUTORIAL🔸 bit.ly/istqb-agile-tester-cert...
✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL🔸 bit.ly/istqb-foundation-level-...
✅ CUCUMBER SELENIUM TUTORIAL🔸 bit.ly/cucumber-selenium-tutorial
✅ TESTRAIL TUTORIAL🔸 bit.ly/testrail-tutorial
✅ AGILE TUTORIALS🔸 bit.ly/agile-tutorials
✅ PYTHON TUTORIALS🔸 bit.ly/python-programming-tuto...
✅ PYTHON BEHAVE TUTORIALS🔸 bit.ly/python-behave-tutorial
✅ PRACTITEST TUTORIAL🔸 bit.ly/practitest-tutorial
✅ JAVA TUTORIAL🔸 bit.ly/2F1iL1B
✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-for-jira-tutorials
🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶
training.rcvacademy.com/
🔶 FOLLOW US ON TWITTER 🔶
/ rcvacademy
/ swtmentor
/ mrmverma
🔶 LIKE US ON FACEBOOK 🔶
/ softwaretest. .
/ rcvacademy47
🔶 OUR TUTORIAL WEBSITES 🔶
www.softwaretestingmentor.com
www.rcvacademy.com
🔶 GET MY TRAININGS ON UDEMY 🔶
www.udemy.com/user/manish68/
#SeleniumTutorial #SeleniumTraining #TestAutomation #SeleniumWebDriverTutorial #SeleniumWebDriver #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Пікірлер: 53
@agnihotrimanoj
@agnihotrimanoj 2 ай бұрын
Thank you sooo much sir for the clear and awesome explanation. Thanks again.
@simpleton7758
@simpleton7758 3 жыл бұрын
I'm new in testing from Taiwan. Really love this Selenium WebDriver Tutorial. Very helpful and thank you so much~~
@navneetmittal6022
@navneetmittal6022 11 ай бұрын
Awesome explanation. I have to see 3-4 different video on youtube to understand this concept. Your video clear all the confusion.
@askatahn5633
@askatahn5633 3 жыл бұрын
You are the best...really in love with the way you explain. I had went through lot of tutorials on window handling, but never got clarity.
@Eye_on_india
@Eye_on_india 5 ай бұрын
After 2 yrs I am recommenting your comment he really taught good,,,,, I am beginer in selenium web driver,, what's the growth?
@adityanetalkar2649
@adityanetalkar2649 2 жыл бұрын
Thank you so much for these detailed information, i was finding this concept bit difficult but you made it so simple for me to understand.
@TheAllanazarpour
@TheAllanazarpour 2 жыл бұрын
Very helpful and well explained, thank you, worked for me!
@rajendranavale8613
@rajendranavale8613 3 жыл бұрын
Very good explanation Sirji....I m your big fan sir...
@nouranwaled3825
@nouranwaled3825 2 жыл бұрын
the best instructor and the best content ever
@priyasai935
@priyasai935 2 жыл бұрын
Thank you very much Sir. I'm your new subscriber. your teaching is awesome. Thanks
@ganeshswami4759
@ganeshswami4759 3 жыл бұрын
Thank You so much sir..!!! Simple & Superb Explanation..!!
@yogeshsam92
@yogeshsam92 2 жыл бұрын
Excellent. Very well explained.
@alihadi9846
@alihadi9846 3 жыл бұрын
Simply the best!!
@Eye_on_india
@Eye_on_india 5 ай бұрын
Very informative❤🎉
@lawrencechandrasekar9488
@lawrencechandrasekar9488 3 жыл бұрын
Simply superb! Well explained
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Glad it was helpful! Regards,Manish
@laksmintasasti1507
@laksmintasasti1507 Жыл бұрын
Thank you, its very helpful :)
@LawyerAB
@LawyerAB 2 жыл бұрын
Again Thank You !
@radhabandari7470
@radhabandari7470 3 жыл бұрын
Easy to understand
@adityagupta-yw4kr
@adityagupta-yw4kr 3 жыл бұрын
if we don't want to use iterator method, we can use loop also to switch window: String parentWindow = driver.getWindowHandle(); driver.findElement(By.xpath("//span[contains(text(),'Start my free trial')]")).click(); Set WH = driver.getWindowHandles(); for (String S1 : WH) { if (!S1.equals(parentWindow)) { driver.switchTo().window(S1); } } Thread.sleep(3000); driver.findElement(By.name("UserFirstName")).sendKeys("Admin");
@sahailgupta2088
@sahailgupta2088 2 жыл бұрын
bro how to do this in pyhton?
@harshadjadhav1480
@harshadjadhav1480 2 жыл бұрын
Nicely Explained thank you
@suhasiniraj2374
@suhasiniraj2374 3 жыл бұрын
hi,,, your videos amazing, they are so neatly explained.T hank You!
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Glad you like them! Keep watching.
@nukulkadam718
@nukulkadam718 3 жыл бұрын
I loved the way u explained inthis.. , now it looks easy. other videos created chaos in mind. note- A beginner
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Hi Nukul. I am glad my work is helpful, keep learning and sharing. Regards, Manish
@nukulkadam718
@nukulkadam718 3 жыл бұрын
keep making these videos. i want to switch in automation. i will comment once i get selected somewhere. i wish you a happy life with tons of followers and respect.
@TheSoleNemesis
@TheSoleNemesis 2 жыл бұрын
Amazing explanation. Worked each of the steps. You are indeed one of the best. Are you based in New Zealand by any chance?
@LawyerAB
@LawyerAB 2 жыл бұрын
Thank you sir.
@srivallisharma1791
@srivallisharma1791 4 жыл бұрын
Hi Software Testing Mentor Your videos content is very helpful.Thank you ! i have small doubt, If we want to handle more than 3 windows, then how we need to automate?.Please make small video!!Its my request
@ishakeshri4849
@ishakeshri4849 Жыл бұрын
Nice explain 👍
@venkatt2784
@venkatt2784 2 жыл бұрын
Thank you sir
@huayang2467
@huayang2467 2 жыл бұрын
Sir, thank you for these super clear and easy to follow tutorials. If you could help me with one question, since a set has no index numbers or particular order for its elements, how come window handle iterator is able to iterate through all window handles in a set order of parent to child, and so on? Thank you very much.
@karnataka8863
@karnataka8863 Жыл бұрын
Can we passing the control from child to child window or I came back to parent window from child then go for next child ? Correct me
@akiyi3671
@akiyi3671 11 ай бұрын
You are amazing
@softwaretestingmentor
@softwaretestingmentor 11 ай бұрын
Thank you very much. Keep watching and sharing.
@arunsinghal2977
@arunsinghal2977 Жыл бұрын
thanks sir , can you provide assert and screen shot video in framework.
@nagadhanyamraju6506
@nagadhanyamraju6506 3 жыл бұрын
I have parent and child window. I switch to child window, do the needed operations and do driver.close. In this case do we have to write switch to parent window code?
@gilsonsouza8159
@gilsonsouza8159 3 жыл бұрын
Hi, I have a question regarding Selenium. let's say that I am using selenium to create a routine automation instead of an test automation. And this routine will help not just me but others colleagues also. These colleagues don't know anything about programming. So I wish I could create some "desktop application". like an icon that they just click on it and the script will run. Without need of the Eclipse IDE or anything else. The point is that the webdriver follow a path, and this path is from my computer. also, there is a file, and the path if from my user. so I not sure on how to do it Can you help with that? I appreciate, thank you so much. If you know some other way, it is not necessary to be a desk app, could be online, on a server, I don't know.
@deepanshibindal3206
@deepanshibindal3206 Жыл бұрын
Please do the automation of Salesforce sign up page Fill all the details
@vishnuvlog8030
@vishnuvlog8030 Жыл бұрын
Dont know why you used long xpath to locate element? Use simple xpath methods it will be easy to understand for users.
@ADD-ol9eb
@ADD-ol9eb 2 жыл бұрын
Hello thank you for sharing this video. Sorry but i found this title as misleading, I was looking for automation handling between 2 window browsers but here you referred to new windows as 'TABS'. Your video is showing switching between TABS not windows as per my understanding. Do you have any content on using multiple windows please? Many thanks.
@iPranav007
@iPranav007 2 жыл бұрын
True that.. also he could’ve directly traversed with set but instead showed long way
@sivaramsathiamoorthi7257
@sivaramsathiamoorthi7257 2 жыл бұрын
@@iPranav007 Yeah for a new tab we can simply use, driver.switchTo().newWindow(WindowType.TAB).get("URL")
@dmitryneve1140
@dmitryneve1140 3 ай бұрын
xpath does not work. don't know why. copy as " /html/body/div[1]/hgf-c360nav//header/div[1]/div[1]/div[1]/div[5]/hgf-button". Trying to write down my own XPath - doesn't work either - not the first time happened by the way. can't find the solution.
@xyzabc-lk3mj
@xyzabc-lk3mj Жыл бұрын
Most of the website given by you is not working any more
@muthupriyan-tv1nz
@muthupriyan-tv1nz Жыл бұрын
where is the code man how can can i get the code?
@rampagerisu5848
@rampagerisu5848 Жыл бұрын
That's not a window that's new tab
@asrafulmondal8946
@asrafulmondal8946 Жыл бұрын
then what is new window
@reenasingh6521
@reenasingh6521 Жыл бұрын
It was very boaring explanation, pls try to improve, i didn't understand even single statement also
@sandeepdash3297
@sandeepdash3297 2 жыл бұрын
Thank you so much for these detailed information, i was finding this concept bit difficult but you made it so simple for me to understand.
@Abhifashionininteriors
@Abhifashionininteriors 9 ай бұрын
Thank you sir
@softwaretestingmentor
@softwaretestingmentor 9 ай бұрын
Welcome! Keep watching and sharing.
Selenium WebDriver Tutorial #26-How to Perform Mouse Hover in Selenium
10:17
Software Testing Mentor
Рет қаралды 36 М.
Selenium WebDriver Tutorial #24 - How to Handle Alert Popup in Selenium
16:20
Software Testing Mentor
Рет қаралды 29 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 21 МЛН
What are GetWindowHandle and GetWindowHandles in Selenium? | Selenium Basics
12:42
How to Handle Multiple Windows in Selenium WebDriver
22:46
H Y R Tutorials
Рет қаралды 84 М.
How to Handle Multiple Windows or Tabs in Selenium Webdriver
25:40
Mukesh otwani
Рет қаралды 170 М.
Selenium Webdriver Handling Browser Windows
1:10:31
SDET- QA
Рет қаралды 75 М.
How to Handle Frames in Selenium WebDriver
21:20
H Y R Tutorials
Рет қаралды 57 М.
Switch to a specific window out of 100 windows and validate it in #Selenium
13:17
Selenium WebDriver Tutorial #34 - What is Explicit Wait in Selenium
13:14
Software Testing Mentor
Рет қаралды 25 М.