HomePage extends Page { public String getH1() { return h1Element.getText(); } HomePage(WebDriver webDriver); String getH1();  }
@Test public void testH1Existing() throws InterruptedException { Assert.assertTrue(homepage.getH1() != null); }