Closed 0xgeert closed 8 years ago
xray has a driver for phantomjs, which evaluates JavaScript, but the xray docs don't seem to show how this is exposed to xray users.
implemented this by simply having:
wantSomeHtmlSnippet: function(el, cb){
var html = el.html();
var snippet = ... //now do some string manipulation
return cb(undefined, snippet)
}
As an example I'm trying to get latitude/longitude which are available in a json-blob in the source-code.
How would I get to this?