MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getCssValue

Method getCssValue

javascript/selenium-webdriver/lib/webdriver.js:2944–2947  ·  view source on GitHub ↗

* Retrieves the value of a computed style property for this instance. If * the element inherits the named style from its parent, the parent will be * queried for its value. Where possible, color values will be converted to * their hex representation (e.g. #00ff00 instead of rgb(0, 255, 0))

(cssStyleProperty)

Source from the content-addressed store, hash-verified

2942 * requested CSS value.
2943 */
2944 getCssValue(cssStyleProperty) {
2945 const name = command.Name.GET_ELEMENT_VALUE_OF_CSS_PROPERTY
2946 return this.execute_(new command.Command(name).setParameter('propertyName', cssStyleProperty))
2947 }
2948
2949 /**
2950 * Retrieves the current value of the given attribute of this element.

Callers

nothing calls this directly

Calls 2

execute_Method · 0.95
setParameterMethod · 0.80

Tested by

no test coverage detected