The Firefox source docs tell how to take a screenshot with the developer tools
Using the screenshot icon
By default, the screenshot icon is not enabled. To enable it:
visit the Settings page
find the section labeled “Available Toolbox Buttons”
check the box labeled “Take a screenshot of the entire page”.
Using the screenshot command
Type :screenshot in the Web Console to create a screenshot of the
current page. By default, the image file will be named Screen Shot
yyy-mm-dd at hh.mm.ss.png.
Helpful params
Command |
Type |
Description |
--clipboard |
boolean |
When present, this parameter will cause the screenshot to be copied to the clipboard. Prevents saving to a file unless you use the --file option to force file writing. |
--delay |
number |
The number of seconds to delay before taking the screenshot; you can use an integer or floating point number. This is useful if you want to pop open a menu or invoke a hover state for the screenshot. |
--dpr |
number |
The device pixel ratio to use when taking the screenshot. Values above 1 yield “zoomed-in” images, whereas values below 1 create “zoomed-out” images. |
--file |
boolean |
When present, the screenshot will be saved to a file, even if other options (e.g. --clipboard) are included. |
--filename |
string |
The name to use in saving the file. The file should have a “.png” extension. |
--fullpage |
boolean |
If included, the full webpage will be saved. With this parameter, even the parts of the webpage which are outside the current bounds of the window will be included in the screenshot. When used, "-fullpage” will be appended to the file name. |
--selector |
string |
A CSS selector that selects a single element on the page. When supplied, only this element and its descendants will be included in the screenshot. |