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

xpath does not support name() #1575

Closed
javaone199 opened this issue Jun 23, 2019 · 6 comments

Comments

@javaone199
Copy link

commented Jun 23, 2019

element.findElement(By.xpath(".//*[name()='button' or name()='input']"));

This works fine for Chrome and Edge.

@whimboo

This comment has been minimized.

Copy link
Collaborator

commented Jun 24, 2019

Could you please attach a trace-level log from geckodriver? Read more about reporting actionable bugs in our contribution guidelines.

@KroArtem

This comment was marked as off-topic.

Copy link

commented Jun 26, 2019

We have the following xpaths:
.//*[name()='use']
.//*[name()='svg'][contains(@class, 'stream-permalink-icon')]

Both work correctly in Firefox 67. JFYI.

@andreastt

This comment was marked as off-topic.

Copy link
Member

commented Jun 26, 2019

@KroArtem This issue is about name() in XPath expressions. If you think that’s a regression, you should file a separate issue.

@KroArtem

This comment was marked as off-topic.

Copy link

commented Jun 26, 2019

@andreastt , I just wanted to note name() in XPath expressions works ok for me in Firefox.

@andreastt

This comment was marked as off-topic.

Copy link
Member

commented Jun 26, 2019

Oh sorry, I misread the last line in your comment. Apologies!

@whimboo

This comment has been minimized.

Copy link
Collaborator

commented Aug 5, 2019

No feedback from the reporter. Closing the issue.

@whimboo whimboo closed this Aug 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.