Clusteer
Github Repo
  • โšกIntroduction
  • ๐ŸŽ‰Support
  • Getting Started
    • ๐Ÿ†Benchmarks
    • ๐Ÿš€Installation
      • Docker
      • Laravel Sail (Docker)
    • โœจStarting the server
    • ๐Ÿ™ŒBasic example
  • Client commands
    • ๐Ÿ˜Cookies
    • ๐ŸžDebug console
    • ๐Ÿ‘จโ€๐ŸŽจ Screenshot
    • ๐ŸงตRequest metadata
    • โŒšWaiting for requests
  • Actions
    • #๏ธโƒฃ Keyboard commands
    • ๐ŸMouse commands
  • Advanced
    • ๐ŸŽ€Custom Script
    • ๐Ÿ‘ฉโ€๐Ÿš€ Custom Actions
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Client commands

Waiting for requests

By default, Puppeteer tells the browser to not wait for all the requests to be ran. Sometimes, you might want to wait for all of the requests to be ready:

$clusteer = Clusteer::to('https://example.com')
    ->waitUntilAllRequestsFinish()
    ->withHtml()
    ->get();

If you want to see the triggered requests, call withTriggeredRequests():

$clusteer = Clusteer::to('https://example.com')
    ->waitUntilAllRequestsFinish()
    ->withTriggeredRequests()
    ->get();
$requests = $clusteer->getTriggeredRequests();
PreviousRequest metadataNext#๏ธโƒฃ Keyboard commands

Last updated 3 years ago

Was this helpful?

โŒš