public interface InteractsWithApps extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default void |
closeApp()
Close the app which was provided in the capabilities at session creation.
|
default void |
installApp(java.lang.String appPath)
Install an app on the mobile device.
|
default boolean |
isAppInstalled(java.lang.String bundleId)
Checks if an app is installed on the device.
|
default void |
launchApp()
Launch the app which was provided in the capabilities at session creation.
|
default void |
removeApp(java.lang.String bundleId)
Remove the specified app from the device (uninstall).
|
default void |
resetApp()
Reset the currently running app for this session.
|
default void |
runAppInBackground(java.time.Duration duration)
Runs the current app as a background app for the time
requested.
|
default void |
runAppInBackground(int seconds)
Deprecated.
|
execute, execute
default void launchApp()
default void installApp(java.lang.String appPath)
appPath
- path to app to install.default boolean isAppInstalled(java.lang.String bundleId)
bundleId
- bundleId of the app.default void resetApp()
@Deprecated default void runAppInBackground(int seconds)
runAppInBackground(Duration)
instead.seconds
- Number of seconds to run App in background.default void runAppInBackground(java.time.Duration duration)
duration
- The time to run App in background. Minimum time resolution is one seconddefault void removeApp(java.lang.String bundleId)
bundleId
- the bunble identifier (or app id) of the app to remove.default void closeApp()