public static boolean isHTMLSourceTextPresent(LiferaySelenium liferaySelenium, String value)
      throws Exception {

    URL url = new URL(liferaySelenium.getLocation());

    InputStream inputStream = url.openStream();

    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));

    String line = null;

    while ((line = bufferedReader.readLine()) != null) {
      Pattern pattern = Pattern.compile(value);

      Matcher matcher = pattern.matcher(line);

      if (matcher.find()) {
        return true;
      }
    }

    inputStream.close();

    bufferedReader.close();

    return false;
  }
  public static void assertNotLocation(LiferaySelenium liferaySelenium, String pattern) {

    TestCase.assertTrue(Validator.equals(pattern, liferaySelenium.getLocation()));
  }
  public static void assertLocation(LiferaySelenium liferaySelenium, String pattern) {

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