Getting element that doesnt exist returns JavaScriptError instead of NoSuchElementError

RESOLVED FIXED in Firefox 57

Status

Testing
Marionette
RESOLVED FIXED
10 months ago
10 months ago

People

(Reporter: automatedtester, Assigned: automatedtester)

Tracking

Version 3
mozilla57
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(firefox57 fixed)

Details

MozReview Requests

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Assignee)

Description

10 months ago
We should return the right error type of NoSuchElementError
Comment hidden (mozreview-request)

Comment 2

10 months ago
mozreview-review
Comment on attachment 8894014 [details]
Bug 1387644 - Return NoSuchElementError when element is not found

https://reviewboard.mozilla.org/r/165096/#review170468

::: testing/marionette/element.js:164
(Diff revision 1)
>     * @throws {JavaScriptError}
>     *     If the provided reference is unknown.

Update API docs too.
Attachment #8894014 - Flags: review?(ato) → review+
Comment hidden (mozreview-request)
(Assignee)

Updated

10 months ago
Blocks: 1376625
Comment hidden (mozreview-request)

Comment 5

10 months ago
Pushed by dburns@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7aa15d0d0ad4
Return NoSuchElementError when element is not found r=ato

Comment 6

10 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/7aa15d0d0ad4
Status: NEW → RESOLVED
Last Resolved: 10 months ago
status-firefox57: --- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.