Scroll
Sat May 13 2023 07:42:11 GMT+0000 (Coordinated Universal Time)
Saved by
@mehran
boolean found = false;
while (!found) {
try {
driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"شماره پرونده\").instance(0))"));
found = true;
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
///
try {
driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"پیامگیرصوتی\").instance(0))"));
Thread.sleep(1000);
} catch (InterruptedException e) {
// Handle the exception
e.printStackTrace();
}
///
driver.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollForward(400)"));
content_copyCOPY
Scroll
Comments