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

Method click

lib/helper/Appium.js:1543–1553  ·  view source on GitHub ↗

* {{> click }} *

(locator, context)

Source from the content-addressed store, hash-verified

1541 *
1542 */
1543 async click(locator, context) {
1544 if (this.isWeb) return super.click(locator, context)
1545
1546 const { elementId } = await this.browser.$(parseLocator.call(this, locator), parseLocator.call(this, context))
1547
1548 return this.axios({
1549 method: 'post',
1550 url: `${this._buildAppiumEndpoint()}/element/${elementId}/click`,
1551 data: {},
1552 })
1553 }
1554
1555 /**
1556 * {{> dontSeeCheckboxIsChecked }}

Callers 15

fillRichEditorFunction · 0.45
heal.jsFile · 0.45
WebElement_test.jsFile · 0.45
AppiumWeb_test.jsFile · 0.45
Playwright_test.jsFile · 0.45
Appium_ios_test.jsFile · 0.45
WebDriver_test.jsFile · 0.45
Puppeteer_test.jsFile · 0.45
testsFunction · 0.45
submitAndGrabFunction · 0.45
session_test.jsFile · 0.45

Calls 2

_buildAppiumEndpointMethod · 0.95
$Method · 0.80

Tested by

no test coverage detected