(element)
| 3407 | } |
| 3408 | |
| 3409 | async function elementSelected(element) { |
| 3410 | const type = await element.getProperty('type').then(el => el.jsonValue()) |
| 3411 | |
| 3412 | if (type === 'checkbox' || type === 'radio') { |
| 3413 | return element.getProperty('checked').then(el => el.jsonValue()) |
| 3414 | } |
| 3415 | return element.getProperty('selected').then(el => el.jsonValue()) |
| 3416 | } |
| 3417 | |
| 3418 | function isFrameLocator(locator) { |
| 3419 | locator = new Locator(locator) |
no test coverage detected