php-chrome-html2pdf icon indicating copy to clipboard operation
php-chrome-html2pdf copied to clipboard

WaitForFunction

Open fduarte42 opened this issue 6 years ago • 1 comments

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")' );

fduarte42 avatar Aug 20 '19 17:08 fduarte42

Thanks for the suggestion. Ideally we would provide a generic API to access Puppeteer functions. Will think about how this could be implemented.

spiritix avatar Aug 21 '19 11:08 spiritix