@Test(groups = "Enterprise4.2") public void selectCancelWorkflowButtonTest() { MyTasksPage myTasksPage = viewWorkflowPage.selectCancelWorkflowButton().render(); myTasksPage.render(); assertTrue(myTasksPage.isTitlePresent("My Tasks"), "MyTaskPage instance must be returned"); }
public HtmlPage selectCancelWorkflowButton() { drone.findAndWait(CANCEL_BUTTON).click(); drone.findAndWait(By.cssSelector("#prompt span.button-group>span:first-of-type button")).click(); drone.waitUntilElementDisappears(CANCEL_BUTTON, SECONDS.convert(maxPageLoadingTime, MILLISECONDS)); return FactorySharePage.resolvePage(drone); }
ViewWorkflowPage extends SharePage { public HtmlPage selectCancelWorkflowButton() { drone.findAndWait(CANCEL_BUTTON).click(); drone.findAndWait(By.cssSelector("#prompt span.button-group>span:first-of-type button")).click(); drone.waitUntilElementDisappears(CANCEL_BUTTON, SECONDS.convert(maxPageLoadingTime, MILLISECONDS)); return FactorySharePage.resolvePage(drone); } }
ViewWorkflowPage extends SharePage { public HtmlPage selectCancelWorkflowButton() { drone.findAndWait(CANCEL_BUTTON).click(); drone.findAndWait(By.cssSelector("#prompt span.button-group>span:first-of-type button")).click(); drone.waitUntilElementDisappears(CANCEL_BUTTON, SECONDS.convert(maxPageLoadingTime, MILLISECONDS)); return FactorySharePage.resolvePage(drone); } ViewWorkflowPage(WebDrone drone); }
ViewWorkflowPage extends SharePage { public HtmlPage selectCancelWorkflowButton() { drone.findAndWait(CANCEL_BUTTON).click(); drone.findAndWait(By.cssSelector("#prompt span.button-group>span:first-of-type button")).click(); drone.waitUntilElementDisappears(CANCEL_BUTTON, SECONDS.convert(maxPageLoadingTime, MILLISECONDS)); return FactorySharePage.resolvePage(drone); } ViewWorkflowPage(WebDrone drone); @SuppressWarnings("unchecked") @Override ViewWorkflowPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override ViewWorkflowPage render(); @SuppressWarnings("unchecked") @Override ViewWorkflowPage render(final long time); HtmlPage selectCancelWorkflowButton(); }
ViewWorkflowPage extends SharePage { public HtmlPage selectCancelWorkflowButton() { drone.findAndWait(CANCEL_BUTTON).click(); drone.findAndWait(By.cssSelector("#prompt span.button-group>span:first-of-type button")).click(); drone.waitUntilElementDisappears(CANCEL_BUTTON, SECONDS.convert(maxPageLoadingTime, MILLISECONDS)); return FactorySharePage.resolvePage(drone); } ViewWorkflowPage(WebDrone drone); @SuppressWarnings("unchecked") @Override ViewWorkflowPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override ViewWorkflowPage render(); @SuppressWarnings("unchecked") @Override ViewWorkflowPage render(final long time); HtmlPage selectCancelWorkflowButton();  }