@Test(dependsOnMethods = "getTasksShouldBeEmpty", groups = { "Enterprise4.2" }) public void selectStartWorkFlow() throws Exception { MyTasksDashlet dashlet = dashBoard.getDashlet("tasks").render(); StartWorkFlowPage startWorkFlow = dashlet.selectStartWorkFlow().render(); assertNotNull(startWorkFlow); assertTrue(startWorkFlow.getTitle().contains("Start Workflow")); }
public StartWorkFlowPage selectStartWorkFlow() { try { WebElement startWorkFlow = drone.findAndWait(By.linkText("Start Workflow")); startWorkFlow.click(); return new StartWorkFlowPage(drone); } catch (NoSuchElementException nse) { logger.error("Not able to find the web element", nse); } catch (TimeoutException exception) { logger.error("Exceeded time to find the web element", exception); } throw new PageException("Unable to find assign workflow."); }
MyTasksDashlet extends AbstractDashlet implements Dashlet { public StartWorkFlowPage selectStartWorkFlow() { try { WebElement startWorkFlow = drone.findAndWait(By.linkText("Start Workflow")); startWorkFlow.click(); return new StartWorkFlowPage(drone); } catch (NoSuchElementException nse) { logger.error("Not able to find the web element", nse); } catch (TimeoutException exception) { logger.error("Exceeded time to find the web element", exception); } throw new PageException("Unable to find assign workflow."); } }
MyTasksDashlet extends AbstractDashlet implements Dashlet { public StartWorkFlowPage selectStartWorkFlow() { try { WebElement startWorkFlow = drone.findAndWait(By.linkText("Start Workflow")); startWorkFlow.click(); return new StartWorkFlowPage(drone); } catch (NoSuchElementException nse) { logger.error("Not able to find the web element", nse); } catch (TimeoutException exception) { logger.error("Exceeded time to find the web element", exception); } throw new PageException("Unable to find assign workflow."); } protected  MyTasksDashlet(WebDrone drone); }
MyTasksDashlet extends AbstractDashlet implements Dashlet { public StartWorkFlowPage selectStartWorkFlow() { try { WebElement startWorkFlow = drone.findAndWait(By.linkText("Start Workflow")); startWorkFlow.click(); return new StartWorkFlowPage(drone); } catch (NoSuchElementException nse) { logger.error("Not able to find the web element", nse); } catch (TimeoutException exception) { logger.error("Exceeded time to find the web element", exception); } throw new PageException("Unable to find assign workflow."); } protected  MyTasksDashlet(WebDrone drone); @SuppressWarnings("unchecked") MyTasksDashlet render(); @SuppressWarnings("unchecked") @Override MyTasksDashlet render(final long time); synchronized List<ShareLink> getTasks(); synchronized ShareLink selectTask(final String title); @SuppressWarnings("unchecked") MyTasksDashlet render(RenderTime timer); MyTasksDashlet renderTask(final long time, String taskName); HtmlPage clickOnTask(String task); StartWorkFlowPage selectStartWorkFlow(); MyTasksPage selectComplete(); }
MyTasksDashlet extends AbstractDashlet implements Dashlet { public StartWorkFlowPage selectStartWorkFlow() { try { WebElement startWorkFlow = drone.findAndWait(By.linkText("Start Workflow")); startWorkFlow.click(); return new StartWorkFlowPage(drone); } catch (NoSuchElementException nse) { logger.error("Not able to find the web element", nse); } catch (TimeoutException exception) { logger.error("Exceeded time to find the web element", exception); } throw new PageException("Unable to find assign workflow."); } protected  MyTasksDashlet(WebDrone drone); @SuppressWarnings("unchecked") MyTasksDashlet render(); @SuppressWarnings("unchecked") @Override MyTasksDashlet render(final long time); synchronized List<ShareLink> getTasks(); synchronized ShareLink selectTask(final String title); @SuppressWarnings("unchecked") MyTasksDashlet render(RenderTime timer); MyTasksDashlet renderTask(final long time, String taskName); HtmlPage clickOnTask(String task); StartWorkFlowPage selectStartWorkFlow(); MyTasksPage selectComplete();  }