From b14cde06054c3a51fcfd4b70a5f852edf25b2ec8 Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen Date: Fri, 26 Aug 2016 19:02:33 +0100 Subject: [PATCH] Bug 1298454 - Use element.makeWebElement instead of manually creating web element; r=automatedtester MozReview-Commit-ID: 83W3e6mWqYJ --HG-- extra : rebase_source : ce3ca019ef62573827a790145fe8bb4660b14bc8 --- testing/marionette/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/marionette/element.js b/testing/marionette/element.js index 4c079c87ecb4..58a252bd9646 100644 --- a/testing/marionette/element.js +++ b/testing/marionette/element.js @@ -738,7 +738,7 @@ element.toJson = function(obj, seenEls) { // HTMLElement else if ("nodeType" in obj && obj.nodeType == 1) { let uuid = seenEls.add(obj); - return {[element.Key]: uuid, [element.LegacyKey]: uuid}; + return element.makeWebElement(uuid); } // arbitrary objects + files