@Test(groups = "Enterprise4.2") public void checkIsButtonDisplayed() { assertTrue(pageUnderTest.isButtonsDisplayed(SAVE_AND_CLOSE)); assertTrue(pageUnderTest.isButtonsDisplayed(CANCEL)); assertTrue(pageUnderTest.isButtonsDisplayed(REASSIGN)); assertTrue(pageUnderTest.isButtonsDisplayed(TASK_DONE)); assertTrue(pageUnderTest.isButtonsDisplayed(ADD)); }
public boolean isButtonsDisplayed(Button button) { try { return drone.findAndWait(button.by, 3000).isDisplayed(); } catch (TimeoutException e) { return false; } }
EditTaskPage extends SharePage { public boolean isButtonsDisplayed(Button button) { try { return drone.findAndWait(button.by, 3000).isDisplayed(); } catch (TimeoutException e) { return false; } } }
EditTaskPage extends SharePage { public boolean isButtonsDisplayed(Button button) { try { return drone.findAndWait(button.by, 3000).isDisplayed(); } catch (TimeoutException e) { return false; } } EditTaskPage(WebDrone drone); }
EditTaskPage extends SharePage { public boolean isButtonsDisplayed(Button button) { try { return drone.findAndWait(button.by, 3000).isDisplayed(); } catch (TimeoutException e) { return false; } } 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 boolean isButtonsDisplayed(Button button) { try { return drone.findAndWait(button.by, 3000).isDisplayed(); } catch (TimeoutException e) { return false; } } 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();  }