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

Method _locate

lib/helper/Puppeteer.js:995–998  ·  view source on GitHub ↗

* Get elements by different locator types, including strict locator * Should be used in custom helpers: * * ```js * const elements = await this.helpers['Puppeteer']._locate({name: 'password'}); * ``` *

(locator)

Source from the content-addressed store, hash-verified

993 *
994 */
995 async _locate(locator) {
996 const context = await this.context
997 return findElements.call(this, context, locator)
998 }
999
1000 /**
1001 * Get single element by different locator types, including strict locator

Callers 15

grabWebElementsMethod · 0.95
grabWebElementMethod · 0.95
seeElementMethod · 0.95
dontSeeElementMethod · 0.95
seeElementInDOMMethod · 0.95
dontSeeElementInDOMMethod · 0.95
forceClickMethod · 0.95
clickXYMethod · 0.95
attachFileMethod · 0.95
selectOptionMethod · 0.95
seeNumberOfElementsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected