cancel
Showing results for 
Search instead for 
Did you mean: 

How to recognize the 2nd launching firefox in TC

Highlighted
Occasional Contributor

How to recognize the 2nd launching firefox in TC

Flow is as follow:



Launch 1st firefox

Check that it launches successfully using Exists method

Wait for it to fully launch

Launch 2nd firefox (w/o closing the first one)

Check that it launches successfully using Exists method  <--- This is where I am having issue because it will return true since the 1st firefox already launched. Any thoughts? I don't want to statically wait for 2nd firefox to launch. I thought of checking for ID/handle but not a good idea if there are more than 2 already launched.
1 REPLY 1
Highlighted
Staff

RE: How to recognize the 2nd launching firefox in TC

Hi,



If you launch FF from TestedApps, you can obtain its process as a result of the Run method. It will launch a new instance of FF and return it.



Also, you can use indexes to distinguish among existing FF processes.



------
Yuri
TestComplete Customer Care Engineer

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare images using the Region Checkpoint

See replies!

Converting UTC TimeDate in an Excel file

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors