I have a laravel app that is using symfony/panther to scrape js loaded web pages.
Upon running, I always get a timeout exception Facebook \ WebDriver \ Exception \ TimeoutException at the waitFor() method.
I've tried increasing the max_execution_time in my php.ini file and also tried doing this in a queue, but I still get the same error
To test I'm using a livewire component
public function handle()
{
$client = Client::createChromeClient(base_path("drivers/chromedriver"), null, ["port" => 9080]); // create a chrome client
$crawler = $client->request('GET', 'https://example.com');
$client->waitFor('h1'); // Fails here ***********
$crawler->filter('h1')->text();
}
Any ideas what could solve this timeout exception? Thanks!