Thank you Gareth. The debugging process yesterday reminds me of the dark
days writing marionette tests, found that exactly all of the errors
including the one you resolved in the email are the same with the errors I
encountered 3 months ago, and I just couldn't recall it until now. Is it
possible to have a marionette test template with detailed comments about
how and when we should use what kind of API to write tests?

On Wed, Dec 9, 2015 at 3:48 PM, Gareth Aye <[email protected]> wrote:

> So if you're writing a simple test and crashing gecko in the near future,
> check the gecko logs and also make sure that you have the correct
> accessibility stuff!
>
> On Wed, Dec 9, 2015 at 3:39 PM, Gareth Aye <[email protected]> wrote:
>
>> I just debugged what was going on and found that
>>
>> 1449692934326 Marionette DEBUG conn2 <- Response {id: 33, error:
>> {"error":"element not accessible","message":"Element is not currently
>> visible via the accessibility API and may not be manipulated by it -> id:
>> light, tagName: DIV, className: red\n","stacktrace":null}, body: null}
>>
>> was being thrown by the marionette server and crashing gecko. The reason
>> for that was that my traffic light app didn't have the appropriate
>> accessibility designations. Calling marionette.client() with the options
>>
>> { desiredCapabilities: { raisesAccessibilityExceptions: false } }
>>
>> prevents that from happening. Getting marionette server logs from
>> marionette-js-runner was the key to debugging that fwiw.
>>
>> Cheers,
>> Gareth
>>
>
>
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos
>
>


-- 
Yi-Fan
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to