(portId: number, msg: any)
| 29 | } |
| 30 | |
| 31 | postMessageToPort(portId: number, msg: any) { |
| 32 | browser.executeScript((portIdParam, msgParam) => { |
| 33 | const ports = window['.ports']; |
| 34 | ports[portIdParam].postMessage(msgParam); |
| 35 | }, portId, msg); |
| 36 | } |
| 37 | |
| 38 | async createMessageChannel(): Promise<[number, number]> { |
| 39 | return browser.executeScript(() => { |
nothing calls this directly
no test coverage detected