1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.administration.test.po; |
21 |
|
|
22 |
|
import org.openqa.selenium.WebElement; |
23 |
|
import org.openqa.selenium.support.FindBy; |
24 |
|
import org.xwiki.test.ui.po.LiveTableElement; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 4 |
Complexity Density: 0.57 |
|
32 |
|
public class UsersAdministrationSectionPage extends AdministrationSectionPage |
33 |
|
{ |
34 |
|
public static final String ADMINISTRATION_SECTION_ID = "Users"; |
35 |
|
|
36 |
|
@FindBy(id = "addNewUser") |
37 |
|
private WebElement addNewUserButton; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private final LiveTableElement usersLiveTable; |
43 |
|
|
44 |
|
|
45 |
|
@since |
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
47 |
8 |
public static UsersAdministrationSectionPage gotoPage()... |
48 |
|
{ |
49 |
8 |
AdministrationSectionPage.gotoPage(ADMINISTRATION_SECTION_ID); |
50 |
8 |
return new UsersAdministrationSectionPage(); |
51 |
|
} |
52 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
53 |
8 |
public UsersAdministrationSectionPage()... |
54 |
|
{ |
55 |
8 |
super(ADMINISTRATION_SECTION_ID); |
56 |
8 |
usersLiveTable = new LiveTableElement("userstable"); |
57 |
|
} |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
59 |
8 |
public LightBoxRegistrationPage clickAddNewUser()... |
60 |
|
{ |
61 |
8 |
this.addNewUserButton.click(); |
62 |
8 |
return new LightBoxRegistrationPage(); |
63 |
|
} |
64 |
|
|
65 |
|
|
66 |
|
@return |
67 |
|
@since |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
8 |
public LiveTableElement getUsersLiveTable()... |
70 |
|
{ |
71 |
8 |
return usersLiveTable; |
72 |
|
} |
73 |
|
} |