Webpage.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* |
String |
|
The device for this command. By default, this is the device under test (DUT). |
Property* |
String |
Text | Class | Id | Name | Background color | Foreground color | Font family | Font size | Font style | Height | Width | Tag name | Input type | Type | Visibility | X | Y | URL | Displayed | Selected |
The control property to be retrieved. If a property is used that is not listed, it will be recorded as |
Element identifier* |
String |
The object identifier. By default, Object Spy generates an Xpath. Use the By parameter to specify another identification method. |
|
By |
String |
XPath | CSS Selector | HTML id | HTML name | HTML class | HTML tag | Text | Partial text |
Specifies 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 webpage element info. |
Web view index |
Number |
The index number of the web view in a hybrid application. If multiple web views exist, to work with the objects in a particular web view, you need to choose the relevant web view or index, for example Webview 1 or Webview 2. | |
Scope |
String |
A list of XPath expressions representing the iFrames/Frames leading to the element. |
|
Page load timeout |
String |
The time, in seconds, to wait for the application screen or the web page to be loaded. |
|
Report |
String |
All | All on error | Screenshot | Screenshot on error | Text | None |
The value to display in the report, where:
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 |
Comment |
Adds a comment to the script |
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory parameter