Skip to content

Commit

Permalink
Fix offset after scroll for IPA and APK
Browse files Browse the repository at this point in the history
  • Loading branch information
bcivel committed Nov 28, 2024
1 parent 4c37565 commit 2f05614
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ private boolean scrollDown(AppiumDriver driver, By element, int numberOfScrollDo
//Element found, perform another scroll to offset from middle of screen
int pressOffsetX = driver.manage().window().getSize().width / 2;
int pressOffsetY = driver.manage().window().getSize().height / 2;
scroll(driver, pressOffsetX, pressOffsetY, hOffset, vOffset);
scroll(driver, pressOffsetX, pressOffsetY, pressOffsetX-hOffset, pressOffsetY-vOffset);

return true;
} else {
Expand Down

0 comments on commit 2f05614

Please sign in to comment.