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

Using xpath locator for xml document doesn't work in v2.45 & 2.46 #714

Closed
noralincc opened this issue Jun 26, 2015 · 2 comments
Closed

Using xpath locator for xml document doesn't work in v2.45 & 2.46 #714

noralincc opened this issue Jun 26, 2015 · 2 comments

Comments

@noralincc
Copy link

I'm getting a Selenium::WebDriver::Error::InvalidSelectorError error when I do:
driver.find_elements(:xpath, '//event') #this used to work in 2.43.0, but does not work in 2.45 & 2.46

My xml looks like this:
test_xml

Full error message:
Selenium::WebDriver::Error::InvalidSelectorError: The given selector //event is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: Unable to locate an element with the xpath expression //event because of the following error:
TypeError: q is null

Please let me know if there's another way to find_element by xpath for xml documents. Thanks!

@ddavison
Copy link
Member

reproduced in Firefox and Safari. Works in Chrome

@noralincc
Copy link
Author

Thank you for fixing this! I've verified this works using v2.47.

@lukeis lukeis closed this as completed Aug 20, 2015
@lock lock bot locked and limited conversation to collaborators Aug 21, 2019
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

4 participants