You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this page, there is an example under the section "Fetching Attributes or Properties".
This example uses the below API in Java. String valueInfo = emailTxt.getAttribute("value");
@amitbiswal007, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
After troubleshooting the issue, please add the R-awaiting answer label.
Thank you!
amitbiswal007
changed the title
[🚀 Feature]: Documentation is giving an example using a deprecated API, it should be updated
[🚀 Feature]: Documentation example is using a deprecated API, it should be updated
Mar 4, 2025
Feature and motivation
This is regarding the official documentation under the page
"Webdriver > Elements > Information"
https://www.selenium.dev/documentation/webdriver/elements/information/
In this page, there is an example under the section "Fetching Attributes or Properties".
This example uses the below API in Java.
String valueInfo = emailTxt.getAttribute("value");
However, In latest Java libraries, we can see that "getAttribute()" method is deprecated. The official documentation suggests the usage of [getDomProperty(String)] or [getDomAttribute(String)]
See Reference - https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebElement.html#getAttribute(java.lang.String)
The documentation example should be updated with the latest library methods instead of using a deprecated method.
The text was updated successfully, but these errors were encountered: