Skip to content

Commit

Permalink
[java]: mark WebElement.getAttribute deprecated (#14666)
Browse files Browse the repository at this point in the history
Co-authored-by: Viet Nguyen Duc <[email protected]>
Co-authored-by: Puja Jagani <[email protected]>
  • Loading branch information
3 people authored Nov 5, 2024
1 parent 84a72f6 commit cd7303c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/src/org/openqa/selenium/WebElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ 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);

/**
Expand Down

0 comments on commit cd7303c

Please sign in to comment.