public boolean openPage() { try { Log4Test.info("Start open page."); driver.get(PAGE); } catch (Exception e) { Log4Test.error("Error in open page."); return false; } Log4Test.info("Page open successful."); return true; }
public boolean isOpenPage(String checkLocator) { try { Log4Test.info("PAGE: Check is page open. " + checkLocator + " is present!"); // sleep(5); driver.findElement(ui(checkLocator)).isEnabled(); } catch (Exception e) { Log4Test.error("PAGE: Error with check page."); return false; } Log4Test.info("PAGE: Page is open."); return true; }
@Override public void close() { super.close(); }