From: Sofie Willander Date: 2010-12-03T20:22:38+09:00 Subject: Re: Screen scraping an aspx site with Mechanize 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 > 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/.