(regex, initiator)
| 21 | }); |
| 22 | |
| 23 | function findFrameInInitiator(regex, initiator) { |
| 24 | const frame = initiator.stack.callFrames.find((it) => { |
| 25 | return regex.test(it.url); |
| 26 | }); |
| 27 | return frame; |
| 28 | } |
| 29 | |
| 30 | async function test() { |
| 31 | await session.post('Network.enable'); |