2627282930313233
} @Test(expected = MyException.class) public void forHtmlElement() { Company company = new Company(); HtmlElementLoader.populateHtmlElement(company, new MyElementLocatorFactory(webDriver)); company.getText(); }
3233343536373839
company.getText(); } @Test(expected = MyException.class) public void forPageObject() { SearchPage searchPage = new SearchPage(new MyElementLocatorFactory(webDriver)); searchPage.getLogo().getText(); }