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

Method swipeRight

lib/helper/Appium.js:1258–1266  ·  view source on GitHub ↗

* Perform a swipe right on an element. * * ```js * 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 * ``` * * @param {Co

(locator, xoffset = 1000, speed)

Source from the content-addressed store, hash-verified

1256 * Appium: support Android and iOS
1257 */
1258 async swipeRight(locator, xoffset = 1000, speed) {
1259 onlyForApps.call(this)
1260 if (!speed) {
1261 speed = xoffset
1262 xoffset = 100
1263 }
1264
1265 return this.swipe(parseLocator.call(this, locator), xoffset, 0, speed)
1266 }
1267
1268 /**
1269 * Perform a swipe up 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