[ad_1]
I’m making an attempt to scroll my nation listing to search out particular nation and after first try listing is shaking which offers error.
Video with app behaviour:
https://youtube.com/shorts/6SOI4YQbJlk?function=share 1
Code:
public void tapOnElementByText(String aspect) {
HashMap<String, Object> scrollObject = new HashMap<>();
JavascriptExecutor js = driver;
scrollObject.put("path", "down");
js.executeScript("cellular: scroll", scrollObject);
attempt {
driver.findElementByIosNsPredicate("label == "" + aspect + """).click on();
} catch (NoSuchElementException exception) {
System.out.println("Factor not discovered");
}
}
I attempted all form of stuff from stackoverflow and appium tutorial(http://appium.io/docs/en/writing-running-appium/tutorial/swipe-tutorial/), however it didn’t helped me
[ad_2]
