Ask a Question

opening url in new browser window


opening url in new browser window

Hi one of my team requirement is open an application in new browser window. if have the below Javascript code


 which is replacing the existing active  browser window url and lauching the application if any of browser currently open.

Else lauching the application in new browser window.

but  the requirement is :

Open an application in an new browser(Chrome) window  even if  the browser window opens.

Do we have an y TC operation for it?

 I looked at the exisitng forum posts and tried didnot help.



Community Hero

Re: opening url in new browser window

Did you try what @tristaanogre suggested when you asked the same question over in this thread?  If so, what happened?

Community Hero

Re: opening url in new browser window

Question:  Is this a requirement of the application, that you need to be able to open a second browser window and perform some actions against it?  Or is this a requirement of the written manual test that you're converting to automation? 


While technically speaking, automated tests should be able to do everything a manual test does, one of the bonuses of having a well written, coded, robust automated test is that you don't HAVE to do what is manually written.  The question I would have of the manual test is "Why do we need a second browser window?  What is the functionality that we're trying to test?"  The answers to that may dictate that, while manually this seems to make sense, for an automated test, it might be sufficient to simply close the browser and reopen it to a new URL.  

So... what's the purpose of the second browser window?  What are you trying to achieve?  Perhaps there's another way of doing which, in the meantime, may work better than other suggestions.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Community Manager

Re: opening url in new browser window

Hi @techgirlbb,


Was the issue resolved? Please let us know if you need any more assistance.

Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Occasional Contributor

Re: opening url in new browser window



I tried this piece of code in python, Where i am able to open a new browser window, when one instance of the browser is already present.


You can convert this piece of code to your desired language and try it out.


import os

os.system("start chrome --new-window")



Showing results for 
Search instead for 
Did you mean: