elementIdCssProperty
Query the value of an element’s computed CSS property. The CSS property to query should be specified using the CSS property name, not the JavaScript property name (e.g. background-color instead of backgroundColor).
Usage
1 | browser.elementIdCssProperty(ID,cssPropertyName); |
Parameters
Param | Type | Details |
---|---|---|
ID | String | ID of a WebElement JSON object to route the command to |
cssPropertyName | String | CSS property |
Returns
- <String>: The value of the specified CSS property.