Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 22, 2023
1 parent d6bde81 commit 251d028
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Browsershot.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ public function save(string $targetPath): void
public function bodyHtml(): string
{
$command = $this->createBodyHtmlCommand();

$html = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -607,6 +608,7 @@ public function bodyHtml(): string
public function base64Screenshot(): string
{
$command = $this->createScreenshotCommand();

$encodedImage = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -617,6 +619,7 @@ public function base64Screenshot(): string
public function screenshot(): string
{
$command = $this->createScreenshotCommand();

$encodedImage = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -628,6 +631,7 @@ public function screenshot(): string
public function pdf(): string
{
$command = $this->createPdfCommand();

$encodedPdf = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -638,6 +642,7 @@ public function pdf(): string
public function savePdf(string $targetPath)
{
$command = $this->createPdfCommand($targetPath);

$output = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -650,6 +655,7 @@ public function savePdf(string $targetPath)
public function base64pdf(): string
{
$command = $this->createPdfCommand();

$encodedPdf = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -660,6 +666,7 @@ public function base64pdf(): string
public function evaluate(string $pageFunction): string
{
$command = $this->createEvaluateCommand($pageFunction);

$evaluation = $this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand All @@ -679,6 +686,7 @@ public function triggeredRequests(): ?array
}

$command = $this->createTriggeredRequestsListCommand();

$this->callBrowser($command);

$this->cleanupTemporaryHtmlFile();
Expand Down

0 comments on commit 251d028

Please sign in to comment.