in reply to Some issues with WWW::Mechanize::Firefox->xpath() method
FWIW, if you fireup firefox web console with ctrl+shift+k and execute
you will get a [object XPathResult], and if you click on it, there will be a stringValue: "Comment o"document.evaluate( 'substring(//title,1,9)', document , null , XPathRe +sult.ANY_TYPE , null )
So you need Dump-er earlier and pick the right key/attribute
Found by grep for xpath in mechanize-firefox/mozrepl, lookup https://developer.mozilla.org/en-US/docs/DOM/document.evaluate and https://developer.mozilla.org/en-US/docs/Introduction_to_using_XPath_in_JavaScript
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Some issues with WWW::Mechanize::Firefox->xpath() method (ctrl+shift+k, stringValue)
by Corion (Patriarch) on Apr 02, 2013 at 12:39 UTC | |
by dfaure (Chaplain) on Apr 02, 2013 at 13:57 UTC |