@Test(groups = "Enterprise4.2", dependsOnMethods = "selectCompletedWorkFlows") public void selectStartWorkflowButton() throws InterruptedException { StartWorkFlowPage startWorkFlowPage = myWorkFlowsPage.selectStartWorkflowButton().render(); NewWorkflowPage workFlow = startWorkFlowPage.getWorkflowPage(NEW_WORKFLOW).render(); WorkFlowFormDetails formDetails = getFormDetails(workFlow1); myWorkFlowsPage = workFlow.startWorkflow(formDetails).render(); myWorkFlowsPage = myWorkFlowsPage.selectActiveWorkFlows().render(); assertTrue(myWorkFlowsPage.isWorkFlowPresent(workFlow1)); }
public HtmlPage selectStartWorkflowButton() { try { drone.findAndWait(By.cssSelector("button[id$='-startWorkflow-button-button']")).click(); return FactorySharePage.resolvePage(drone); } catch (TimeoutException e) { logger.error("Not able to find start work flow button", e); } throw new PageException("Not able to find start work flow button"); }
MyWorkFlowsPage extends SharePage { public HtmlPage selectStartWorkflowButton() { try { drone.findAndWait(By.cssSelector("button[id$='-startWorkflow-button-button']")).click(); return FactorySharePage.resolvePage(drone); } catch (TimeoutException e) { logger.error("Not able to find start work flow button", e); } throw new PageException("Not able to find start work flow button"); } }
MyWorkFlowsPage extends SharePage { public HtmlPage selectStartWorkflowButton() { try { drone.findAndWait(By.cssSelector("button[id$='-startWorkflow-button-button']")).click(); return FactorySharePage.resolvePage(drone); } catch (TimeoutException e) { logger.error("Not able to find start work flow button", e); } throw new PageException("Not able to find start work flow button"); } MyWorkFlowsPage(WebDrone drone); }
MyWorkFlowsPage extends SharePage { public HtmlPage selectStartWorkflowButton() { try { drone.findAndWait(By.cssSelector("button[id$='-startWorkflow-button-button']")).click(); return FactorySharePage.resolvePage(drone); } catch (TimeoutException e) { logger.error("Not able to find start work flow button", e); } throw new PageException("Not able to find start work flow button"); } MyWorkFlowsPage(WebDrone drone); @SuppressWarnings("unchecked") @Override MyWorkFlowsPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override MyWorkFlowsPage render(); @SuppressWarnings("unchecked") @Override MyWorkFlowsPage render(final long time); HtmlPage selectStartWorkflowButton(); List<WorkFlowDetails> getWorkFlowDetails(String workFlowName); HtmlPage selectWorkFlow(String workFlowName); boolean isWorkFlowPresent(String workFlowName); String getSubTitle(); HtmlPage selectActiveWorkFlows(); HtmlPage selectCompletedWorkFlows(); HtmlPage cancelWorkFlow(String workFlowName); void deleteWorkFlow(String workFlowName); int getDisplayedWorkFlowCount(); WorkFlowFilters getWorkFlowsFilter(); }
MyWorkFlowsPage extends SharePage { public HtmlPage selectStartWorkflowButton() { try { drone.findAndWait(By.cssSelector("button[id$='-startWorkflow-button-button']")).click(); return FactorySharePage.resolvePage(drone); } catch (TimeoutException e) { logger.error("Not able to find start work flow button", e); } throw new PageException("Not able to find start work flow button"); } MyWorkFlowsPage(WebDrone drone); @SuppressWarnings("unchecked") @Override MyWorkFlowsPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override MyWorkFlowsPage render(); @SuppressWarnings("unchecked") @Override MyWorkFlowsPage render(final long time); HtmlPage selectStartWorkflowButton(); List<WorkFlowDetails> getWorkFlowDetails(String workFlowName); HtmlPage selectWorkFlow(String workFlowName); boolean isWorkFlowPresent(String workFlowName); String getSubTitle(); HtmlPage selectActiveWorkFlows(); HtmlPage selectCompletedWorkFlows(); HtmlPage cancelWorkFlow(String workFlowName); void deleteWorkFlow(String workFlowName); int getDisplayedWorkFlowCount(); WorkFlowFilters getWorkFlowsFilter();  }