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

Function isShadow

lib/locator.js:728–731  ·  view source on GitHub ↗

* @private * **Experimental!** Works for WebDriver helper only * * Checks if `locator` is shadow locator. * * Shadow locators are * `{ shadow: ['my-app', 'recipe-hello', 'button'] }` * * @param {{shadow: string[]}} locator * * @returns {boolean}

(locator)

Source from the content-addressed store, hash-verified

726 * @returns {boolean}
727 */
728function isShadow(locator) {
729 const hasShadowProperty = locator.shadow !== undefined && Object.keys(locator).length === 1
730 return hasShadowProperty
731}
732
733/**
734 * @private

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected