Page tree
Skip to end of metadata
Go to start of metadata

Description

Get all the values of a certain property from all the existing elements. Possible properties are all the methods available on the Object spy for the page.


Parameters

NameValueDescription
Zone
  • NATIVE
  • WEB
  • TEXT
Zones which define the way the element will be identified.
ElementElement Identifier as String

Identification of Element in the device screen.

Identification can be XPATH or any other Appium Element Identifier.

PropertyProperty name as StringThe property or method to be extracted from the elements that meet the query

Usage

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.

Example

GetAllValues
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
     
...
...
// Gets all the values of the property "text" for all elements which are identified by given xpath.
seetest.getAllValues("NATIVE", "//*[@id='usernameTextField']", "text");
  • No labels