Alex Stahl wrote in post #965922:
> Based on the xpath in the error at the link, you're not extracting a URL
> - you're getting an HTML object (or, more specifically, an XML
> node/nodeset).  Instead, what you want is the  "href" property of the
> <a> tag located at the xpath.  (In the below example, '//path/to' would
> be the unique HTML element(s) which is/are the parent of the anchor
> tag).  Access the property like so:
>
> link = page.xpath("//path/to/a/@href").to_s
> p link

Now I'm even more confused.. Have you got any examples to show me?
How do I find the href for a button?

-- 
Posted via http://www.ruby-forum.com/.