Skip to content

Commit 70abb05

Browse files
committed
Fix build: ScrollUtils method renamed
1 parent afda07b commit 70abb05

File tree

1 file changed

+2
-2
lines changed
  • mrchecker-framework-modules/mrchecker-selenium-module/src/main/java/com/capgemini/mrchecker/selenium/core/utils

1 file changed

+2
-2
lines changed

mrchecker-framework-modules/mrchecker-selenium-module/src/main/java/com/capgemini/mrchecker/selenium/core/utils/ElementPositionUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static boolean isElementsPositionRelatedX(WebElement elementFirst,
148148
* @return true if element is in Right-Top quarter of the screen
149149
*/
150150
public static boolean isOnRightTopCorner(WebElement element) {
151-
ScrollUtils.scrollToTop();
151+
ScrollUtils.scrollPageToTop();
152152
int elementPositonX = element.getLocation()
153153
.getX();
154154
int screenWidthMiddle = WindowUtils.getScreenWidth(DriverManager.getDriver()) / 2;
@@ -160,4 +160,4 @@ public static boolean isOnRightTopCorner(WebElement element) {
160160
return elementPositonX >= screenWidthMiddle && elementPositonY <= screenHeightMiddle;
161161
}
162162

163-
}
163+
}

0 commit comments

Comments
 (0)