(target)
| 119 | } |
| 120 | |
| 121 | async function assertFocused(target) { |
| 122 | const focused = await target.evaluate(isActive) |
| 123 | if (!focused) { |
| 124 | throw new Error('fillField: rich editor target did not accept focus. Locator must point at the visible editor surface (a wrapper, iframe, or contenteditable) — not a hidden backing element.') |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | async function findMarked(helper) { |
| 129 | const root = helper.page || helper.browser |
no test coverage detected