Closed Bug 1687915 Opened 5 years ago Closed 5 years ago

Display a warning message when the --selector argument passed to :screenshot does not match any node

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce

  1. Open the console on this page
  2. Evaluate :screenshot --selector #this-element-does-not-exist

Expected results

A warning message is displayed to tell me there's no matching element the selector

Actual results

Nothing is displayed at all, which can be confusing for the user


Severity: -- → S3
Priority: -- → P3
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

When the selector doesn't return any node, we log a warning on the page.
A test case is added in browser_jsterm_screenshot_command_selector.js to ensure
this works as expected.

Depends on D102597

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/56767936e906 [devtools] Display a warning message when the --selector argument passed to :screenshot does not match any node. r=ladybenko.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: