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. It is very helpful article. Enroll today to get free access to our live demo session which is a great opportunity to interact with the trainer directly which is a placement based Salesforce training India with job placement and certification . Get salesforce training in affordable cost from a best computer institute.

    ReplyDelete
  3. 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
  4. 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
  5. I see the best substance on your blog and I unbelievably love getting them.
    training provider in malaysia

    ReplyDelete
  6. 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

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...