void Launch (activity, instrument, Stop if run)
|
|
|
|
|
Launch activity (application) or navigate to given URL during runtime.
Activity: The application main activity (the application to be launched).
OR a URL page.
Instrument: Boolean
True: Will launch the app in instrumented mode.
False: Will launch the app in instrumented mode.
Stop if run - Boolean
True: Will kill the application if it is on the background before reluanch
In the following example we will launch the imdb application on the android device
Application is available on the application manager.
Device before:
Parameters:
Result:
Now you can click the object spy as the application is instrumented
Different ways to launch iOS applications:launch iOS applications
How to perform mobile web testing: perform mobile web testing
client.launch("com.imdb.mobile/.Home", true, true);client.Launch("com.imdb.mobile/.Home", true, true);client.Launch "com.imdb.mobile/.Home", true, trueself.client.launch("com.imdb.mobile/.Home", True, True)$client->launch("com.imdb.mobile/.Home", 1, 1);