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

Xpaths that match text need sanitised string substitution #10

Closed
amyworrall opened this issue Jun 28, 2012 · 1 comment
Closed

Xpaths that match text need sanitised string substitution #10

amyworrall opened this issue Jun 28, 2012 · 1 comment

Comments

@amyworrall
Copy link
Owner

This Xpath is used to get the value for the chosen option for reproducible status:

//select[@id='reproducibleNewProb'][1]/option[text()='%@']/@value

However, it fails when the status is I Didn't Try, since there's an apostrophe in it. All strings passed into Xpaths need proper escaping.

@amyworrall
Copy link
Owner Author

Fixed by replacing single quotes with double in the xpath. This is fine since we know all the values that might be substituted.

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

1 participant