1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.user.test.po; |
21 |
|
|
22 |
|
import org.openqa.selenium.WebElement; |
23 |
|
import org.openqa.selenium.support.FindBy; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (14) |
Complexity: 6 |
Complexity Density: 0.75 |
|
30 |
|
public class PreferencesUserProfilePage extends AbstractUserProfilePage |
31 |
|
{ |
32 |
|
@FindBy(xpath = "//div[@id='preferencesPane']//div[@class='editProfileCategory']/a") |
33 |
|
private WebElement editPreferences; |
34 |
|
|
35 |
|
@FindBy(xpath = "//div[@id='preferencesPane']/div[1]/div/dl[2]/dd[1]") |
36 |
|
private WebElement timezone; |
37 |
|
|
38 |
|
@FindBy(xpath = "//div[@id='preferencesPane']/div[1]/div/dl[3]/dd[2]") |
39 |
|
private WebElement userType; |
40 |
|
|
41 |
|
@FindBy(xpath = "//div[@id='preferencesPane']/div[1]/div/dl[3]/dd[1]") |
42 |
|
private WebElement defaultEditorToUse; |
43 |
|
|
44 |
|
@FindBy(xpath = "//a[@id='changePassword']") |
45 |
|
private WebElement changePassword; |
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
15 |
public PreferencesUserProfilePage(String username)... |
48 |
|
{ |
49 |
15 |
super(username); |
50 |
|
} |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
3 |
public String getDefaultEditor()... |
53 |
|
{ |
54 |
3 |
return this.defaultEditorToUse.getText(); |
55 |
|
} |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
2 |
public String getUserType()... |
58 |
|
{ |
59 |
2 |
return this.userType.getText(); |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
2 |
public String getTimezone()... |
63 |
|
{ |
64 |
2 |
return this.timezone.getText(); |
65 |
|
} |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
67 |
5 |
public PreferencesEditPage editPreferences()... |
68 |
|
{ |
69 |
5 |
this.editPreferences.click(); |
70 |
5 |
return new PreferencesEditPage(); |
71 |
|
} |
72 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
73 |
6 |
public ChangePasswordPage changePassword()... |
74 |
|
{ |
75 |
6 |
this.changePassword.click(); |
76 |
6 |
return new ChangePasswordPage(); |
77 |
|
} |
78 |
|
} |