Skip to content

Commit

Permalink
Update takeScreenshot() parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamara committed Mar 24, 2024
1 parent 6ebe51f commit e7be797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/BrowserScrape.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion storage/app/NewCrawler2024.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e7be797

Please sign in to comment.