Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Marionette notes



> mt --setpref marionette.actors.enabled=true -vv --gecko-log -

Fission and useActors

To enable code paths guarded by MarionettePrefs.useActors pass --setpref marionette.actors.enabled=true when running a test.

We are not running with marionette.actors.enabled on CI yet, so we have to check this locally.

Enable logs

By default all logs are hidden. Pass -vv --gecko-log - to enable logging. statements in the code should now show up in the logs.

For webplatform tests, you need to pass --webdriver-arg=-vv.

Workaround missing commands

The executeScript command is not working yet with actors, but a lot of tests rely on it. They use it to gather "expected" values (example

For such tests, simply comment out the execute_script call and find the expected value "manually". Eg. run the test without marionette.actors.enabled, check the value, and then hardcode it in the test (or be creative).


No shared preset for now, but you can set

        - '''awsy ''ship ''base'
        - '''firefox-ui ''debug'
        - '''marionette !gpu ''debug !headless'
        - '''platform ''reftest ''debug'
        - '''platform !reftest ''-5 ''debug'
        - '''wdspec ''debug'
        - '''xpcshell ''debug !qr !spi'
    selector: fuzzy

in ~/.mozbuild/try_presets.yml.

And then ./mach try --preset marionette.

Run wpt reftests using Marionette

./mach wpt testing/web-platform/tests/css/CSS2/colors/color-001.xht --test-types reftest  --setpref marionette.log.level=Trace 
./mach wpt testing/web-platform/tests/css/css-text/writing-system/ --test-types reftest --setpref marionette.log.level=Trace --repeat 10

View WPT tests differences

For local tests you can run with --debug-test for try pushes there's a button on treeherder in the bottom panel

Use debugger with marionette harness unit tests

Pass --app-arg=--jsdebugger & --app-arg=--wait-for-jsdebugger (--app-arg will forward arguments to the APP, here firefox).

mt testing/marionette/harness/marionette_harness/tests/unit/ --setpref marionette.actors.enabled=true -vv --gecko-log - --app-arg=--jsdebugger --app-arg=--wait-for-jsdebugger

Add logs to WPT tests on try

Add - --setpref=marionette.log.level=trace in taskcluster/ci/test/web-platform.yml at

Wait in python tests

import time


Build and copy geckodriver


% cd testing/geckodriver
% cargo build


% cp target/debug/geckodriver objdir.noindex/dist/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment