public static void assertAlertNotPresent(LiferaySelenium liferaySelenium) throws Exception { if (liferaySelenium.isAlertPresent()) { throw new Exception("Alert is present"); } }