[Developer Toolbar] Running "screenshot" command should only make a screenshot of the selected element, not the whole viewport

RESOLVED WORKSFORME

Status

()

Firefox
Developer Tools: Graphic Commandline and Toolbar
RESOLVED WORKSFORME
6 years ago
5 years ago

People

(Reporter: jaws, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

STR:
1) Open the Developer Toolbar
2) Go to https://bugzilla.mozilla.org/show_bug.cgi?id=767669
3) Run this command: screenshot test.png 50ms false #header

Expected results:
The screenshot located at /Downloads/test.png should only show the Bugzilla #header element.

Actual results:
The screenshot shows the viewport.
Component: Developer Tools: Console → Developer Tools: Graphic Commandline and Toolbar
The problem could be in the syntax of the command. In order to save a section of the screen, it's best to use the --selector option:

>> screenshot --selector #header

I'm guessing this report came from watching Kevin's screencast that used a syntax like this (which was tweaked quite quickly afterwards)

Please re-open if I misunderstand.
Thanks,
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.