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

Method GetAttribute

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

Gets the value of the specified attribute for this element. The name of the attribute. The attribute's current value. Returns a if the value is not set. The method will return the current value of the attribute, even if the value has been modified after the page ha

(string attributeName)

Source from the content-addressed store, hash-verified

170 /// </remarks>
171 /// <exception cref="StaleElementReferenceException">Thrown when the target element is no longer valid in the document DOM.</exception>
172 string? GetAttribute(string attributeName);
173
174 /// <summary>
175 /// Gets the value of a declared HTML attribute of this element.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected