diff --git a/java/src/org/openqa/selenium/WebElement.java b/java/src/org/openqa/selenium/WebElement.java index 32a0eabd9597b..05b661d16179b 100644 --- a/java/src/org/openqa/selenium/WebElement.java +++ b/java/src/org/openqa/selenium/WebElement.java @@ -165,6 +165,8 @@ public interface WebElement extends SearchContext, TakesScreenshot { * * @param name The name of the attribute. * @return The attribute/property's current value or null if the value is not set. + * @deprecated This method is deprecated. Use {@link #getDomProperty(String)} or {@link + * #getDomAttribute(String)} for more precise attribute retrieval. */ @Deprecated @Nullable String getAttribute(String name);