1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.repository.test.po; |
21 |
|
|
22 |
|
import org.openqa.selenium.WebElement; |
23 |
|
import org.openqa.selenium.support.FindBy; |
24 |
|
import org.openqa.selenium.support.ui.Select; |
25 |
|
import org.xwiki.test.ui.po.ViewPage; |
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0.5 |
|
31 |
|
public class ExtensionImportPage extends ViewPage |
32 |
|
{ |
33 |
|
@FindBy(id = "importExtensionIdInput") |
34 |
|
private WebElement extensionIdInput; |
35 |
|
|
36 |
|
@FindBy(id = "importRepositoryIdInput") |
37 |
|
private WebElement repositoryIdInput; |
38 |
|
|
39 |
|
@FindBy(id = "importSubmit") |
40 |
|
private WebElement importSubmit; |
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
42 |
1 |
public void setExtensionId(String extenionId)... |
43 |
|
{ |
44 |
1 |
this.extensionIdInput.clear(); |
45 |
1 |
this.extensionIdInput.sendKeys(extenionId); |
46 |
|
} |
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
48 |
1 |
public void setSourceRepository(String repositoryId)... |
49 |
|
{ |
50 |
1 |
Select select = new Select(this.repositoryIdInput); |
51 |
1 |
select.selectByValue(repositoryId); |
52 |
|
} |
53 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
54 |
1 |
public ExtensionPage clickImport()... |
55 |
|
{ |
56 |
1 |
this.importSubmit.click(); |
57 |
|
|
58 |
1 |
return new ExtensionPage(); |
59 |
|
} |
60 |
|
} |