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

Shadow Root Location Error for XPath #2105

Closed
titusfortner opened this issue Apr 14, 2023 · 3 comments
Closed

Shadow Root Location Error for XPath #2105

titusfortner opened this issue Apr 14, 2023 · 3 comments

Comments

@titusfortner
Copy link

When attempting to locate an element in a Shadow Root with XPath it results in an "invalid argument" error.

Selenium received a PR to prevent users from using XPath for shadow roots (SeleniumHQ/selenium#11893)

I would prefer not to have custom Selenium errors for things drivers do not (yet?) support. Would it be possible for the driver to give a more clear error, perhaps a "unsupported operation" error with a message about XPath not working?

@titusfortner
Copy link
Author

Oops, Chrome not Firefox. I'll raise a new error once I run on nightly 😉

@whimboo
Copy link
Collaborator

whimboo commented Apr 17, 2023

Probably it should be discussed over on w3c/webdriver#1610 first if it will be fine to raise a unsupported operation error in those cases. That way we will have an agreement and each driver could behave the same. Shall we close this issue for now?

@titusfortner
Copy link
Author

I thought I had closed it. Thanks for raising in w3c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants