Skip to content

Instantly share code, notes, and snippets.

@AdamSaleh
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save AdamSaleh/e6ea58f25149fd58c12f to your computer and use it in GitHub Desktop.

Select an option

Save AdamSaleh/e6ea58f25149fd58c12f to your computer and use it in GitHub Desktop.
browser.elements( "css selector",'div.installs_container .c3-legend-item', function (result) {
async.map(
result.value,
function (v,callback) {
browser.elementIdText(v['ELEMENT'],function (result){
callback(null,result);
});
},
function (err, results) {
console.log(results.map(function (v){return v.value;}));
browser.end();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment