Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🚀 Feature]: Documentation example is using a deprecated API, it should be updated #2207

Open
amitbiswal007 opened this issue Mar 4, 2025 · 1 comment

Comments

@amitbiswal007
Copy link

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");

Image

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.

Copy link
Contributor

github-actions bot commented Mar 4, 2025

@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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant