Application.Element.Set command

Uses an element identifier (XPath or specific attribute) to search for the element in the display of the active window and then sends one or more taps with one or more touch points on the element. Used in conjunction with either the Perfecto or Appium framework to interpret the element classes.

Parameters

Name Type Possible values Description

Device ID*

Device

 

The device for this command. By default, this is the device under test (DUT).

Text*

String or Secured String

 

The text or encoded text to insert in the edit field. The text can be in any language.

If the type is Secured string, then when you start entering a string into the Value field, a lock button appears to the right. To encrypt the string, click the lock button .

Element identifier

String

 

The application element to set.

By

String

XPath | Class | Text | Partial text | Name | Id | Accessibility id | UIAutomator Selector | UIAutomation Selector | Class Chain

The identification method.

Timeout

   

The time, in seconds, to wait for the element to appear on the screen or the web page.

Report

 

Screenshot | Screenshot on error | None

The value to display in the report, where:

  • Screenshot displays a screenshot for each action

  • Screenshot on error displays screenshots only for actions in error

  • None does not display any screenshots

Consider reducing the resolution in very long scripts that result in large report files.

Report image resolution

 

High | Medium | Low

The image resolution.

Consider reducing the resolution in very long scripts that result in large report files.

Comment

String

 

Adds a comment to the script

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter