String jobName = "Tester problem";
schedulerEdit.setJobName(jobName);
schedulerEdit.setJobDescription(jobName);
schedulerEdit.setCron("0 15 10 ? * MON-FRI");
SchedulerPage schedulerPage = schedulerEdit.clickSaveAndView();
this.schedulerHomePage = schedulerPage.backToHome();
// View Job
schedulerPage = this.schedulerHomePage.clickJobActionView(jobName);
this.schedulerHomePage = schedulerPage.backToHome();
// Edit Job
schedulerEdit = this.schedulerHomePage.clickJobActionEdit(jobName);
schedulerEdit.setJobDescription("Tester problem2");
schedulerEdit.setCron("0 0/5 14 * * ?");
schedulerPage = schedulerEdit.clickSaveAndView();
this.schedulerHomePage = schedulerPage.backToHome();
// Delete and Restore Job
DeletePage deletePage = this.schedulerHomePage.clickJobActionDelete(jobName);
deletePage.confirm();
this.schedulerHomePage.gotoPage();
Assert.assertTrue(getDriver().findElements(By.linkText(jobName)).isEmpty());
getUtil().gotoPage("Scheduler", "SchedulerTestJob");
getDriver().findElement(By.linkText("Restore")).click();
schedulerPage = new SchedulerPage();
schedulerPage.backToHome();
// Schedule Job
this.schedulerHomePage.clickJobActionScheduler(jobName);
// Trigger Job