extensions.js refactor

This commit is contained in:
Carlos 2017-11-08 15:46:19 +01:00
parent 60a478e5c6
commit bab2ca1e53
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});