-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Enforcing xpath lookup for drivers to lookup elements. #8918
Comments
👋 Hi there! Thank you for creating this issue. I am the Selenium Assistant Bot 🤖, I triage issues in this repository. If I can't do it, I label it to help maintainers identify issues that need triaging. I am an Open Source project 🙌, post bugs or ideas here! |
❗️ It seems this issue is not using any of the supported templates 💡 Supported issue types are (they start with):
Issue templates help this project to stay in shape, please use them and fill them out completely. By doing that you are helping the project because the community and maintainers can provide prompt feedback, and potentially solve the issue. If you are asking a question, a better way to address this is:
If you think this is incorrect, please feel free to open a new issue. Thank you for your contributions. |
@HenningL XPath can’t do everything CSS can ( |
Im developing testautomation for 5y now and i never needed css-selectors. your example , i think, is doable with xpath. The only issue i had to use cssselector was the shadow-dom access. hope that will be implemented like iframes, since iframe is obsolete and shadow-dom the new one. so..., i disagree. XPath is the only tech one should focus on. thx for your input :)! glad to exchange thoughts in the future. |
To be honest, most
As for the API -- yes, we could remove all these On the other side, we don't insist that all client binding libraries implement all the variety of |
The api for easy use of selectors is contra productive. All what a selenium api has to provide, is the xpath. It is the most open. You can redirect all others to xpath resolution. eg. By.id(theId) is the same as By-xpath(//*[@id = theId]). But implementors of the driver api might focus on implementing stuff for id, instead of focusing to implement xpath lookup. Enforcing xpath lookup will drive the focus for future implementors of WebDriver-Api.
The text was updated successfully, but these errors were encountered: