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

  Рет қаралды 56,609

Software Testing Mentor

Software Testing Mentor

Күн бұрын

Пікірлер: 53
@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 Жыл бұрын
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 9 ай бұрын
After 2 yrs I am recommenting your comment he really taught good,,,,, I am beginer in selenium web driver,, what's the growth?
@nouranwaled3825
@nouranwaled3825 2 жыл бұрын
the best instructor and the best content ever
@agnihotrimanoj
@agnihotrimanoj 6 ай бұрын
Thank you sooo much sir for the clear and awesome explanation. Thanks again.
@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.
@adityanetalkar2649
@adityanetalkar2649 3 жыл бұрын
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.
@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
@TheAllanazarpour
@TheAllanazarpour 3 жыл бұрын
Very helpful and well explained, thank you, worked for me!
@rajendranavale8613
@rajendranavale8613 3 жыл бұрын
Very good explanation Sirji....I m your big fan sir...
@priyasai935
@priyasai935 3 жыл бұрын
Thank you very much Sir. I'm your new subscriber. your teaching is awesome. Thanks
@lawrencechandrasekar9488
@lawrencechandrasekar9488 4 жыл бұрын
Simply superb! Well explained
@softwaretestingmentor
@softwaretestingmentor 4 жыл бұрын
Glad it was helpful! Regards,Manish
@adityagupta-yw4kr
@adityagupta-yw4kr 4 жыл бұрын
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?
@TheSoleNemesis
@TheSoleNemesis 3 жыл бұрын
Amazing explanation. Worked each of the steps. You are indeed one of the best. Are you based in New Zealand by any chance?
@ganeshswami4759
@ganeshswami4759 3 жыл бұрын
Thank You so much sir..!!! Simple & Superb Explanation..!!
@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.
@alihadi9846
@alihadi9846 3 жыл бұрын
Simply the best!!
@yogeshsam92
@yogeshsam92 2 жыл бұрын
Excellent. Very well explained.
@suhasiniraj2374
@suhasiniraj2374 4 жыл бұрын
hi,,, your videos amazing, they are so neatly explained.T hank You!
@softwaretestingmentor
@softwaretestingmentor 4 жыл бұрын
Glad you like them! Keep watching.
@LawyerAB
@LawyerAB 3 жыл бұрын
Again Thank You !
@radhabandari7470
@radhabandari7470 3 жыл бұрын
Easy to understand
@T-Wali
@T-Wali 5 күн бұрын
Overview : The tutorial focuses on handling multiple browser windows in Selenium WebDriver, a crucial skill for automating applications that open new windows or tabs. Importance: Switching between windows is necessary when dealing with web applications that open new windows, and it's essential in automation testing. Example Website: The example used is Salesforce, where clicking on the "Start My Free Trial" button opens a new window for further input. Manual vs Selenium Control: In manual testing, you switch to a new window to fill out forms, but Selenium requires explicit instructions to switch between windows. Window Switching Issue: Selenium doesn’t automatically switch to the new window, so the script must be instructed to switch focus between the parent and child windows. Using getWindowHandles Method: Selenium provides the getWindowHandles method to get window handles, which returns a set of handles for all open windows. Window Handle Iteration: The set of window handles can be iterated over using Java’s Iterator class to switch between different windows. Practical Implementation: The script uses the switchTo().window() method with the window handle to switch to the child window and perform actions. Switching Back to Parent Window: After interacting with the child window, the script switches back to the parent window to continue testing. Final Testing and Output: The script successfully fills out fields in the child window, switches back to the parent, and prints out the window handles for verification. This tutorial demonstrates the steps required to handle multiple windows in Selenium WebDriver, including switching between windows and interacting with elements on each window.
@harshadjadhav1480
@harshadjadhav1480 2 жыл бұрын
Nicely Explained thank you
@arunsinghal2977
@arunsinghal2977 2 жыл бұрын
thanks sir , can you provide assert and screen shot video in framework.
@deepanshibindal3206
@deepanshibindal3206 Жыл бұрын
Please do the automation of Salesforce sign up page Fill all the details
@laksmintasasti1507
@laksmintasasti1507 2 жыл бұрын
Thank you, its very helpful :)
@xyzabc-lk3mj
@xyzabc-lk3mj Жыл бұрын
Most of the website given by you is not working any more
@ADD-ol9eb
@ADD-ol9eb 3 жыл бұрын
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")
@Eye_on_india
@Eye_on_india 9 ай бұрын
Very informative❤🎉
@LawyerAB
@LawyerAB 3 жыл бұрын
Thank you sir.
@ishakeshri4849
@ishakeshri4849 Жыл бұрын
Nice explain 👍
@vishnuvlog8030
@vishnuvlog8030 Жыл бұрын
Dont know why you used long xpath to locate element? Use simple xpath methods it will be easy to understand for users.
@venkatt2784
@venkatt2784 3 жыл бұрын
Thank you sir
@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?
@dmitryneve1140
@dmitryneve1140 7 ай бұрын
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.
@akiyi3671
@akiyi3671 Жыл бұрын
You are amazing
@softwaretestingmentor
@softwaretestingmentor Жыл бұрын
Thank you very much. Keep watching and sharing.
@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.
@muthupriyan-tv1nz
@muthupriyan-tv1nz Жыл бұрын
where is the code man how can can i get the code?
@rampagerisu5848
@rampagerisu5848 2 жыл бұрын
That's not a window that's new tab
@asrafulmondal8946
@asrafulmondal8946 Жыл бұрын
then what is new window
@VloggingBook1104
@VloggingBook1104 Жыл бұрын
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 Жыл бұрын
Thank you sir
@softwaretestingmentor
@softwaretestingmentor Жыл бұрын
Welcome! Keep watching and sharing.
Selenium WebDriver Tutorial #26-How to Perform Mouse Hover in Selenium
10:17
Software Testing Mentor
Рет қаралды 37 М.
Selenium WebDriver Tutorial #23 - How to Handle Frames in Selenium
17:07
Software Testing Mentor
Рет қаралды 39 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 18 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 28 МЛН
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
Рет қаралды 90 М.
Selenium WebDriver Tutorial #24 - How to Handle Alert Popup in Selenium
16:20
Software Testing Mentor
Рет қаралды 31 М.
How to Handle Multiple Windows or Tabs in Selenium Webdriver
25:40
Mukesh otwani
Рет қаралды 171 М.
Switch to a specific window out of 100 windows and validate it in #Selenium
13:17
Selenium Python Tutorial#34 - How to handle Multiple Windows in Selenium
17:54
Software Testing Mentor
Рет қаралды 18 М.
How to Handle Frames in Selenium WebDriver
21:20
H Y R Tutorials
Рет қаралды 62 М.
Selenium WebDriver Tutorial #20 - How to Handle Auto Suggestion Dropdown
13:01
Software Testing Mentor
Рет қаралды 66 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 18 МЛН