Application.Element.Info command

Retrieves the specified property of the element and can insert its value into a defined variable. Use the Property parameter to specify the element property to retrieve.

Parameters

Name Type Possible values Description

Device ID*

Device

 

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

Property*

String

Text | Class | Disabled | Height | Width | Opaque | Visibility | X | Y | Displayed

The control property to be retrieved, where:

  • Text retrieves the control text

  • Class retrieves the control class

  • Disabled retrieves a disabled or enabled control

  • Height retrieves the control height

  • Width retrieves the control width

  • Opaque indicates if the control is opaque

  • Visibility indicates if the control is visible

  • X retrieves the x coordinate value of the control in the application screen

  • Y retrieves the y coordinate value of the control in the application screen

Element identifier*

String

 

HTML attribute or XPath used to search for the element

By

String

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

The identification method.

Timeout

Number

 

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

Result variable

String

 

The variable to receive the application property value.

Report

String

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

String

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