Skip to main content

GetText

Description

Use this command to get all text located in a specific contextual zone from the entire screen of the device reflection.

NameTypePossible Values
ZoneStringNATIVE**:** All text properties of the Native dump on the screen.

WEB**:** All text properties of the Web dump on the screen.



TEXT**:** All the text that appears on the screen.



Default: All names of elements which are on the Object repository that appear on the screen in the chosen zone.

Usage

info

Replace <server> with the appropriate URL.

GetText

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

...
...
//this command will get Native zone screen reflection.
seetest.getText("NATIVE")