Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.appium.java_client;
 
 public interface InteractsWithApps {
Launch the app which was provided in the capabilities at session creation
 
 	public void launchApp();

Install an app on the mobile device

Parameters:
appPath path to app to install
	public void installApp(String appPath);

Checks if an app is installed on the device

Parameters:
bundleId bundleId of the app
Returns:
True if app is installed, false otherwise
	public boolean isAppInstalled(String bundleId);

Reset the currently running app for this session
	public void resetApp();

Runs the current app as a background app for the number of seconds requested. This is a synchronous method, it returns after the back has been returned to the foreground.

Parameters:
seconds Number of seconds to run App in background
	public void runAppInBackground(int seconds);

Remove the specified app from the device (uninstall)

Parameters:
bundleId the bunble identifier (or app id) of the app to remove
	public void removeApp(String bundleId);

Close the app which was provided in the capabilities at session creation
	public void closeApp();
New to GrepCode? Check out our FAQ X