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

Description

Designed command to set values of controllers such as date pickers, sliders, switches etc.


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.

IndexElement indexIndex of Element
Property Property name as StringProperty Name
ValueValue of the property name as StringProperty Value

Usage

Command is used to set value for a property of an Element in the device screen.

Set Experitest Url

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

Example

ElementSetProperty
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
      
...
...
// Sets the property "text" of the element identified by XPATH "//*[@class='UIAPickerWheel']" to 19.
seetest.elementSetProperty("NATIVE", "//*[@class='UIAPickerWheel']", 1, "text", "19");


The above code will work if you have the iOS native date and time running in foreground as shown in image below.



  • No labels