File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
main/java/aquality/selenium/locators Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ public RelativeBy toRightOf(By by) {
77
77
78
78
public RelativeBy near (IElement element ) {
79
79
by = RelativeLocator .with (by ).near (element .getElement ());
80
- return new RelativeBy (this . by );
80
+ return new RelativeBy (by );
81
81
}
82
82
83
83
public RelativeBy near (WebElement element ) {
84
84
by = RelativeLocator .with (by ).near (element );
85
- return new RelativeBy (this . by );
85
+ return new RelativeBy (by );
86
86
}
87
87
88
88
public RelativeBy near (By by ) {
@@ -92,12 +92,12 @@ public RelativeBy near(By by) {
92
92
93
93
public RelativeBy near (IElement element , int atMostDistanceInPixels ) {
94
94
by = RelativeLocator .with (by ).near (element .getElement (), atMostDistanceInPixels );
95
- return new RelativeBy (this . by );
95
+ return new RelativeBy (by );
96
96
}
97
97
98
98
public RelativeBy near (WebElement element , int atMostDistanceInPixels ) {
99
99
by = RelativeLocator .with (by ).near (element , atMostDistanceInPixels );
100
- return new RelativeBy (this . by );
100
+ return new RelativeBy (by );
101
101
}
102
102
103
103
public RelativeBy near (By by , int atMostDistanceInPixels ) {
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ public class RelativeBySupplier {
6
6
public static RelativeBy with (By by ) {
7
7
return new RelativeBy (by );
8
8
}
9
- }
9
+ }
Original file line number Diff line number Diff line change 12
12
<class name =" tests.integration.HiddenElementsTests" />
13
13
<class name =" aquality.selenium.localization.LocalizationManagerTests" />
14
14
<class name =" tests.usecases.TestTimeoutConfiguration" />
15
+ <class name =" tests.integration.LocatorTests" />
15
16
</classes >
16
17
</test >
17
18
<test name =" Use cases tests" parallel =" methods" thread-count =" 3" >
You can’t perform that action at this time.
0 commit comments