(method, params)
| 55 | const { targetId } = await send('Target.createTarget', { url: 'about:blank' }); |
| 56 | const { sessionId } = await send('Target.attachToTarget', { targetId, flatten: true }); |
| 57 | const page = (method, params) => send(method, params, sessionId); |
| 58 | const evaluate = async expression => { |
| 59 | const result = await page('Runtime.evaluate', { expression, returnByValue: true, awaitPromise: true, userGesture: true }); |
| 60 | assert(!result.exceptionDetails, JSON.stringify(result.exceptionDetails)); |
no test coverage detected