Skip to content

Commit

Permalink
add deprecated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta456 committed Oct 29, 2024
1 parent 374feab commit 5b0b606
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/src/org/openqa/selenium/WebElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b0b606

Please sign in to comment.