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

Function toLocatorConfig

lib/helper/Puppeteer.js:3588–3592  ·  view source on GitHub ↗
(locator, key)

Source from the content-addressed store, hash-verified

3586}
3587
3588function toLocatorConfig(locator, key) {
3589 const matchedLocator = new Locator(locator, key)
3590 if (matchedLocator.locator) return matchedLocator.locator
3591 return { [key]: matchedLocator.value }
3592}
3593
3594function buildRoleSelector(resolved) {
3595 return `::-p-aria([role="${resolved.role}"])`

Callers 1

findByRoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected