Skip to content

Commit cd7303c

Browse files
Delta456VietND96pujagani
authored
[java]: mark WebElement.getAttribute deprecated (#14666)
Co-authored-by: Viet Nguyen Duc <[email protected]> Co-authored-by: Puja Jagani <[email protected]>
1 parent 84a72f6 commit cd7303c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/src/org/openqa/selenium/WebElement.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ public interface WebElement extends SearchContext, TakesScreenshot {
165165
*
166166
* @param name The name of the attribute.
167167
* @return The attribute/property's current value or null if the value is not set.
168+
* @deprecated This method is deprecated. Use {@link #getDomProperty(String)} or {@link
169+
* #getDomAttribute(String)} for more precise attribute retrieval.
168170
*/
171+
@Deprecated
169172
@Nullable String getAttribute(String name);
170173

171174
/**

0 commit comments

Comments
 (0)