Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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.

share|improve this question
    
Open a new window is no alternative? –  Twaldigas Jul 22 at 8:44
    
a new window means another instance of browser. is it? –  razizcool4all Jul 22 at 9:01

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer
    
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. –  razizcool4all Jul 22 at 11:34
    
@razizcool4all Updated the answer. –  Twaldigas Jul 22 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. –  razizcool4all Jul 22 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 Jul 22 at 12:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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