I have a situation in which I have to perform some action on one web page and their changes will reflect in the other web page. And after that I want to check whether changes are reflecting or not by visiting the other web page. So is their any way to achieve this?

The point is both the web pages are of different application. I was willing to perform task on one web page in one tab and then opening other web page in other tab. If there is any other way to do this. kindly suggest.

  • Open a new window is no alternative?
    – Twaldigas
    Commented Jul 22, 2014 at 8:44
  • a new window means another instance of browser. is it? Commented Jul 22, 2014 at 9:01

1 Answer 1


Use the Actions object to open a new tab. Perform a action who press and hold the ctrl key and after that press the t key. After that release all keys.

ctrl and t is the shortcut to open a new tab in the most browsers.

To switch between the tabs you use the following shortcut: ctrl and TAB.

  • I have never used JavascriptExecutor. Is there any specific thing I need to do with it or simply writing window.open will do the job. Commented Jul 22, 2014 at 11:34
  • @razizcool4all Updated the answer.
    – Twaldigas
    Commented Jul 22, 2014 at 11:50
  • JS also opens a new browser instead of new tab. Anyways thanks will use shortcuts. I was just curious to know whether we have any direct option for that or not. Commented Jul 22, 2014 at 12:18
  • @razizcool4all Hmm... yes, you are right. With the first line will a new WebDriver instance created. Sorry, my mistake. Answer updated.
    – Twaldigas
    Commented Jul 22, 2014 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.