From 5b0b60634dce2691b616afadb7cb4f5125d71a5d Mon Sep 17 00:00:00 2001 From: delta456 Date: Tue, 29 Oct 2024 23:34:47 +0530 Subject: [PATCH] add deprecated comment --- java/src/org/openqa/selenium/WebElement.java | 2 ++ 1 file changed, 2 insertions(+) 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);