File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ public function getFullPageClip(int $timeout = null): Clip
435435 * - format: "png"|"jpg" default "png"
436436 * - quality: number from 0 to 100. Only for jpegs
437437 * - clip: instance of a Clip to choose an area for the screenshot
438+ * - captureBeyondViewport: whether to capture the screenshot beyond the viewport. Defaults to false
438439 *
439440 * @return PageScreenshot
440441 * @throws CommunicationException
@@ -445,6 +446,10 @@ public function screenshot(array $options = []): PageScreenshot
445446
446447 $ screenshotOptions = [];
447448
449+ if (array_key_exists ('captureBeyondViewport ' , $ options )) {
450+ $ screenshotOptions ['captureBeyondViewport ' ] = $ options ['captureBeyondViewport ' ];
451+ }
452+
448453 // get format
449454 if (array_key_exists ('format ' , $ options )) {
450455 $ screenshotOptions ['format ' ] = $ options ['format ' ];
You can’t perform that action at this time.
0 commit comments