@Test public void instantiateDashlet() { navigateToSiteDashboard(); customiseSiteDashBoard = siteDashBoard.getSiteNav().selectCustomizeDashboard(); customiseSiteDashBoard.render(); siteDashBoard = customiseSiteDashBoard.addDashlet(Dashlets.IMAGE_PREVIEW, 1).render(); imagePreviewDashlet = siteDashBoard.getDashlet(IMAGE_PREVIEW).render(); assertNotNull(imagePreviewDashlet); }
@SuppressWarnings("unchecked") @Override public synchronized ImagePreviewDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; }
ImagePreviewDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized ImagePreviewDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } }
ImagePreviewDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized ImagePreviewDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } protected  ImagePreviewDashlet(WebDrone drone); }
ImagePreviewDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized ImagePreviewDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } protected  ImagePreviewDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized ImagePreviewDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override ImagePreviewDashlet render(long time); @SuppressWarnings("unchecked") @Override ImagePreviewDashlet render(); boolean isHelpIconDisplayed(); boolean isConfigureIconDisplayed(); void clickOnHelpIcon(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); ImagePreviewDashlet closeHelpBallon(); String getTitle(); SelectImageFolderBoxPage clickOnConfigure(); int getImagesCount(); boolean isImageDisplayed(String imageName); }
ImagePreviewDashlet extends AbstractDashlet implements Dashlet { @SuppressWarnings("unchecked") @Override public synchronized ImagePreviewDashlet render(RenderTime timer) { try { while (true) { timer.start(); synchronized (this) { try { this.wait(50L); } catch (InterruptedException e) { } } try { scrollDownToDashlet(); getFocus(); drone.find(DASHLET_CONTAINER_PLACEHOLDER); drone.find(CONFIGURE_DASHLET_ICON); drone.find(HELP_ICON); drone.find(DASHLET_TITLE); break; } catch (NoSuchElementException e) { } catch (StaleElementReferenceException ste) { } finally { timer.end(); } } } catch (PageRenderTimeException te) { throw new NoSuchDashletExpection(this.getClass().getName() + " failed to find site notice dashlet", te); } return this; } protected  ImagePreviewDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized ImagePreviewDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override ImagePreviewDashlet render(long time); @SuppressWarnings("unchecked") @Override ImagePreviewDashlet render(); boolean isHelpIconDisplayed(); boolean isConfigureIconDisplayed(); void clickOnHelpIcon(); boolean isBalloonDisplayed(); String getHelpBalloonMessage(); ImagePreviewDashlet closeHelpBallon(); String getTitle(); SelectImageFolderBoxPage clickOnConfigure(); int getImagesCount(); boolean isImageDisplayed(String imageName);  }