Here, we see that the system returns that a Marionette session is running.

The command "marionette.execute_script()" can embed JavaScript commands, which can then run on B2G's Gecko platform. Using this, you can see which DOM elements return HTMLElement objects and available attributes and methods: