GetText
Description
Use this command to get all text located in a specific contextual zone from the entire screen of the device reflection.
Name | Type | Possible Values |
---|---|---|
Zone | String | NATIVE**:** 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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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")