Closed
Bug 1274924
Opened 9 years ago
Closed 9 years ago
GeckoDriver.getTextFromDialog() throws "TypeError: can't convert null to object"
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox47 affected, firefox48 fixed, firefox49 fixed)
RESOLVED
FIXED
mozilla49
People
(Reporter: jlorenzo, Assigned: jlorenzo)
Details
Attachments
(1 file)
I don't have a reduced test case yet, but I can always repro this failure with this test[1]. If I understand correctly, under a certain set of conditions, `this.dialog.ui` doesn't have a value yet[2]. I proposed a workaround for the Selenium JS client at [3].
I believe, we can just extend the if condition just above[4] to make sure ui is not equal to null. I'll give it a try.
[1] https://github.com/fxbox/foxbox/blob/42c347565b2cbdfd9f453b7b78b234effe841ee3/test/selenium/sessions_ui_test.js#L99 . Failed execution at: https://travis-ci.org/fxbox/foxbox/jobs/131700352#L1482
[2] https://dxr.mozilla.org/mozilla-central/rev/16663eb3dcfa759f25b5e27b101bc79270c156f2/testing/marionette/driver.js#2513
[3] https://github.com/SeleniumHQ/selenium/pull/2137
[4] https://dxr.mozilla.org/mozilla-central/rev/16663eb3dcfa759f25b5e27b101bc79270c156f2/testing/marionette/driver.js#2508
Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/54580/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/54580/
Attachment #8755382 -
Flags: review?(dburns)
Assignee | ||
Comment 2•9 years ago
|
||
The following patch works for me locally. What would be the best place to add a test :AutomatedTester?
Assignee | ||
Updated•9 years ago
|
status-firefox48:
--- → affected
status-firefox49:
--- → affected
Comment 3•9 years ago
|
||
Comment on attachment 8755382 [details]
MozReview Request: Bug 1274924 - GeckoDriver.getTextFromDialog() throws "TypeError: can't convert null to object" r=AutomatedTester
https://reviewboard.mozilla.org/r/54580/#review51196
Attachment #8755382 -
Flags: review?(dburns) → review+
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 6•9 years ago
|
||
bugherder uplift |
Comment 7•9 years ago
|
||
bugherder uplift |
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•