Ask a Question

How to recognize the 2nd launching firefox in TC

qanhd
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
YMinaev
Staff

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: