()
| 139 | throwIfStopped(); |
| 140 | |
| 141 | function search() { |
| 142 | const candidates = document.querySelectorAll(containerSelector); |
| 143 | for (const el of candidates) { |
| 144 | if (textPattern.test(el.textContent)) { |
| 145 | return el; |
| 146 | } |
| 147 | } |
| 148 | return null; |
| 149 | } |
| 150 | |
| 151 | const existing = search(); |
| 152 | if (existing) { |
no outgoing calls
no test coverage detected