### Question:
Label extends AbstractElement { public boolean isTextPresent(String pattern) { String text = getElement().getText(); return (text != null && (text.contains(pattern) || text.matches(pattern))); } Label(String locator);  Label(String locator, String controlName);  Label(ParentTraits parent, String locator);  Label(String locator, String controlName, ParentTraits parent); boolean isTextPresent(String pattern);  }### Answer:
@Test(groups = { "browser-tests" }) @WebTest public void testLabel2() { Grid.driver().get(TestServerUtils.getTestEditableURL()); assertTrue(testLabelWithControlName.isTextPresent("Editable text-field"), "Validated isTextPresent method"); assertEquals(testLabelWithControlName.getControlName(), "normal_text", "Validated isTextPresent method"); }