Skip to main content

GetCurrentApplicationName

Description

Use this command to retrieve the name, bundle, and package name of the application that's currently run in the active device foreground.

info

This command throws an exception for devices which do not support the command.

Usage

info

Replace <server> with the appropriate URL.

GetCurrentApplication

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");

...
...

//show the list of recent apps
seetest.getCurrentApplicationName();