spiritix / php-chrome-html2pdf

A PHP library for converting HTML to PDF using Google Chrome
MIT License
112 stars 29 forks source link

WaitForFunction #10

Open fduarte42 opened 5 years ago

fduarte42 commented 5 years ago

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

spiritix commented 5 years ago

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