Forum Discussion

qanhd's avatar
qanhd
Occasional Contributor
16 years ago

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.
  • 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.