-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update _index.en.md with note about using XPATH values in an ID selector #1895
base: trunk
Are you sure you want to change the base?
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
|
|
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:
|
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 causes
website_and_docs/content/documentation/webdriver/troubleshooting/errors/_index.en.md