18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to open new URL in a new browser
Hi,
In middle of my script, when I use _navigate("URL"); then the URL is opened in the same browser in which he script is running.
Is there anyway to open th e URL in a new browser and so that we can shift between these browsers whenever required (as per the scripts)
Example:
Suppose we are logging in GMAIL and we are doing some operations. In between We want to connect to Yahoomail in another browser and verify the emails. Then we want to shift back to GMAIl and verify some more emails.... like that......
Thanks,
Samsirsameer.
In middle of my script, when I use _navigate("URL"); then the URL is opened in the same browser in which he script is running.
Is there anyway to open th e URL in a new browser and so that we can shift between these browsers whenever required (as per the scripts)
Example:
Suppose we are logging in GMAIL and we are doing some operations. In between We want to connect to Yahoomail in another browser and verify the emails. Then we want to shift back to GMAIl and verify some more emails.... like that......
Thanks,
Samsirsameer.
Comments
To continue your example you would get
It'll be pretty easy to do - you'll quickly build up a library of functions and be able to 'chain' new tests together.
I accept that it will increase the time to run a test - but the simplicity of it will mean your tests will be robust. (and it'll give you a chance to get a cup of coffee!)
I would agree with John on that. But there IS something that you can do. You can use
But, again, as John says, keep it simple for better maintainability.
Regards,
Narayan