MCPcopy
hub / github.com/codeceptjs/CodeceptJS / swipeLeft

Method swipeLeft

lib/helper/Appium.js:1231–1239  ·  view source on GitHub ↗

* * 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)

Source from the content-addressed store, hash-verified

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.

Callers 3

Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls 1

swipeMethod · 0.95

Tested by

no test coverage detected