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

Method tap

lib/helper/Appium.js:1093–1101  ·  view source on GitHub ↗

* Taps on element. * * ```js * I.tap("~buttonStartWebviewCD"); * ``` * * Shortcut for `makeTouchAction` * * @return {Promise } * * @param {*} locator

(locator)

Source from the content-addressed store, hash-verified

1091 * @param {*} locator
1092 */
1093 async tap(locator) {
1094 const { elementId } = await this.browser.$(parseLocator.call(this, locator))
1095
1096 return this.axios({
1097 method: 'post',
1098 url: `${this._buildAppiumEndpoint()}/element/${elementId}/click`,
1099 data: {},
1100 })
1101 }
1102
1103 /**
1104 * Perform a swipe on the screen or an element.

Callers 4

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

Calls 2

_buildAppiumEndpointMethod · 0.95
$Method · 0.80

Tested by

no test coverage detected