I am trying to get the first href attribute on a page using Selenium RC (in Python):
sel.get_text("xpath=//@href")
returns an empty string.
However, an identical xpath on the same page inside Firefox (with the extension "View XPath") gives the correct value.
I tried to work with it, but the same thing happens with other attributes (for example, @class) - is there something terribly wrong with selenium, or do I not notice something trivial here?
source
share