An NDoc Documented Class Library |
|
DefaultSelenium.CaptureEntirePageScreenshotToString Method
Downloads a screenshot of the browser current window canvas to a based 64 encoded PNG file. The entire 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.
public
string 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).
Return Value
The base 64 encoded string of the page screenshot (PNG file)
Implements
ISelenium.CaptureEntirePageScreenshotToString
See Also
DefaultSelenium Class | Selenium Namespace