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

Function filterFieldsBySelectionState

lib/helper/Puppeteer.js:3398–3407  ·  view source on GitHub ↗
(elements, state)

Source from the content-addressed store, hash-verified

3396}
3397
3398async function filterFieldsBySelectionState(elements, state) {
3399 const matches = []
3400 for (const element of elements) {
3401 const isSelected = await elementSelected(element)
3402 if (isSelected === state) {
3403 matches.push(element)
3404 }
3405 }
3406 return matches
3407}
3408
3409async function elementSelected(element) {
3410 const type = await element.getProperty('type').then(el => el.jsonValue())

Callers 1

proceedSeeInFieldFunction · 0.70

Calls 2

pushMethod · 0.80
elementSelectedFunction · 0.70

Tested by

no test coverage detected