public void ThenThereShouldBeWarningMessageAndHeNextButtonShouldBeUnclickable() { // Creates a toggle for the given test, adds all log events under it test = extent.CreateTest("Add Tenant -- Add an existing tenant under tenant details section"); test.AssignCategory("Add Tenant Testing"); AddTenantPage addTenant = new AddTenantPage(); if (addTenant.IsTenantAlreadyInThisPropertyWarningMessageDisplayed() & addTenant.IsNextButtonUnclickableUnderTenatDetails()) { Base.test.Log(AventStack.ExtentReports.Status.Pass, "Test passed, successfully display the warning message and next button is unclickable"); } else { Base.test.Log(AventStack.ExtentReports.Status.Fail, "Test failed, fail to display the warning message or next button is clickable"); } }