Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Add support for registering namespace prefixes for XPath locators in WebDriver #1694

Closed
lukeis opened this issue Mar 2, 2016 · 8 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1694

Selenium should support something like the following methods:

Selenium.registerXPathNamespace(String prefix, String uri)
WebDriver.Options.registerXPathNamespace(String prefix, String uri)

Because of XPath 1.0 limitations, it is convoluted to execute XPath against documents
that make use of a default namespace. BrowserBot has a hardcoded 'x' namespace prefix
for XHTML, but implementations of WebDriver don't, and neither expose convenient APIs
to register other namespaces or namespace resolvers.

Reported by dvdckl on 2011-05-21 03:27:17

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by jari.bakken on 2011-05-23 23:28:08

  • Labels added: Type-Enhancement, Component-WebDriver
  • Labels removed: Type-Defect

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I need this to locate my wicket:id entries.

Reported by nickvdh on 2011-09-01 13:39:54

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Is there some workaround for this issue? Because selenium IDE (1.x) works well with
'x' namespace prefix for XHTML. So there exists a group of tests that cannot be transferred/converted
into webdriver.

Is this feature/enhancement already in some release plan?

Thanks.

Reported by Stanislav.Graf on 2011-10-13 09:46:43

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 222 has been merged into this issue.

Reported by barancev on 2013-02-21 10:15:00

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 4275 has been merged into this issue.

Reported by barancev on 2013-02-21 10:18:41

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Implemented in the atom (and Firefox driver) by commit 4f5f96d92d12

Reported by barancev on 2014-11-02 10:22:06

  • Status changed: Accepted

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Implemented in atoms. Tested in Firefox, IE, Chrome.

Reported by barancev on 2015-03-12 09:14:42

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:12:48

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant