@Test(groups = "Enterprise4.2", dependsOnMethods = "selectReassign") public void readCommentFromCommentTextAreaTest() throws Exception { pageUnderTest.enterComment("test"); assertTrue(pageUnderTest.readCommentFromCommentTextArea().contains("test")); }
public String readCommentFromCommentTextArea() { WebElement commentBox = drone.find(By.cssSelector(COMMENT_TEXTAREA)); return commentBox.getAttribute("value"); }
EditTaskPage extends SharePage { public String readCommentFromCommentTextArea() { WebElement commentBox = drone.find(By.cssSelector(COMMENT_TEXTAREA)); return commentBox.getAttribute("value"); } }
EditTaskPage extends SharePage { public String readCommentFromCommentTextArea() { WebElement commentBox = drone.find(By.cssSelector(COMMENT_TEXTAREA)); return commentBox.getAttribute("value"); } EditTaskPage(WebDrone drone); }
EditTaskPage extends SharePage { public String readCommentFromCommentTextArea() { WebElement commentBox = drone.find(By.cssSelector(COMMENT_TEXTAREA)); return commentBox.getAttribute("value"); } 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 String readCommentFromCommentTextArea() { WebElement commentBox = drone.find(By.cssSelector(COMMENT_TEXTAREA)); return commentBox.getAttribute("value"); } 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();  }