summaryrefslogtreecommitdiffstats
path: root/testbench-api/src/main/java/com/vaadin
diff options
context:
space:
mode:
Diffstat (limited to 'testbench-api/src/main/java/com/vaadin')
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java
index 5970cc53a1..bdc26ed663 100644
--- a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java
+++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java
@@ -64,8 +64,8 @@ public class GridElement extends AbstractComponentElement {
}
public GridCellElement getCell(int columnIndex) {
- TestBenchElement e = (TestBenchElement) findElement(By
- .xpath("./td[" + (columnIndex + 1) + "]"));
+ TestBenchElement e = (TestBenchElement) findElement(
+ By.xpath("./td[" + (columnIndex + 1) + "]"));
return e.wrap(GridCellElement.class);
}
}
@@ -206,8 +206,8 @@ public class GridElement extends AbstractComponentElement {
* @return Header cell element with given indices.
*/
public GridCellElement getHeaderCell(int rowIndex, int colIndex) {
- return getSubPart("#header[" + rowIndex + "][" + colIndex + "]").wrap(
- GridCellElement.class);
+ return getSubPart("#header[" + rowIndex + "][" + colIndex + "]")
+ .wrap(GridCellElement.class);
}
/**
@@ -223,16 +223,16 @@ public class GridElement extends AbstractComponentElement {
*/
public GridCellElement getHeaderCellByCaption(String caption) {
List<WebElement> headerRows = findElement(By.vaadin("#header"))
- .findElements(By.xpath("./tr/th"));
+ .findElements(By.xpath("./tr/th"));
for (WebElement header : headerRows) {
if (caption.equals(header.getText())) {
return TestBenchElement
- .wrapElement(header, getCommandExecutor())
- .wrap(GridCellElement.class);
+ .wrapElement(header, getCommandExecutor())
+ .wrap(GridCellElement.class);
}
}
String errorMessage = String
- .format("There is no header cell with %s caption. ", caption);
+ .format("There is no header cell with %s caption. ", caption);
throw new NoSuchElementException(errorMessage);
}
@@ -250,7 +250,8 @@ public class GridElement extends AbstractComponentElement {
* if there is no header row or no header cell with the given
* text.
*/
- public GridCellElement getHeaderCellByCaption(int rowIndex, String caption) {
+ public GridCellElement getHeaderCellByCaption(int rowIndex,
+ String caption) {
List<GridCellElement> headerCells = getHeaderCells(rowIndex);
for (GridCellElement cell : headerCells) {
if (caption.equals(cell.getText())) {
tion> Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/indie.json
blob: bb3fcb96691458daf02fdfe534c1518c0c22ad3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92