String jobName = "Tester problem";
schedulerEdit.setJobName(jobName);
schedulerEdit.setJobDescription(jobName);
schedulerEdit.setCron("0 15 10 ? * MON-FRI");
SchedulerPage schedulerPage = schedulerEdit.clickSaveAndView();
schedulerHomePage = schedulerPage.backToHome();
// View Job
schedulerPage = schedulerHomePage.clickJobActionView(jobName);
schedulerHomePage = schedulerPage.backToHome();
// Edit Job
schedulerEdit = schedulerHomePage.clickJobActionEdit(jobName);
schedulerEdit.setJobDescription("Tester problem2");
schedulerEdit.setCron("0 0/5 14 * * ?");
schedulerPage = schedulerEdit.clickSaveAndView();
schedulerHomePage = schedulerPage.backToHome();
// Delete and Restore Job
schedulerHomePage.clickJobActionDelete(jobName).clickYes();
schedulerHomePage = SchedulerHomePage.gotoPage();
Assert.assertFalse(getUtil().hasElement(By.linkText(jobName)));
getUtil().gotoPage("Scheduler", "SchedulerTestJob");
getDriver().findElement(By.linkText("Restore")).click();
schedulerPage = new SchedulerPage();
schedulerPage.backToHome();
// Schedule Job
schedulerHomePage.clickJobActionScheduler(jobName);
if (schedulerHomePage.hasError()) {
Assert.fail("Failed to schedule job. Error [" + schedulerHomePage.getErrorMessage() + "]");