@Test public void pageShouldDisplayLoginPanel() { SharePage page; try { drone.navigateTo(shareUrl); page = drone.getCurrentPage().render(); Assert.assertTrue(page.isBrowserTitle("login")); } catch (Exception e) { logger.error(e); } finally { page = null; } }
@SuppressWarnings("unchecked") @Override public LoginPage render(RenderTime timer) { basicRender(timer); while (true) { timer.start(); try { if (drone.find(By.cssSelector("form[id$='form']")).isDisplayed()) { if (drone.find(USERNAME_INPUT).isDisplayed() && drone.find(PASSWORD_INPUT).isDisplayed()) { break; } } } catch (NoSuchElementException nse) { } finally { timer.end(); } } return this; }
LoginPage extends SharePage { @SuppressWarnings("unchecked") @Override public LoginPage render(RenderTime timer) { basicRender(timer); while (true) { timer.start(); try { if (drone.find(By.cssSelector("form[id$='form']")).isDisplayed()) { if (drone.find(USERNAME_INPUT).isDisplayed() && drone.find(PASSWORD_INPUT).isDisplayed()) { break; } } } catch (NoSuchElementException nse) { } finally { timer.end(); } } return this; } }
LoginPage extends SharePage { @SuppressWarnings("unchecked") @Override public LoginPage render(RenderTime timer) { basicRender(timer); while (true) { timer.start(); try { if (drone.find(By.cssSelector("form[id$='form']")).isDisplayed()) { if (drone.find(USERNAME_INPUT).isDisplayed() && drone.find(PASSWORD_INPUT).isDisplayed()) { break; } } } catch (NoSuchElementException nse) { } finally { timer.end(); } } return this; } LoginPage(WebDrone drone); }
LoginPage extends SharePage { @SuppressWarnings("unchecked") @Override public LoginPage render(RenderTime timer) { basicRender(timer); while (true) { timer.start(); try { if (drone.find(By.cssSelector("form[id$='form']")).isDisplayed()) { if (drone.find(USERNAME_INPUT).isDisplayed() && drone.find(PASSWORD_INPUT).isDisplayed()) { break; } } } catch (NoSuchElementException nse) { } finally { timer.end(); } } return this; } LoginPage(WebDrone drone); @SuppressWarnings("unchecked") @Override LoginPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override LoginPage render(); @SuppressWarnings("unchecked") @Override LoginPage render(final long time); boolean exists(); void loginAs(final String username, final String password); boolean hasErrorMessage(); String getErrorMessage(); String getLogoUrl(); void loginAs(final String username, final String password, final Language language); LoginPage changeLanguage(Language language); void selectSignUpLink(); CloudForgotPasswordPage selectFogotPassordLink(); String getForgotPasswordURL(); }
LoginPage extends SharePage { @SuppressWarnings("unchecked") @Override public LoginPage render(RenderTime timer) { basicRender(timer); while (true) { timer.start(); try { if (drone.find(By.cssSelector("form[id$='form']")).isDisplayed()) { if (drone.find(USERNAME_INPUT).isDisplayed() && drone.find(PASSWORD_INPUT).isDisplayed()) { break; } } } catch (NoSuchElementException nse) { } finally { timer.end(); } } return this; } LoginPage(WebDrone drone); @SuppressWarnings("unchecked") @Override LoginPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override LoginPage render(); @SuppressWarnings("unchecked") @Override LoginPage render(final long time); boolean exists(); void loginAs(final String username, final String password); boolean hasErrorMessage(); String getErrorMessage(); String getLogoUrl(); void loginAs(final String username, final String password, final Language language); LoginPage changeLanguage(Language language); void selectSignUpLink(); CloudForgotPasswordPage selectFogotPassordLink(); String getForgotPasswordURL();  }