### Question:
HtmlElementUtils { public static boolean isElementPresent(String locator) { logger.entering(locator); boolean flag = false; try { flag = HtmlElementUtils.locateElement(locator) != null; } catch (NoSuchElementException e) { } logger.exiting(flag); return flag; } private  HtmlElementUtils(); static RemoteWebElement locateElement(String locator); static RemoteWebElement locateElement(String locator, ParentTraits parent); static List<WebElement> locateElements(String locator); static List<WebElement> locateElements(String locator, ParentTraits parent); static void isValidXpath(String locator); static By resolveByType(String locator); static By getFindElementType(String locator); static boolean isElementPresent(String locator);  }### Answer:
@Test(groups = { "functional" }) @WebTest public void testIsElementPresent() { Grid.open(TestServerUtils.getTestEditableURL()); boolean element1 = HtmlElementUtils.isElementPresent("css=input[name=normal_text]"); assertTrue(element1); boolean element2 = HtmlElementUtils.isElementPresent("fakeElement"); assertTrue(!element2); }