Skip to main content

GetConnectedDevices

Description

This command returns a string of all devices currently available in the device list (on ready mode).

Usage

info

Replace <server> with the appropriate URL.

Example:

GetConnectedDevice

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

...
...

//Get the current foreground activity
seetest.getConnectedDevices();