(pageOrFrame: PageOrFrameWithEvaluate)
| 731 | } |
| 732 | |
| 733 | export async function waitForRAF(pageOrFrame: PageOrFrameWithEvaluate) { |
| 734 | return await pageOrFrame.evaluate(() => { |
| 735 | return new Promise((resolve) => { |
| 736 | requestAnimationFrame(() => { |
| 737 | requestAnimationFrame(resolve); |
| 738 | }); |
| 739 | }); |
| 740 | }); |
| 741 | } |
| 742 | |
| 743 | export async function waitForIFrameLoad( |
| 744 | page: puppeteer.Frame | puppeteer.Page, |
searching dependent graphs…