Hi,
I'm using Hpricot with selenium I have this html input element:
<input id="foo:bar"/>
And I'm trying to get this value with this Xpath expression:
source = Hpricot(@selenium.get_html_source)
source.search("//input[@id='foo:bar']")
but it is not finding anything because of the colon. I have seen that the Xpath expression cannot contain any colon. I have tried to escape it in different ways but it doesn't work.
Is there any way to escape it or avoid this problem? I cannot change the values in the html so the foo:bar has to be this way, with the colon. But I need to find this element somehow.
Any ideas?
thanks