php-chrome-html2pdf
php-chrome-html2pdf copied to clipboard
WaitForFunction
Hi,
it would be nice to be able to define a "waitForFunction" as an option:
await page.waitForFunction( 'document.querySelector("body").innerText.includes("Hello Ajahne")' );
Thanks for the suggestion. Ideally we would provide a generic API to access Puppeteer functions. Will think about how this could be implemented.