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

Function isElementChecked

lib/helper/WebDriver.js:3227–3234  ·  view source on GitHub ↗
(browser, elementId)

Source from the content-addressed store, hash-verified

3225}
3226
3227async function isElementChecked(browser, elementId) {
3228 let isChecked = await browser.isElementSelected(elementId)
3229 if (!isChecked) {
3230 const ariaChecked = await browser.getElementAttribute(elementId, 'aria-checked')
3231 isChecked = ariaChecked === 'true'
3232 }
3233 return isChecked
3234}
3235
3236async function findCheckable(locator, locateFn) {
3237 let els

Callers 3

checkOptionMethod · 0.85
uncheckOptionMethod · 0.85
proceedSeeCheckboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected