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) {
7777
7878 public RelativeBy near (IElement element ) {
7979 by = RelativeLocator .with (by ).near (element .getElement ());
80- return new RelativeBy (this . by );
80+ return new RelativeBy (by );
8181 }
8282
8383 public RelativeBy near (WebElement element ) {
8484 by = RelativeLocator .with (by ).near (element );
85- return new RelativeBy (this . by );
85+ return new RelativeBy (by );
8686 }
8787
8888 public RelativeBy near (By by ) {
@@ -92,12 +92,12 @@ public RelativeBy near(By by) {
9292
9393 public RelativeBy near (IElement element , int atMostDistanceInPixels ) {
9494 by = RelativeLocator .with (by ).near (element .getElement (), atMostDistanceInPixels );
95- return new RelativeBy (this . by );
95+ return new RelativeBy (by );
9696 }
9797
9898 public RelativeBy near (WebElement element , int atMostDistanceInPixels ) {
9999 by = RelativeLocator .with (by ).near (element , atMostDistanceInPixels );
100- return new RelativeBy (this . by );
100+ return new RelativeBy (by );
101101 }
102102
103103 public RelativeBy near (By by , int atMostDistanceInPixels ) {
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ public class RelativeBySupplier {
66 public static RelativeBy with (By by ) {
77 return new RelativeBy (by );
88 }
9- }
9+ }
Original file line number Diff line number Diff line change 1212 <class name =" tests.integration.HiddenElementsTests" />
1313 <class name =" aquality.selenium.localization.LocalizationManagerTests" />
1414 <class name =" tests.usecases.TestTimeoutConfiguration" />
15+ <class name =" tests.integration.LocatorTests" />
1516 </classes >
1617 </test >
1718 <test name =" Use cases tests" parallel =" methods" thread-count =" 3" >
You can’t perform that action at this time.
0 commit comments