@Test(priority = 3, enabled = true) public void clickOnLoginWithInvalidUsernameAndPassword() throws Exception { Log.info("Clicking on Login button with Invalid Username and Password"); try { objLoginPage = new LoginPage(uiDriver); objLoginPage.verifyUsernameLabel(); objLoginPage.verifyUsernameTextbox(); String invalidusername = getExcelTestInvalid(1, 1); System.out.println(invalidusername); objLoginPage.enterUsername(invalidusername); objLoginPage.verifyPasswordlabel(); objLoginPage.verifyPasswordTextbox(); String invalidPassword = getExcelTestInvalid(1, 2); System.out.println(invalidPassword); objLoginPage.enterPassword(invalidPassword); objLoginPage.clickOnLoginButton(); Thread.sleep(4000); objLoginPage.verifyGetErrorMessageforInvalidUsernameAndPassword(); } catch (Exception e) { throw new Exception( "FAILED THE TEST CASE OF CLICK ON LOGIN BUTTON" + "\n clickOnLoginWithInvalidUsernameAndPassword" + e.getLocalizedMessage()); } }
@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()); } }