MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getCssValue

Method getCssValue

javascript/selenium-webdriver/lib/webdriver.js:2818–2821  ·  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

2816 * requested CSS value.
2817 */
2818 getCssValue(cssStyleProperty) {
2819 const name = command.Name.GET_ELEMENT_VALUE_OF_CSS_PROPERTY
2820 return this.execute_(new command.Command(name).setParameter('propertyName', cssStyleProperty))
2821 }
2822
2823 /**
2824 * 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