extension update for countsearchresult to be coutnElement
This commit is contained in:
parent
8a9f69753a
commit
99d31f304f
|
@ -134,7 +134,7 @@ Nightmare.action('selectText', function(selector, done) {
|
||||||
.then(done);
|
.then(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
Nightmare.action('countSearchResults', function(selector, done) {
|
Nightmare.action('countElement', function(selector, done) {
|
||||||
this.evaluate_now(selector => {
|
this.evaluate_now(selector => {
|
||||||
return document.querySelectorAll(selector).length;
|
return document.querySelectorAll(selector).length;
|
||||||
}, done, selector);
|
}, done, selector);
|
||||||
|
|
Loading…
Reference in New Issue