* Taps on element. * * ```js * I.tap("~buttonStartWebviewCD"); * ``` * * Shortcut for `makeTouchAction` * * @return {Promise } * * @param {*} locator
(locator)
| 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. |
no test coverage detected