MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / findElement

Function findElement

lib/helper/Playwright.js:4238–4244  ·  view source on GitHub ↗
(matcher, locator)

Source from the content-addressed store, hash-verified

4236}
4237
4238async function findElement(matcher, locator) {
4239 if (locator.pw) return findByPlaywrightLocator.call(this, matcher, locator)
4240
4241 locator = new Locator(locator, 'css')
4242
4243 return matcher.locator(buildLocatorString(locator)).first()
4244}
4245
4246async function getVisibleElements(elements) {
4247 const visibleElements = []

Callers

nothing calls this directly

Calls 2

buildLocatorStringFunction · 0.85
firstMethod · 0.45

Tested by

no test coverage detected