Locate a selenium-webdriver element by sizzle CSS selector.
Everything returns a promise
$
and $.all
return a Q
promise.
Methods on Selenium WebElement
s and arrays of WebElement
s will also return a Q
promise instead of a Selenium promise.
Usage
var selenium = ;var sizzle = ;var driver = var $ = ; // Find the first element with class btn and click it; // Count the paragraphs$all'p';