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

Method swipeUp

lib/helper/Appium.js:1285–1294  ·  view source on GitHub ↗

* Perform a swipe up on an element. * * ```js * let locator = "#io.selendroid.testapp:id/LinearLayout1"; * I.swipeUp(locator); // simple swipe * I.swipeUp(locator, 500); // set speed * I.swipeUp(locator, 1200, 1000); // set offset and speed * ``` * * @param {CodeceptJS.Loc

(locator, yoffset = 1000, speed)

Source from the content-addressed store, hash-verified

1283 * Appium: support Android and iOS
1284 */
1285 async swipeUp(locator, yoffset = 1000, speed) {
1286 onlyForApps.call(this)
1287
1288 if (!speed) {
1289 speed = yoffset
1290 yoffset = 100
1291 }
1292
1293 return this.swipe(parseLocator.call(this, locator), 0, -yoffset, speed)
1294 }
1295
1296 /**
1297 * Perform a swipe in selected direction on an element to searchable 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