【发布时间】:2020-08-23 20:23:00
【问题描述】:
我正在测试一个原生 Android 应用,并且希望能够在元素上向左或向右滑动。我已经阅读了这里的文档:
https://codecept.io/helpers/Appium.html#swiperight
let locator = "#io.selendroid.testapp:id/LinearLayout1";
I.swipeRight(locator); // simple swipe
I.swipeRight(locator, 500); // set speed
I.swipeRight(locator, 1200, 1000); // set offset and speed
我无法让它工作。我很确定我有正确的定位器,就像我做 I.tap(locator) 时一样,它可以工作。
有没有人设法让I.swipeRight(locator) 或I.swipeLeft(localtor) 工作?
【问题讨论】:
标签: testing appium codeceptjs