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]: [dotnet] Please implement the functionality for By.Attribute. #14860

Open
dazhu6666 opened this issue Dec 6, 2024 · 2 comments

Comments

@dazhu6666
Copy link

Feature and motivation

// Include elements with this attribute:
By.Attribute("formcontrolname");

// Include elements with this attribute, and its value equals or contains "verifyText":
By.Attribute("formcontrolname", "verifyText");

thinks

Usage example

to search some eles or ele by Attribute

Copy link

github-actions bot commented Dec 6, 2024

@dazhu6666, 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.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@MJB222398
Copy link

I think this would just use a CSS selector under the hood. In which case you can make it yourself with By.CssSelector? Is there a reason why Selenium should offer it out of the box instead?

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

2 participants