| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package org.xwiki.test.ui.po; |
| 21 |
|
|
| 22 |
|
import org.openqa.selenium.WebElement; |
| 23 |
|
import org.openqa.selenium.support.FindBy; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
@version |
| 29 |
|
@since |
| 30 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 4 |
Complexity Density: 0.57 |
|
| 31 |
|
public class CopyOverwritePromptPage extends ViewPage |
| 32 |
|
{ |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
@FindBy(className = "warningmessage") |
| 37 |
|
private WebElement warningMessage; |
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
@FindBy(xpath = "//input[@class = 'button' and @value = 'Copy']") |
| 43 |
|
private WebElement copyButton; |
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
@FindBy(xpath = "//a[@class = 'secondary button' and normalize-space(.) = 'Change the target page']") |
| 49 |
|
private WebElement changeButton; |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
@FindBy(xpath = "//a[@class = 'secondary button' and text()='Cancel']") |
| 55 |
|
private WebElement cancelButton; |
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
@return |
| 60 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 61 |
1 |
public CopyOrRenameStatusPage clickCopyButton()... |
| 62 |
|
{ |
| 63 |
1 |
this.copyButton.submit(); |
| 64 |
1 |
return new CopyOrRenameStatusPage(); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
@return |
| 70 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 71 |
1 |
public CopyPage clickChangeTargetButton()... |
| 72 |
|
{ |
| 73 |
1 |
this.changeButton.click(); |
| 74 |
1 |
return new CopyPage(); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
@return |
| 80 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 81 |
1 |
public ViewPage clickCancelButton()... |
| 82 |
|
{ |
| 83 |
1 |
this.cancelButton.click(); |
| 84 |
1 |
return new CopyPage(); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
|
| 88 |
|
@return |
| 89 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 90 |
1 |
public String getWarningMessage()... |
| 91 |
|
{ |
| 92 |
1 |
return this.warningMessage.getText(); |
| 93 |
|
} |
| 94 |
|
} |