WebDriver/Marionette: Difference between revisions

Line 81: Line 81:
Classes derived from MarionetteTestCase have the following methods and properties:
Classes derived from MarionetteTestCase have the following methods and properties:


* '''self.marionette''':  a Marionette instance, on which you can call any methods of the Marionette Client API
* '''self.marionette''':  a <code>Marionette</code> instance, on which you can call any methods of the [[Auto-tools/Projects/Marionette/Marionette_Client_API|Marionette Client API]]
* '''self.marionette.emulator''':  a Marionette <code>Emulator</code> instance, if the tests are being run on an emulator, which allow you to interact directly with the emulator.  See https://github.com/jonallengriffin/marionette_client/blob/master/marionette/emulator.py for available emulator methods.
* '''self.marionette.emulator.battery''': an <code>EmulatorBattery instance</code>, for tests running in an emulator, that allows you to interact with the emulator's battery.  See https://github.com/jonallengriffin/marionette_client/blob/master/marionette/emulator_battery.py for a list of available methods.
* Python unittest assertion and other methods, documented at http://docs.python.org/library/unittest.html#test-cases


=== Writing Content Tests ===
=== Writing Content Tests ===
Confirmed users
1,905

edits