Skip to main content

GetContextList

Description

Use this command to obtain a list of current contexts including all web views.

Returns

This command returns a string array with the contexts such as NATIVE_APP.

Usage

Command is useful to get the context list of the launched application.

info

Replace <server> with the appropriate URL.

Example

GetContextList

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

...
...

//Auto Scr
seetest.getContextList();