Scrolling to element in android app using java

this is my solution :smiley:

public void scrollToText(String text) {
MobileElement scroll = driver.findElement(MobileBy.AndroidUIAutomator(β€œnew UiScrollable(
new UiSelector()).scrollIntoView(” + β€œnew UiSelector().description(” + β€œβ€" + text + β€œβ€"+ β€œ));”));
}