Saturday, November 23, 2019

Selenium4: Working with two parallel windows in Selenium Automation

A new method newWindow() is introduced in Selenium 4 (Alpha). Using this method we can open a new tab or new window from the current window. We can switch between the TABS/WINDOWS and work in parallel.

newWindow(WindowType.TAB) -- Opens a new tab

newWindow(WindowType.WINDOW) -- Opens a new window

In this post we will see working with two windows in parallel.

1. The first window launches the https://www.selenium.dev and prints the title
2. Open the new window/tab, switch to it and launch http://www.google.com
3. Search for "qababu.com" in Google
4. Switch back to first window and click on the projects menu on
Above one is our test scenario, checkout the below video


Thanks for reading and watching. #HappyLearning #HappyTesting #qababu

6 comments:

  1. Good blog explaining Selenium 4 features. Got a lot of information following your blog.

    ReplyDelete
  2. Through this post, I realize that your great information in playing with all the pieces was exceptionally useful. I advise this is the primary spot where I discover issues I've been scanning for. You have a smart yet alluring method of composing.data scientist malaysia

    ReplyDelete
  3. I've been looking at a portion of your posts on this site, and I think this site is really enlightening! Keep setting it up.
    artificial intelligence course in delhi

    ReplyDelete
  4. I see the best substance on your blog and I unbelievably love getting them.
    training provider in malaysia

    ReplyDelete
  5. I think I have never watched such online diaries ever that has absolute things with all nuances which I need. So thoughtfully update this ever for us.
    big data course in malaysia

    ReplyDelete
  6. What an extremely wonderful post this is. Genuinely, perhaps the best post I've at any point seen to find in as long as I can remember. Goodness, simply keep it up.
    HRDF Claimable

    ReplyDelete

DevOps 01: What is DevOps and How it benefits organizations?

DevOps is a culture in an organization, where the development team and operations team help each other by sharing information, process and t...