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

Method getAttribute

java/src/org/openqa/selenium/WebElement.java:167–167  ·  view source on GitHub ↗

Get the value of the given attribute of the element. Will return the current value, even if this has been modified after the page has been loaded. More exactly, this method will return the value of the property with the given name, if it exists. If it does not, then the value of the attribute wi

(String name)

Source from the content-addressed store, hash-verified

165 * @return The attribute/property's current value or null if the value is not set.
166 */
167 @Nullable String getAttribute(String name);
168
169 /**
170 * Gets result of computing the WAI-ARIA role of element.

Implementers 2

RemoteWebElementjava/src/org/openqa/selenium/remote/Re
WrappedWebElementjava/test/org/openqa/selenium/WrappedW

Calls

no outgoing calls