Forum Discussion
fayizkc wrote:
Question 1: Is there any direct method in Testcomplete to launch new browser instance (in IE & Chrome)
AFAIK, There is no direct way to ignore the current instance of chrome/ie and open a new browser instance.
fayizkc wrote:
Question 2: If no, how can I identify the last opened browser and enter my application URL to that browser.
Check using Sys.Process("browser").Exists. If exists then use that browser instance to do so.
Shankar,
As I want to work with multiple URLs at same time, Sys.Process("browser").Exists will be true if I need to open new browser instance. My requirement is, need to open a new url as a separate instance to validate something in between the execution of my primary url without closing it. What solution we have in Test complete
- shankar_r6 years agoCommunity Hero
If you want to launch a new browser instance then you can use WshShell like below
WshShell.Run("powershell -command start chrome ");
to activate the chrome, loop thru the browser instances.
- fayizkc6 years agoOccasional Contributor
I already used WshShell.Run("iexplore.exe " +url2) as I mentioned in the question. But browser is getting hang every now and then when I use that method
Related Content
- 11 months ago