@@ -15,7 +15,7 @@ public RelativeBy(By by) {
15
15
}
16
16
17
17
public RelativeBy above (IElement element ) {
18
- by = RelativeLocator .with (by ).above (element .getElement ());
18
+ by = RelativeLocator .with (by ).above (element .getLocator ());
19
19
return new RelativeBy (by );
20
20
}
21
21
@@ -30,7 +30,7 @@ public RelativeBy above(By by) {
30
30
}
31
31
32
32
public RelativeBy below (IElement element ) {
33
- by = RelativeLocator .with (by ).below (element .getElement ());
33
+ by = RelativeLocator .with (by ).below (element .getLocator ());
34
34
return new RelativeBy (by );
35
35
}
36
36
@@ -45,7 +45,7 @@ public RelativeBy below(By by) {
45
45
}
46
46
47
47
public RelativeBy toLeftOf (IElement element ) {
48
- by = RelativeLocator .with (by ).toLeftOf (element .getElement ());
48
+ by = RelativeLocator .with (by ).toLeftOf (element .getLocator ());
49
49
return new RelativeBy (by );
50
50
}
51
51
@@ -60,7 +60,7 @@ public RelativeBy toLeftOf(By by) {
60
60
}
61
61
62
62
public RelativeBy toRightOf (IElement element ) {
63
- by = RelativeLocator .with (by ).toRightOf (element .getElement ());
63
+ by = RelativeLocator .with (by ).toRightOf (element .getLocator ());
64
64
return new RelativeBy (by );
65
65
}
66
66
@@ -75,7 +75,7 @@ public RelativeBy toRightOf(By by) {
75
75
}
76
76
77
77
public RelativeBy near (IElement element ) {
78
- by = RelativeLocator .with (by ).near (element .getElement ());
78
+ by = RelativeLocator .with (by ).near (element .getLocator ());
79
79
return new RelativeBy (by );
80
80
}
81
81
@@ -90,7 +90,7 @@ public RelativeBy near(By by) {
90
90
}
91
91
92
92
public RelativeBy near (IElement element , int atMostDistanceInPixels ) {
93
- by = RelativeLocator .with (by ).near (element .getElement (), atMostDistanceInPixels );
93
+ by = RelativeLocator .with (by ).near (element .getLocator (), atMostDistanceInPixels );
94
94
return new RelativeBy (by );
95
95
}
96
96
0 commit comments