def __init__(self, marionette, window_handle): super(BaseWindow, self).__init__(marionette) self._l10n = L10n(self.marionette) self._windows = Windows(self.marionette) if window_handle not in self.marionette.chrome_window_handles: raise errors.UnknownWindowError( 'Window with handle "%s" does not exist' % window_handle) self._handle = window_handle
def __init__(self, marionette_getter, window_handle): BaseLib.__init__(self, marionette_getter) self._l10n = L10n(self.get_marionette) self._prefs = Preferences(self.get_marionette) self._windows = Windows(self.get_marionette) if window_handle not in self.marionette.chrome_window_handles: raise errors.UnknownWindowError( 'Window with handle "%s" does not exist' % window_handle) self._handle = window_handle
def setUp(self): FirefoxTestCase.setUp(self) self.l10n = L10n(lambda: self.marionette)
def setUp(self): super(TestL10n, self).setUp() self.l10n = L10n(self.marionette)