Selenium Python Tutorial#34 - How to handle Multiple Windows in Selenium

preview_player
Показать описание
In this Selenium Python Tutorial, we will learn how to handle multiple windows in Selenium Python. At many times in Selenium Web Automation you will see that a new tab or window opens when you click on some webelement.

When more that one window opens, then you need to switch focus to new window if you need to perform operations on new browser window or tab. Python selenium provides methods to get the window handles and then use those to switch between multiple browser windows or tabs.

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

One of the best Selenium Python series. Thank you so much Manish for creating it and helping everyone with it.

SelectorsHub
Автор

Hello Manish, when I tried the swith_to_window, I got this error: "attributeerror: 'webdriver' object has no attribute 'switch_to_window'". Further checking, it was mentioned that switch_to_window was deprecated in Selenium v2.41. The solution was to use 'switch_to.' (with the period) instead of 'switch_to_'.

Great job by the way with these videos. SO easy to understand. And love the assignment at end. :D

kimalcoseba
Автор

Hello! Here, Wagner, from Brazil! First of all, thank you for all the classes given for free! Simply fantastic! Would you please help me on this: I work with Sales Force. When I click in a button "reports", for exemple, instead of opening the URL in a new window, it opens under the same window. Can you show how to switch to the last "window" (not a window exactly but a new URL or something like that) just opened? Maybe there is a little trick to do it for which I could not find out yet. Again, thank you very much for the classes! Bye.

wagnerbarbosa
Автор

Great videos Sir. Thank you. Do you take mock interviews now?

kunjatakadhakal
Автор

I have a question, If we have 4 to 5 windows open and need to switch to particular window, say from 5th to 3rd window. How do we do that

shiva
Автор

How to use chrome shortcut keys in python selenium

rajancreation
Автор

Can you please share solution of the assignment

trishalaingale
Автор

Someone please ans.. How to handle More than 2 tabs opened?? This method does not work in this case... Kindly help

nammurushivamogga
Автор

How to close the window and close other windows

rajancreation