I used the script/code below, nothing worked at all,
Is there any suggestion for me so I can scroll or swipe whatever it is to scroll down,
I have tried all the ways nothing works, someone please help me
(this script/code failed)
new TouchAction(driver).press(492, 514).waitAction(Duration.ofMillis(3800)).moveTo(578, -1035).release().perform();
new TouchAction(driver).press(807, 1010).waitAction(Duration.ofMillis(957)).moveTo(682, 121).release().perform();
new TouchAction(driver).press(678, 1621).waitAction(Duration.ofMillis(1030)).moveTo(678, 1921).release().perform();
new TouchAction(driver).press(660, 1007).waitAction(Duration.ofMillis(957)).moveTo(660, 107).release().perform();
new TouchAction(driver).press(660, 1007).waitAction(Duration.ofMillis(856)).moveTo(660, 707).release().perform();
new TouchAction(driver).press(660, 1607).waitAction(Duration.ofMillis(773)).moveTo(660, 2057).release().perform();
new TouchAction(driver).press(660, 1607).waitAction(Duration.ofMillis(670)).moveTo(660, 1907).release().perform();
driver.context(“WEBVIEW_1”);
driver.findElement(By.linkText(“Hindi”)).click();
(this script/code failed)
MobileElement element = driver.findElement(MobileBy.AndroidUIAutomator(
“new UiScrollable(new UiSelector().resourceId(“com.android.vending:id/nested_parent_recycler_view”)).scrollIntoView(”
+ “new UiSelector().description(“Jaringan Sosial”))”));
System.out.println(element.getLocation());
(this script/code failed)
TouchAction action =new TouchAction((PerformsTouchActions) driver);
Dimension size =driver.manage().window().getSize();
int width=size.width;
int height=size.height;
int middleOfX=width/2;
int startYCoordinate= (int)(height*.7);
int endYCoordinate= (int)(height*.2);
action.press(PointOption.point(middleOfX, startYCoordinate)) .waitAction(WaitOptions.waitOptions(Duration.ofSeconds(2)))
.moveTo(PointOption.point(middleOfX, endYCoordinate)).release().perform();
(this script/code failed)
TouchActions actions = new TouchActions(driver);
actions.new.press(PointOption.point(207, 582)).moveTo(PointOption.point(8,
-360)).release().perform();
(this script/code failed)
Dimension size=driver.manage().window().getSize();
int width=(int)(size.width/2);
int startPoint=(int)(size.getHeight() * 0.70);
int endPoint=(int)(size.getHeight() * 0.20);
int duration=2000;
mobileDriver.swipe(width, startPoint, width, endPoint, duration);