Closed Bug 767675 Opened 12 years ago Closed 11 years ago

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

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jaws, Unassigned)

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
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.