Is there any way using nightwatchjs to get the value of several inputs?
I need to test the value of several inputs at the same time.
Thanks in advance.
You can use getText or getValue method, example:
this.demoTest = function (browser) {
browser.getText("#main ul li a.first", function(result) {
this.assert.equal(typeof result, "object");
this.assert.equal(result.status, 0);
this.assert.equal(result.value, "nightwatchjs.org");
});
};
this.demoTest = function (browser) {
browser.getValue("form.login input[type=text]", function(result) {
this.assert.equal(typeof result, "object");
this.assert.equal(result.status, 0);
this.assert.equal(result.value, "enter username");
});
};
There api documents:getText API reference
How we can insert header and footer in google docs with google docs api using PHP code
Writing a new and appending a file in PHP without erasing contents
How to combine 2 arrays with the condition that 2 and 5 values will be from the second array?
How to keep the ?error on url if page extension not included?
Cannot find the answer after my research, help me with mysql [duplicate]
I have been going through some online tutorials on Nodejs
I have two objects, THREEBoxGeometry and extruded THREE
I have a set of 3 menu items that i'm trying to add a mouseenter event toI can't seem to get it to work at all
i have an array of objects like this: