Skip to content

Instantly share code, notes, and snippets.

@mickaelandrieu
Created October 8, 2013 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickaelandrieu/6893258 to your computer and use it in GitHub Desktop.
Save mickaelandrieu/6893258 to your computer and use it in GitHub Desktop.
xPath syntax in findAll and length on casperJs (thx to @n1k0)
var length = casper.evaluate(function() {
return __utils__.findAll({type: "xpath", path: "//a"}).length;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment