FirefoxTestCase

This is the default testcase class for all Python tests written for firefox-ui-tests. It enhances the MarionetteTestCase by including Firefox Puppeteer support.

Note: Compared to the MarionetteTestCase the FirefoxTestCase automatically sets the `chrome` context. That means by default the tests work in the chrome scope.

Implementation: http://mxr.mozilla.org/mozilla-central/source/testing/puppeteer/firefox/firefox_puppeteer/testcases/base.py

Method overview

restart()

Attributes

Attribute Type Description
self.browser BrowserWindow An instance of the first browser (navigator) window.
self.windows Windows Helper class for handling chrome and content windows.

Methods

restart()

For testing specific behavior of Firefox during a restart, this method can be used. It will trigger an appication inititiated restart of Firefox and automatically restores class attributes to their default values. That means it will switch back to the `chrome` scope, and refreshes the `self.browser` instance with the first found navigator window.

Parameters

None.

Return value

None.

Document Tags and Contributors

 Contributors to this page: Sheppy, PushpitaPikuDey, Whimboo
 Last updated by: Sheppy,