You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
632 B
JavaScript
27 lines
632 B
JavaScript
module.exports = {
|
|
url: function () {
|
|
return this.api.launchUrl + "/login";
|
|
},
|
|
commands: {
|
|
logIn: function (email, password) {
|
|
return this.waitForElementVisible("@emailInput")
|
|
.setValue("@emailInput", email)
|
|
.waitForElementVisible("@passwordInput")
|
|
.setValue("@passwordInput", password)
|
|
.waitForElementVisible("@loginBtn")
|
|
.click("@loginBtn");
|
|
},
|
|
},
|
|
elements: {
|
|
emailInput: {
|
|
selector: "input[name=emailOrUsername]",
|
|
},
|
|
passwordInput: {
|
|
selector: "input[name=password]",
|
|
},
|
|
loginBtn: {
|
|
selector: "form button",
|
|
},
|
|
},
|
|
};
|