【发布时间】:2020-03-31 05:08:02
【问题描述】:
我正在尝试使用下面的代码 sn-p 向后滚动,但它会抛出错误
-
代码sn-p
try { getTLDriver().findElements(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector()).setAsVerticalList().flingToBeginning(5);")); } catch(Exception e){ e.printStackTrace(); } -
错误:
org.openqa.selenium.InvalidSelectorException: Could not parse expression `new UiScrollable(new UiSelector()).setAsVerticalList().flingToBeginning(5)`: Last method called on a UiScrollable object must return a UiObject object
有人帮忙解决一下
【问题讨论】:
标签: appium ui-automation