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

Method GetCssValue

dotnet/src/webdriver/IWebElement.cs:209–209  ·  view source on GitHub ↗

Gets the value of a CSS property of this element. The name of the CSS property to get the value of. The value of the specified CSS property. The value returned by the method is likely to be unpredictable in a cross-browser environment. Color values should be returned as hex strings. For ex

(string propertyName)

Source from the content-addressed store, hash-verified

207 /// return "#008000" for its value.</remarks>
208 /// <exception cref="StaleElementReferenceException">Thrown when the target element is no longer valid in the document DOM.</exception>
209 string GetCssValue(string propertyName);
210
211 /// <summary>
212 /// Gets the representation of an element's shadow root for accessing the shadow DOM of a web component.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected