| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package org.xwiki.scheduler.test.po.editor; |
| 21 |
|
|
| 22 |
|
import org.openqa.selenium.WebElement; |
| 23 |
|
import org.openqa.selenium.support.FindBy; |
| 24 |
|
import org.xwiki.scheduler.test.po.SchedulerPage; |
| 25 |
|
import org.xwiki.test.ui.po.editor.EditPage; |
| 26 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 4 |
Complexity Density: 0.5 |
|
| 27 |
|
public class SchedulerEditPage extends EditPage |
| 28 |
|
{ |
| 29 |
|
@FindBy(id = "XWiki.SchedulerJobClass_0_jobName") |
| 30 |
|
private WebElement jobName; |
| 31 |
|
|
| 32 |
|
@FindBy(id = "XWiki.SchedulerJobClass_0_jobDescription") |
| 33 |
|
private WebElement jobDescription; |
| 34 |
|
|
| 35 |
|
@FindBy(id = "XWiki.SchedulerJobClass_0_cron") |
| 36 |
|
private WebElement cron; |
| 37 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 38 |
1 |
public void setJobName(String jobName)... |
| 39 |
|
{ |
| 40 |
1 |
this.jobName.clear(); |
| 41 |
1 |
this.jobName.sendKeys(jobName); |
| 42 |
|
} |
| 43 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 44 |
3 |
public void setJobDescription(String jobDescription)... |
| 45 |
|
{ |
| 46 |
3 |
this.jobDescription.clear(); |
| 47 |
3 |
this.jobDescription.sendKeys(jobDescription); |
| 48 |
|
} |
| 49 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 50 |
2 |
public void setCron(String cron)... |
| 51 |
|
{ |
| 52 |
2 |
this.cron.clear(); |
| 53 |
2 |
this.cron.sendKeys(cron); |
| 54 |
|
} |
| 55 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 56 |
2 |
@Override... |
| 57 |
|
public SchedulerPage clickSaveAndView() |
| 58 |
|
{ |
| 59 |
2 |
this.save.click(); |
| 60 |
2 |
return new SchedulerPage(); |
| 61 |
|
} |
| 62 |
|
} |