extensions.js refactor
This commit is contained in:
parent
60a478e5c6
commit
bab2ca1e53
|
@ -27,7 +27,7 @@ Nightmare.action('getInnerText', function(selector, done) {
|
|||
Nightmare.action('getInputValue', function(selector, done) {
|
||||
this.wait(selector)
|
||||
.evaluate_now(function(elementToSelect) {
|
||||
return document.querySelectorAll(elementToSelect)[0].value;
|
||||
return document.querySelector(elementToSelect).value;
|
||||
}, done, selector);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue