You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
I'm trying to push a button, then a video loads and then I want to be able to "log" what the next requests are... Is this possible and how?
Current code I have:
$puppeteer = newPuppeteer(['read_timeout' => 130, 'log_browser_console' => true]);
$browser = $puppeteer->launch();
$page = $browser->newPage();
// Load the website$page->goto('http://example.com', ['waitUntill' => 'networkidle2']);
// execute the javascript to click an element$page->click('#PlayerZone > div.placeholder__wrapper > div.player__placeholder.lozad > i > svg');
// Get the response headers// Close the browser$browser->close();
I hope this is possible and someone is able to help me here!
Kindest regards
Robin
The text was updated successfully, but these errors were encountered:
nesk
transferred this issue from rialto-php/rialto
Apr 3, 2019
Another solution could be writing the logs to a file, but PuPHPeteer will not allow you to require a module (like fs) until this issue is fixed.
The only thing that could work today is listening to the request event and inside your callback you log the request with console.log. By enabling the log_node_console option you will receive the logged data in your logger.
Hi,
I'm trying to push a button, then a video loads and then I want to be able to "log" what the next requests are... Is this possible and how?
Current code I have:
I hope this is possible and someone is able to help me here!
Kindest regards
Robin
The text was updated successfully, but these errors were encountered: