Exemplo n.º 1
0
  @Test(priority = 4, enabled = true)
  public void clickOnNeedHelpWithyourUsernamePassLink() throws Exception {
    Log.info("Clicking on clickOnNeedHelpWithyourUsernamePass Link ");
    try {

      objLoginPage = new LoginPage(uiDriver);
      objLoginPage.verifyquestionMarkimage();
      objLoginPage.verifyNeedHelpwithUsernamePwdLink();
      objUsernamePasswordFindPage = objLoginPage.clickOnNeedHelpwithUsernamePwdLink();
      objUsernamePasswordFindPage.verifyCancelButton();
      objLoginPage = objUsernamePasswordFindPage.clickOnCancelButton();

    } catch (Exception e) {
      throw new Exception(
          "FAILED THE TEST CASE OF CLICK ON LOGIN BUTTON"
              + "\n clickOnLoginWithInvalidUsernameAndPassword"
              + e.getLocalizedMessage());
    }
  }
Exemplo n.º 2
0
  @Test(priority = 2, enabled = true)
  public void verifyAllReadyMembersElements() throws Exception {

    Log.info("Verifying the elements of All ready member Box");

    try {
      objLoginPage = new LoginPage(uiDriver);
      objLoginPage.verifyUsernameLabel();
      objLoginPage.verifyUsernameTextbox();
      objLoginPage.verifyPasswordlabel();
      objLoginPage.verifyPasswordTextbox();
      objLoginPage.verifyquestionMarkimage();
      objLoginPage.verifyNeedHelpwithUsernamePwdLink();
      objLoginPage.verifyLoginbutton();
    } catch (Exception e) {
      throw new Exception(
          "FAILED THE TEST CASE OF VERIFY ALL READY MEMBERS ELEMENTS "
              + "\n verifyAllReadyMembersElements"
              + e.getLocalizedMessage());
    }
  }