browser_attribute
Get a specific attribute value (e.g., href) of a web element on a mobile device. Provide the device serial number, CSS selector, and attribute name to retrieve the data.
Instructions
Get one attribute of an element.
Args: serialno: The browser device serialno, from list_devices. selector: A CSS selector. attribute: The attribute name, e.g. href.
Returns: JSON envelope whose data carries the attribute value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| serialno | Yes | ||
| attribute | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |