public static void assertNotAlert(LiferaySelenium liferaySelenium, String pattern) {

    TestCase.assertTrue(Validator.equals(pattern, liferaySelenium.getAlert()));
  }
  public static void assertAlert(LiferaySelenium liferaySelenium, String pattern) throws Exception {

    TestCase.assertEquals(pattern, liferaySelenium.getAlert());
  }