* * Perform a swipe left on an element. * * ```js * let locator = "#io.selendroid.testapp:id/LinearLayout1"; * I.swipeLeft(locator); // simple swipe * I.swipeLeft(locator, 500); // set speed * I.swipeLeft(locator, 1200, 1000); // set offset and speed * ``` * * @param {C
(locator, xoffset = 1000, speed)
| 1229 | * Appium: support Android and iOS |
| 1230 | */ |
| 1231 | async swipeLeft(locator, xoffset = 1000, speed) { |
| 1232 | onlyForApps.call(this) |
| 1233 | if (!speed) { |
| 1234 | speed = xoffset |
| 1235 | xoffset = 100 |
| 1236 | } |
| 1237 | |
| 1238 | return this.swipe(parseLocator.call(this, locator), -xoffset, 0, speed) |
| 1239 | } |
| 1240 | |
| 1241 | /** |
| 1242 | * Perform a swipe right on an element. |
no test coverage detected