Using Selenium webdriver
I am trying to test a web application and my test is to Login to the web application, Once logged-in, on the left-hand menu panel I need to click on a parent and that will show the child link and when I click the child link it has to take me to a page and on the page I have to validate some fields.
When I tried to perform this test the test is failing immediately after I logged-in to the website. Please help me.
@Test(priority = 0)
public void Login_To_ControlRoom() throws Exception {
loginPage = new LoginPage(driver);
String loginUserName = BaseTest.propertyName("usrName_Admin1");
String loginPassword = BaseTest.propertyName("usrPassword_Admin1");
softAssert.assertAll();
navigationlinks = loginPage.doLogin(loginUserName, loginPassword);
Assert.assertTrue(navigationlinks.loggedInUserStatus(), "User Not loggedin successfully");
navigationlinks.accessAdministration();
licensePage = navigationlinks.clickAdministrationLicenses();
installLicensePage = licensePage.clickInstallLicense();
Assert.assertFalse(installLicensePage.isInstallLicenseBtnEnabled(), "Install License button is enabled");
}