Hello, could you explain better what you mean with an xpath expression example? I already use xpath method on several parts of the script, but only for searching HTML elements in the page, not for values stored in js variables. I use for example:
The variable "window" is the DOM, its all the html elements that exist on the webpage you're on,
The FireBug DOM panel and the HTML panel both represent "window", the current page, the current document , the current dom, the dom, dom
So use the HTML panel, "Copy XPath", and give it to mechanize xpath method, to retrieve the object for the element of the text you're interested in
In reply to Re^3: Javascript variables access help with WWW::Mechanize::Firefox
by Anonymous Monk
in thread Javascript variables access help with WWW::Mechanize::Firefox
by ray.rick.mini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |