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

Method swipeDown

lib/helper/Appium.js:1202–1211  ·  view source on GitHub ↗

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

(locator, yoffset = 1000, speed)

Source from the content-addressed store, hash-verified

1200 * Appium: support Android and iOS
1201 */
1202 async swipeDown(locator, yoffset = 1000, speed) {
1203 onlyForApps.call(this)
1204
1205 if (!speed) {
1206 speed = yoffset
1207 yoffset = 100
1208 }
1209
1210 return this.swipe(parseLocator.call(this, locator), 0, yoffset, speed)
1211 }
1212
1213 /**
1214 *

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