Created
October 8, 2013 22:58
-
-
Save mickaelandrieu/6893258 to your computer and use it in GitHub Desktop.
xPath syntax in findAll and length on casperJs (thx to @n1k0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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