public static void assertNotChecked(LiferaySelenium liferaySelenium, String locator) throws Exception { liferaySelenium.assertElementPresent(locator); if (liferaySelenium.isChecked(locator)) { throw new Exception("Element is checked at \"" + locator + "\""); } }
public static boolean isNotChecked(LiferaySelenium liferaySelenium, String locator) { return !liferaySelenium.isChecked(locator); }