Closed
Bug 1274550
Opened 7 years ago
Closed 7 years ago
Get Active Element incorrectly returns element reference instead of web element
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox49 fixed)
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: ato, Assigned: ato)
References
(Blocks 1 open bug)
Details
(Keywords: pi-marionette-server)
Attachments
(3 files)
The getActiveElement function in testing/marionette/listener.js incorrectly returns the element’s associated web element reference (UUID) as a string instead of a web element object representation.
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
Making this depend on bug 1274274 as that contains a refactor of the element store we need to use to solve this bug, and because I don’t like conflicts I will address this after that lands.
Assignee | ||
Comment 2•7 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/55430/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/55430/
Attachment #8756823 -
Flags: review?(dburns)
Attachment #8756824 -
Flags: review?(dburns)
Attachment #8756825 -
Flags: review?(dburns)
Assignee | ||
Comment 3•7 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/55432/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/55432/
Assignee | ||
Comment 4•7 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/55434/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/55434/
Comment 5•7 years ago
|
||
Comment on attachment 8756823 [details] MozReview Request: Bug 1274550 - Return web element from Get Active Element; r?automatedtester https://reviewboard.mozilla.org/r/55430/#review52192
Attachment #8756823 -
Flags: review?(dburns) → review+
Updated•7 years ago
|
Attachment #8756824 -
Flags: review?(dburns) → review+
Comment 6•7 years ago
|
||
Comment on attachment 8756824 [details] MozReview Request: Bug 1274550 - Simplify test case for get_active_element; r?automatedtester https://reviewboard.mozilla.org/r/55432/#review52194
Comment 7•7 years ago
|
||
Comment on attachment 8756825 [details] MozReview Request: Bug 1274550 - Make get_active_element in Python client backwards compatible; r?automatedtester https://reviewboard.mozilla.org/r/55434/#review52198 ::: testing/marionette/client/marionette_driver/marionette.py:1682 (Diff revision 1) > > - > def get_active_element(self): > - el = self._send_message("getActiveElement", key="value") > + el_or_ref = self._send_message("getActiveElement", key="value") > + if self.protocol < 3: > - return HTMLElement(self, el) > + return HTMLElement(self, el) This needs to be updated to `el_or_ref`
Attachment #8756825 -
Flags: review?(dburns) → review+
Assignee | ||
Comment 8•7 years ago
|
||
Comment on attachment 8756823 [details] MozReview Request: Bug 1274550 - Return web element from Get Active Element; r?automatedtester Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55430/diff/1-2/
Assignee | ||
Comment 9•7 years ago
|
||
Comment on attachment 8756824 [details] MozReview Request: Bug 1274550 - Simplify test case for get_active_element; r?automatedtester Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55432/diff/1-2/
Assignee | ||
Comment 10•7 years ago
|
||
Comment on attachment 8756825 [details] MozReview Request: Bug 1274550 - Make get_active_element in Python client backwards compatible; r?automatedtester Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55434/diff/1-2/
Assignee | ||
Comment 11•7 years ago
|
||
https://reviewboard.mozilla.org/r/55434/#review52224
Comment 12•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8218106c37b4 https://hg.mozilla.org/integration/mozilla-inbound/rev/cdac1e9c5416 https://hg.mozilla.org/integration/mozilla-inbound/rev/dd558e06d595
Comment 13•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8218106c37b4 https://hg.mozilla.org/mozilla-central/rev/cdac1e9c5416 https://hg.mozilla.org/mozilla-central/rev/dd558e06d595
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Updated•1 month ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•