Driver.scroll and scroll related functions deprecated it seems in new versions

driver.scroll and scroll related functions deprecated it seems in new versions. So what are the alternative new methods provided?

TouchAction or MultiTouchAction

1 Like

Yes, we are using TouchAction class to swipe or scroll

Can someone please paste code for swipe and scroll, still struggling with it.

Right Swipe:

new TouchAction(getWebDriver()).press(50, locationY)
							.waitAction(Duration.ofMillis(100))
							.moveTo(screenWidth-10, locationY).release().perform();

Using this you can build other actions related to swipes and scrolls.

Hi can anybody provide the code for vertical scroll for android app.UIscrollbale is not working for All device and android version above 6