View Source Improve this doc

elementIdAttribute

Get the value of an element’s attribute.

Usage

1
browser.elementIdAttribute(ID,attributeName);

Parameters

Param Type Details
ID String ID of a WebElement JSON object to route the command to
attributeName String attribute name of element you want to receive

Returns

  • <String/null>: The value of the attribute, or null if it is not set on the element.