(driver, status, reason)
| 37 | } |
| 38 | |
| 39 | async function setSessionStatus(driver, status, reason) { |
| 40 | const command = { |
| 41 | action: 'setSessionStatus', |
| 42 | arguments: { status, reason } |
| 43 | } |
| 44 | |
| 45 | try { |
| 46 | await driver.executeScript( |
| 47 | `browserstack_executor: ${JSON.stringify(command)}` |
| 48 | ) |
| 49 | } catch { |
| 50 | // No-op when executor is unavailable. |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | async function run() { |
| 55 | let driver |
no outgoing calls
no test coverage detected
searching dependent graphs…