minor refactor
This commit is contained in:
parent
fefd6f45af
commit
3bd137a435
|
@ -266,11 +266,11 @@ let actions = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
waitForTextInElement: function(selector, name, done) {
|
waitForTextInElement: function(selector, text, done) {
|
||||||
this.wait(selector)
|
this.wait(selector)
|
||||||
.wait((selector, name) => {
|
.wait((selector, text) => {
|
||||||
return document.querySelector(selector).innerText.toLowerCase().includes(name.toLowerCase());
|
return document.querySelector(selector).innerText.toLowerCase().includes(text.toLowerCase());
|
||||||
}, selector, name)
|
}, selector, text)
|
||||||
.then(done)
|
.then(done)
|
||||||
.catch(done);
|
.catch(done);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue