(pool: (PlaywrightChrome | null)[])
| 128 | }; |
| 129 | |
| 130 | const closeDriverPool = async (pool: (PlaywrightChrome | null)[]) => { |
| 131 | if (pool.length === 1) { |
| 132 | await closeDriver(pool[0]); |
| 133 | pool.length = 0; |
| 134 | } else if (pool.length > 0) { |
| 135 | while (pool.length > 0) { |
| 136 | await closeDriver(pool.pop() as PlaywrightChrome); |
| 137 | } |
| 138 | } |
| 139 | }; |
| 140 | |
| 141 | function chromeNotInstalledError() { |
| 142 | getBotasaurusStorage().setItem("isChromeInstalled", false ) |
no test coverage detected