Firefox
fullPageScreenshot
Captures a screenshot of the entire page.
Firefox command. More details can be found in the official protocol docs.
Usage
browser.fullPageScreenshot()
Returns
- <String>
screenshot: The base64-encoded PNG image data comprising the screenshot of the full page.
getMozContext
Get the context that is currently in effect, e.g. CHROME or CONTENT.
Firefox command. More details can be found in the official protocol docs.
Usage
browser.getMozContext()
Example
console.log(await browser.getMozContext()); // outputs: 'CHROME'
Returns
- <String>
Context: The browser context, eitherCHROMEorCONTENT