Skip to content

Commit

Permalink
Fix build: ScrollUtils method renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
KMariusz committed Mar 3, 2023
1 parent afda07b commit 70abb05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static boolean isElementsPositionRelatedX(WebElement elementFirst,
* @return true if element is in Right-Top quarter of the screen
*/
public static boolean isOnRightTopCorner(WebElement element) {
ScrollUtils.scrollToTop();
ScrollUtils.scrollPageToTop();
int elementPositonX = element.getLocation()
.getX();
int screenWidthMiddle = WindowUtils.getScreenWidth(DriverManager.getDriver()) / 2;
Expand All @@ -160,4 +160,4 @@ public static boolean isOnRightTopCorner(WebElement element) {
return elementPositonX >= screenWidthMiddle && elementPositonY <= screenHeightMiddle;
}

}
}

0 comments on commit 70abb05

Please sign in to comment.