@Test public void selectViewMoreActionsBtnTest() { cloudTaskOrReviewPage.render(); SharePage returnedPage = cloudTaskOrReviewPage.selectViewMoreActionsBtn(file.getName()).render(); assertTrue(returnedPage instanceof DocumentDetailsPage, "A document details page should be returned."); startWorkFlowPage = ((DocumentDetailsPage) returnedPage).selectStartWorkFlowPage().render(); cloudTaskOrReviewPage = ((CloudTaskOrReviewPage) startWorkFlowPage.getWorkflowPage(WorkFlowType.CLOUD_TASK_OR_REVIEW)).render(); String date = cloudTaskOrReviewPage.getItemDate(file.getName()); Assert.assertFalse(date.isEmpty()); }
public DocumentDetailsPage selectViewMoreActionsBtn(String filename) { performActionForFile(filename, VIEW_MORE_ACTIONS); return new DocumentDetailsPage(drone); }
CloudTaskOrReviewPage extends WorkFlowPage { public DocumentDetailsPage selectViewMoreActionsBtn(String filename) { performActionForFile(filename, VIEW_MORE_ACTIONS); return new DocumentDetailsPage(drone); } }
CloudTaskOrReviewPage extends WorkFlowPage { public DocumentDetailsPage selectViewMoreActionsBtn(String filename) { performActionForFile(filename, VIEW_MORE_ACTIONS); return new DocumentDetailsPage(drone); } CloudTaskOrReviewPage(WebDrone drone); }
CloudTaskOrReviewPage extends WorkFlowPage { public DocumentDetailsPage selectViewMoreActionsBtn(String filename) { performActionForFile(filename, VIEW_MORE_ACTIONS); return new DocumentDetailsPage(drone); } CloudTaskOrReviewPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CloudTaskOrReviewPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CloudTaskOrReviewPage render(); @SuppressWarnings("unchecked") @Override CloudTaskOrReviewPage render(final long time); @Override HtmlPage startWorkflow(WorkFlowFormDetails formDetails); boolean isTaskTypeSelected(TaskType taskType); void selectTask(TaskType taskType); HtmlPage selectDestinationAndAssigneePage(); void selectLockOnPremiseCheckbox(boolean toCheck); AssignmentPage selectAssignmentPage(); String getErrorMessage(); void selecRemoveBtn(String filename); DocumentDetailsPage selectViewMoreActionsBtn(String filename); void selectAfterCompleteDropDown(KeepContentStrategy strategy); void enterRequiredApprovalPercentage(int percentage); String getDestinationNetwork(); String getDestinationSite(); String getDestinationFolder(); boolean isSimpleCloudTaskElementsPresent(); boolean isCloudReviewTaskElementsPresent(); boolean isSelectAssigneeButtonEnabled(); boolean isSelectReviewersButtonEnabled(); List<String> getReviewers(); String getAssignee(); boolean isAssigneePresent(); boolean isReviewersPresent(); String getRequiredApprovalPercentageHelpText(); List<String> getAfterCompletionOptions(); KeepContentStrategy getSelectedAfterCompletionOption(); boolean isLockOnPremiseSelected(); @Override HtmlPage cancelCreateWorkflow(WorkFlowFormDetails formDetails); boolean isAfterCompletionDropdownPresent(); boolean isAddButtonPresent(); boolean isAfterCompletionSelected(KeepContentStrategy strategy); String getItemDate(String fileName); }
CloudTaskOrReviewPage extends WorkFlowPage { public DocumentDetailsPage selectViewMoreActionsBtn(String filename) { performActionForFile(filename, VIEW_MORE_ACTIONS); return new DocumentDetailsPage(drone); } CloudTaskOrReviewPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CloudTaskOrReviewPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CloudTaskOrReviewPage render(); @SuppressWarnings("unchecked") @Override CloudTaskOrReviewPage render(final long time); @Override HtmlPage startWorkflow(WorkFlowFormDetails formDetails); boolean isTaskTypeSelected(TaskType taskType); void selectTask(TaskType taskType); HtmlPage selectDestinationAndAssigneePage(); void selectLockOnPremiseCheckbox(boolean toCheck); AssignmentPage selectAssignmentPage(); String getErrorMessage(); void selecRemoveBtn(String filename); DocumentDetailsPage selectViewMoreActionsBtn(String filename); void selectAfterCompleteDropDown(KeepContentStrategy strategy); void enterRequiredApprovalPercentage(int percentage); String getDestinationNetwork(); String getDestinationSite(); String getDestinationFolder(); boolean isSimpleCloudTaskElementsPresent(); boolean isCloudReviewTaskElementsPresent(); boolean isSelectAssigneeButtonEnabled(); boolean isSelectReviewersButtonEnabled(); List<String> getReviewers(); String getAssignee(); boolean isAssigneePresent(); boolean isReviewersPresent(); String getRequiredApprovalPercentageHelpText(); List<String> getAfterCompletionOptions(); KeepContentStrategy getSelectedAfterCompletionOption(); boolean isLockOnPremiseSelected(); @Override HtmlPage cancelCreateWorkflow(WorkFlowFormDetails formDetails); boolean isAfterCompletionDropdownPresent(); boolean isAddButtonPresent(); boolean isAfterCompletionSelected(KeepContentStrategy strategy); String getItemDate(String fileName);  }