【发布时间】:2017-03-19 13:26:05
【问题描述】:
我正在尝试使用 appium 中的 swipe(direction, duration) 方法进行滑动操作。但是刷卡方法正在被弃用。并且在控制台上出现异常
FAILED: test
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 15 milliseconds
这是我的代码
MobileElement abc = (MobileElement) driver.findElement(By.className("android.widget.FrameLayout"));
abc.swipe(SwipeElementDirection.UP, 6000);
我认为 swipe() 方法不可用。 PFA 截图供参考。
1)eclipse 屏幕截图
https://i.stack.imgur.com/PRTdw.png
2)方法不可用截图
【问题讨论】: