Testing_Selenium::captureEntirePageScreenshotToString
Downloads a screenshot of the browser current window canvas to a based 64 encoded PNG file. The <i>entire</i> windows canvas is captured, including parts rendered outside of the current view port.
Currently this only works in Mozilla and when running in chrome mode.
Signature
public function captureEntirePageScreenshotToString(string
$kwargs )
Parameters
-
$kwargs
- A kwargs string that modifies the way the screenshot is captured. Example: "background=#CCFFDD". This may be useful to set for capturing screenshots of less-than-ideal layouts, for example where absolute positioning causes the calculation of the canvas dimension to fail and a black background is exposed (possibly obscuring black text).
Returns
- string
- The base 64 encoded string of the page screenshot (PNG file)