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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Get all my courses for USD 5.99/Month - bit.ly/all-cou...
    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.
    FULL Playlist: bit.ly/Selenium...
    🔸FREE Training's at training.rcvac... 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM
    Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:
    ✅ ALL PLAYLISTS (Software Testing Mentor)🔸 / softwaretestingmentor
    ✅ ALL PLAYLISTS (RCV Academy)🔸 / @rcvacademy
    ✅ JIRA BEGINNER TUTORIAL🔸 bit.ly/jira-beg...
    ✅ JIRA WORKFLOW TUTORIAL🔸 bit.ly/2EzKOEB
    ✅ JIRA ADMINISTRATION TUTORIAL🔸 bit.ly/36MPPFR
    ✅ JIRA TUTORIAL INTERMEDIATE🔸 bit.ly/Atlassia...
    ✅ JIRA TUTORIALS🔸 bit.ly/jira-tut...
    ✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-f...
    ✅ SOAPUI TUTORIAL🔸 bit.ly/Sopui-tu...
    ✅ JSONPath TUTORIAL🔸 bit.ly/2sIZIFG
    ✅ POSTMAN TUTORIAL🔸 bit.ly/2PBbhI7
    ✅ ISTQB AGILE TESTER CERTIFICATION TUTORIAL🔸 bit.ly/istqb-ag...
    ✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL🔸 bit.ly/istqb-fo...
    ✅ CUCUMBER SELENIUM TUTORIAL🔸 bit.ly/cucumber...
    ✅ TESTRAIL TUTORIAL🔸 bit.ly/testrail...
    ✅ AGILE TUTORIALS🔸 bit.ly/agile-tu...
    ✅ PYTHON TUTORIALS🔸 bit.ly/python-p...
    ✅ PYTHON BEHAVE TUTORIALS🔸 bit.ly/python-b...
    ✅ PRACTITEST TUTORIAL🔸 bit.ly/practite...
    ✅ JAVA TUTORIAL🔸 bit.ly/2F1iL1B
    ✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-f...
    🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶
    training.rcvaca...
    🔶 FOLLOW US ON TWITTER 🔶
    / rcvacademy
    / swtmentor
    / mrmverma
    🔶 LIKE US ON FACEBOOK 🔶
    / softwaretestingmentor
    / rcvacademy47
    🔶 OUR TUTORIAL WEBSITES 🔶
    www.softwarete...
    www.rcvacademy...
    🔶 GET MY TRAININGS ON UDEMY 🔶
    www.udemy.com/...
    #SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
    Join this channel to get access to perks:
    / @softwaretestingmentor

Комментарии • 18

  • @SelectorsHub
    @SelectorsHub 3 года назад +6

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

    • @softwaretestingmentor
      @softwaretestingmentor  3 года назад +1

      Thank you very much! I am glad my work is helpful. @SelectorsHub is amazing as well and I use it extensively.

  • @kimalcoseba2199
    @kimalcoseba2199 2 года назад +1

    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

  • @ramichehab4797
    @ramichehab4797 Год назад +1

    Thank you!

  • @wagnerbarbosa1894
    @wagnerbarbosa1894 2 года назад +1

    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.

  • @artyom9499
    @artyom9499 10 месяцев назад

    Awesome lesson

  • @kunjatakadhakal
    @kunjatakadhakal 2 года назад +1

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

  • @AnilRathod-zh3iu
    @AnilRathod-zh3iu 2 года назад +1

    Thankyou sir

  • @aundremoodie
    @aundremoodie 3 года назад +2

    genius

  • @mdabdullahalhasib2920
    @mdabdullahalhasib2920 2 года назад +1

    Nice

  • @trishalaingale234
    @trishalaingale234 Год назад

    Can you please share solution of the assignment

  • @rajancreation9813
    @rajancreation9813 2 года назад

    How to use chrome shortcut keys in python selenium

  • @shiva11112
    @shiva11112 2 года назад

    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

    • @UlianaPratsun
      @UlianaPratsun 7 месяцев назад +1

      if handle != parent_handle:
      driver.switch_to.window(all_handles[3])

  • @rajancreation9813
    @rajancreation9813 2 года назад

    How to close the window and close other windows

  • @nammurushivamogga
    @nammurushivamogga 2 года назад

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

    • @UlianaPratsun
      @UlianaPratsun 7 месяцев назад +1

      if handle != parent_handle:
      driver.switch_to.window(all_handles[3])