Webpage info command
Retrieves the specified webpage property and can insert the value into a defined variable. Use the property parameter to specify the webpage property to retrieve. Only one property value or performance value can be specified in each command.
The returnValue field of the response provides the value of the requested property value.
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 |
URL| Title | User Agent | Source | Outer HTML | Performance |
The webpage property to be retrieved. Used alongside the Performance parameter. |
Performance |
String |
Page Load Time | Navigation Start | Unload Event Start | Unload Event End | Redirect Start | Redirect End | Fetch Start | Domain Lookup Start | Domain Lookup End | Connect Start | Connect End | Secure Connection Start | Request Start | Response Start | Response End | Dom Loading | Dom Interactive | Dom Content Loaded Event Start | Dom Content Loaded Event End | Dom Complete | Load Event Start | Load Event End |
The required performance parameter. |
Timeout |
Number |
The time, in seconds, to wait for the page to be loaded in order to retrieve the webpage property. |
|
Scope |
String |
A list of XPath expressions representing an iFrame/Frame. | |
Result variable |
String |
|
The variable to receive the webpage property value. |
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. | |
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 |
String |
Adds a comment to the script |
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory parameter