-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update _index.en.md with note about using XPATH values in an ID selector #1895
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
Conversation
Updated Invalid Selector Exception to note that it can also be caused when inputting an xpath value into an ID-based selector.
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
CLAassistant
commented
Aug 26, 2024
CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
PR Reviewer Guide 🔍
PR Code Suggestions ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved into the Likely Causes subsection
Thank you for the contribution @Convalytics! Before we can accept the PR a few things must be done first:
- Resolve the requested changes
- add your changes to all translations
- sign the Contributor License Agreement
Uh oh!
There was an error while loading. Please reload this page.
User description
Updated Invalid Selector Exception to note that it can also be caused when inputting an xpath value into an ID-based selector.
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
Additional error case noting that Invalid Selector Exception can also happen if you use XPATH with an ID selector.
Motivation and Context
I had this issue today because I changed my code to search by XPATH instead of ID, and I forgot to change the type from By.ID to By.XPATH.
Types of changes
Checklist
PR Type
documentation
Description
Changes walkthrough 📝
_index.en.md
Update documentation for Invalid Selector Exception causeswebsite_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md