diff --git a/app/Console/Commands/BrowserScrape.php b/app/Console/Commands/BrowserScrape.php index e042e58..7ba544f 100644 --- a/app/Console/Commands/BrowserScrape.php +++ b/app/Console/Commands/BrowserScrape.php @@ -90,7 +90,7 @@ public function handle() $preferences->click(); $element = $crawler->filterXPath('//h3[text()="1. Kenneth Branagh"]'); $element->click(); - $this->client->takeScreenshot($saveAs = 'screenshot.jpg'); + $this->client->takeScreenshot('screenshot.jpg'); return 0; diff --git a/storage/app/NewCrawler2024.php b/storage/app/NewCrawler2024.php index e4517cf..6828fee 100644 --- a/storage/app/NewCrawler2024.php +++ b/storage/app/NewCrawler2024.php @@ -92,7 +92,7 @@ public function handle() $preferences->click(); $element = $crawler->filterXPath('//h3[text()="1. Kenneth Branagh"]'); $element->click(); - $this->client->takeScreenshot($saveAs = 'screenshot.jpg'); + $this->client->takeScreenshot('screenshot.jpg'); return 0; }