Skip to main content

SeeTest Client - GetText

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

String GetText(Zone)

Description​

Get all text by a specific Zone from entire screen of the device reflection.

Parameters​

  • Zone: Select a Zone to get all text from.
  • NATIVE: All text properties of the Native dump on the screen
  • WEB: All text properties of the Web dump on the screen
  • TEXT: it will get you all the text that appears on the screen.
  • Default (or another  grouping zone name): All names of elements which are on the Object repository that appear on the screen in the chosen zone.

Usage​

Zone Native​

Will retrieve all the text properties of Native objects on the screen of the device on instrumented native applications or non-instrumented mode.

info

Note: Text properties will not be retrieved for elements which doesn’t have text property on the object spy.

Scenario: In the following example we will use getText with zone NATIVE on the  login screen of ebay application.

 

Zone Web​

Command usage: Will retrieve all the text properties of Web objects on the screen of the device on instrumented hybrid applications or Mobile web sites.

info

Note: Text properties will not be retrieved for elements which doesn’t have text property on the object spy

Scenario: In the following example we will use getText with zone WEB on the cnn web page.

Code Examples​

Java Example

String str = client.getText("NATIVE")

C# Example Expand source

String str = client.GetText("NATIVE")

VBScript Example Expand source

str = client.GetText("NATIVE")

Python Example Expand source

var0 = self.client.getText("NATIVE")

Perl Example Expand source

my $str0 = $client->getText("NATIVE")