@Test(groups = "Enterprise4.2", dependsOnMethods = "checkIsButtonDisplayed") public void selectStatusDropDownTest() { assertTrue(TaskStatus.NOTYETSTARTED.equals(pageUnderTest.getSelectedStatusFromDropDown()), "The selected status should be not yet started"); pageUnderTest.selectStatusDropDown(TaskStatus.COMPLETED).render(); assertTrue(TaskStatus.COMPLETED.equals(pageUnderTest.getSelectedStatusFromDropDown()), "The selected status should be completed"); }
public HtmlPage selectStatusDropDown(TaskStatus status) { Select statusSelect = new Select(drone.findAndWait(By.cssSelector(TASK_STATUS))); statusSelect.selectByValue(status.getTaskName()); return this; }
EditTaskPage extends SharePage { public HtmlPage selectStatusDropDown(TaskStatus status) { Select statusSelect = new Select(drone.findAndWait(By.cssSelector(TASK_STATUS))); statusSelect.selectByValue(status.getTaskName()); return this; } }
EditTaskPage extends SharePage { public HtmlPage selectStatusDropDown(TaskStatus status) { Select statusSelect = new Select(drone.findAndWait(By.cssSelector(TASK_STATUS))); statusSelect.selectByValue(status.getTaskName()); return this; } EditTaskPage(WebDrone drone); }
EditTaskPage extends SharePage { public HtmlPage selectStatusDropDown(TaskStatus status) { Select statusSelect = new Select(drone.findAndWait(By.cssSelector(TASK_STATUS))); statusSelect.selectByValue(status.getTaskName()); return this; } EditTaskPage(WebDrone drone); @SuppressWarnings("unchecked") @Override EditTaskPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override EditTaskPage render(); @SuppressWarnings("unchecked") @Override EditTaskPage render(final long time); HtmlPage selectStatusDropDown(TaskStatus status); TaskStatus getSelectedStatusFromDropDown(); HtmlPage selectTaskDoneButton(); HtmlPage selectRejectButton(); HtmlPage selectApproveButton(); HtmlPage selectSaveButton(); void enterComment(String comment); TaskInfo getTaskDetailsInfo(); List<TaskItem> getTaskItems(); List<TaskItem> getTaskItem(String fileName); List<TaskStatus> getStatusOptions(); HtmlPage selectCancelButton(); boolean isReAssignButtonDisplayed(); HtmlPage selectAcceptButton(); boolean isButtonsDisplayed(Button button); void selectItem(String fileName, String siteName); SelectContentPage clickAddItems(); ReassignPage clickReassign(); MyTasksPage selectReassign(String userName); EditTaskPage selectClaim(); boolean isCommentTextAreaDisplayed(); String readCommentFromCommentTextArea(); }
EditTaskPage extends SharePage { public HtmlPage selectStatusDropDown(TaskStatus status) { Select statusSelect = new Select(drone.findAndWait(By.cssSelector(TASK_STATUS))); statusSelect.selectByValue(status.getTaskName()); return this; } EditTaskPage(WebDrone drone); @SuppressWarnings("unchecked") @Override EditTaskPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override EditTaskPage render(); @SuppressWarnings("unchecked") @Override EditTaskPage render(final long time); HtmlPage selectStatusDropDown(TaskStatus status); TaskStatus getSelectedStatusFromDropDown(); HtmlPage selectTaskDoneButton(); HtmlPage selectRejectButton(); HtmlPage selectApproveButton(); HtmlPage selectSaveButton(); void enterComment(String comment); TaskInfo getTaskDetailsInfo(); List<TaskItem> getTaskItems(); List<TaskItem> getTaskItem(String fileName); List<TaskStatus> getStatusOptions(); HtmlPage selectCancelButton(); boolean isReAssignButtonDisplayed(); HtmlPage selectAcceptButton(); boolean isButtonsDisplayed(Button button); void selectItem(String fileName, String siteName); SelectContentPage clickAddItems(); ReassignPage clickReassign(); MyTasksPage selectReassign(String userName); EditTaskPage selectClaim(); boolean isCommentTextAreaDisplayed(); String readCommentFromCommentTextArea();  }