I am wondering if anyone knows how to pass an html string into headless chrome. I am using PHP.
I need to take a screenshot of some html i am getting from a database so i cannot use a URL.
The method to get a URL is
$page = $browser->createPage();
$page->navigate('https://www.google.co.uk')->waitForNavigation();
$path = public_path() . "/chrome_files";
$file = "/" . date('Ymdhis') . "_screen.jpg";
// screenshot - Say "Cheese"!