On some action there might a possibility that the application may take some extra time to execute. So, we may execute that application in the background. Appium provides a method through which we can run any application in background.
runAppInBackground(int seconds)
This method runs the current running application in background for the number of seconds passed in the method as argument.
Lets suppose we have to test an application and that application is not installed in the mobile device than we have to first install the application in the device. The installation of the device is taking a bit more time, so we may run that application in the background for some time(seconds).
driver.runAppInBackground(15);
This run the current running application in background for 15 seconds.
0 Comment(s)