Closed
Bug 810259
Opened 12 years ago
Closed 12 years ago
Add screenshot support to Marionette
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(firefox18 fixed, firefox19 fixed, firefox20 fixed)
RESOLVED
FIXED
mozilla20
People
(Reporter: davehunt, Assigned: automatedtester)
Details
Attachments
(1 file, 2 obsolete files)
9.14 KB,
patch
|
mdas
:
review+
|
Details | Diff | Splinter Review |
I order to aid debugging of test failures, it would be very helpful to be able to take screenshots using Marionette.
Assignee | ||
Comment 1•12 years ago
|
||
I'll take this and do it now as it can help with trying to do stability work later
Assignee: nobody → dburns
Assignee | ||
Comment 2•12 years ago
|
||
pushed to try https://tbpl.mozilla.org/?tree=Try&rev=73d27cc37de3
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #684155 -
Flags: review?(mdas)
Comment 4•12 years ago
|
||
Comment on attachment 684155 [details] [diff] [review] screenshooting elements Review of attachment 684155 [details] [diff] [review]: ----------------------------------------------------------------- Very cool, but r- for now, since the test_screenshot.py test is missing from the patch! ::: testing/marionette/marionette-listener.js @@ +1090,5 @@ > + * Saves a screenshot and returns a Base64 string > + */ > +function screenShot(msg) { > + let node = null; > + if (msg.json.element) { extra whitespace at the end @@ +1098,5 @@ > + catch (e) { > + sendResponse(e.message, e.code, e.stack); > + return; > + } > + } same here @@ +1107,5 @@ > + > + var document = curWindow.document; > + var rect, win, width, height, left, top, needsOffset; > + // node can be either a window or an arbitrary DOM node > + try { instead of using try/catch, can you just do if (node == curWindow) {...} else{...}? It's safer and clearer than just catching any error and trying the node as a window
Attachment #684155 -
Flags: review?(mdas) → review-
Comment 5•12 years ago
|
||
Try run for 73d27cc37de3 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=73d27cc37de3 Results (out of 13 total builds): success: 12 warnings: 1 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/dburns@mozilla.com-73d27cc37de3
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #684155 -
Attachment is obsolete: true
Attachment #687128 -
Flags: review?(mdas)
Assignee | ||
Comment 7•12 years ago
|
||
Forgot about one of the comments so adding it it now.
Attachment #687128 -
Attachment is obsolete: true
Attachment #687128 -
Flags: review?(mdas)
Attachment #687213 -
Flags: review?
Assignee | ||
Updated•12 years ago
|
Attachment #687213 -
Flags: review? → review?(mdas)
Updated•12 years ago
|
Attachment #687213 -
Flags: review?(mdas) → review+
Assignee | ||
Comment 8•12 years ago
|
||
landed in https://hg.mozilla.org/integration/mozilla-inbound/rev/78eee87ba496
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/78eee87ba496
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Assignee | ||
Updated•12 years ago
|
Whiteboard: [automation-needed-in-aurora]
Comment 10•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/036243b85532
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Whiteboard: [automation-needed-in-aurora]
Assignee | ||
Updated•12 years ago
|
Whiteboard: [automation-needed-in-beta]
Comment 11•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/dddf1e60170e
status-firefox18:
--- → fixed
Updated•12 years ago
|
Whiteboard: [automation-needed-in-beta]
Comment 12•12 years ago
|
||
Try run for 73d27cc37de3 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=73d27cc37de3 Results (out of 14 total builds): success: 12 warnings: 1 failure: 1 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/dburns@mozilla.com-73d27cc37de3
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•