How to scroll screen when I context webview

When I navigate to webview after positioning page elements, how to achieve by scrolling the screen.
I tried several ways, but did not take effect.
Please tell me how appium can be used to slide the screen on the webview

JavascriptExecutor scroll = (JavascriptExecutor) driver;
scroll.executeScript(“window.scrollBy(0, 250)”, “”);


driver.swipe(width / 4, height / 2, width * 3 / 4, height / 2, during);

None of them have any effect


1 Like