Help to scroll down the page using espresso driver

Hi

I want to scroll down the page using espresso driver. I used TouchAction to scroll down the page but it is not working(works fine with uiautomator). I am not getting any error but nothing happens.

i also used mobile command to execute the swipe command as below and still nothing happens

Map<String,Object> args = new HashMap<>();
args.put(“element”, ele);
args.put(“direction”, val);
driver.execute(“mobile:swipe”, args);

Can anyone help me with this?