Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to run an application in background in appium ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.76k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: