Search in sources :

Example 1 with SignInPage

use of org.carefulchameleons.pom.myaccounts.SignInPage in project WebTestingFinalProject by samizirakgamedev.

the class LoginStepdefs method iInsertAnUnregisteredEmail.

@When("I insert an unregistered email")
public void iInsertAnUnregisteredEmail() {
    signinPage = new SignInPage(webDriver, "http://automationpractice.com/index.php?controller=authentication&back=my-account");
    signinPage.enterLoginEmail("finalproject1@test.com");
}
Also used : SignInPage(org.carefulchameleons.pom.myaccounts.SignInPage) When(io.cucumber.java.en.When)

Example 2 with SignInPage

use of org.carefulchameleons.pom.myaccounts.SignInPage in project WebTestingFinalProject by samizirakgamedev.

the class LoginStepdefs method iEnterMyRegisteredEmail.

@When("I enter my registered email")
public void iEnterMyRegisteredEmail() {
    // ??expectedUrl??
    signinPage = new SignInPage(webDriver, "http://automationpractice.com/index.php?controller=authentication&back=my-account");
    signinPage.enterLoginEmail("finalproject@test.com");
}
Also used : SignInPage(org.carefulchameleons.pom.myaccounts.SignInPage) When(io.cucumber.java.en.When)

Example 3 with SignInPage

use of org.carefulchameleons.pom.myaccounts.SignInPage in project WebTestingFinalProject by samizirakgamedev.

the class LoginStepdefs method iInsertARegisteredEmail.

@When("I insert a registered email")
public void iInsertARegisteredEmail() {
    signinPage = new SignInPage(webDriver, "http://automationpractice.com/index.php?controller=authentication&back=my-account");
    signinPage.enterLoginEmail("finalproject@test.com");
}
Also used : SignInPage(org.carefulchameleons.pom.myaccounts.SignInPage) When(io.cucumber.java.en.When)

Example 4 with SignInPage

use of org.carefulchameleons.pom.myaccounts.SignInPage in project WebTestingFinalProject by samizirakgamedev.

the class OrderStepdefs method iEnterTheEmailAddressAndThePassword.

@And("I enter the Email Address {string} and  the Password {string}")
public void iEnterTheEmailAddressAndThePassword(String email, String password) {
    signInPage = new SignInPage(webDriver, "http://automationpractice.com/index.php?controller=authentication&back=my-account");
    signInPage.enterLoginEmail(email);
    signInPage.enterLoginPassword(password);
}
Also used : SignInPage(org.carefulchameleons.pom.myaccounts.SignInPage) And(io.cucumber.java.en.And)

Aggregations

SignInPage (org.carefulchameleons.pom.myaccounts.SignInPage)4 When (io.cucumber.java.en.When)3 And (io.cucumber.java.en.And)1