def __init__(self, marionette): BaseLib.__init__(self, marionette) self.app_info = AppInfo(marionette) self._mar_channels = MARChannels(marionette) self._active_update = ActiveUpdate(marionette)
def __init__(self, marionette_getter, element): assert isinstance(element, HTMLElement) BaseLib.__init__(self, marionette_getter) self._element = element self.app_info = AppInfo(marionette_getter) self.utils = Utils(marionette_getter)
def __init__(self, marionette_getter, window, element): assert isinstance(window, BaseWindow) assert isinstance(element, HTMLElement) BaseLib.__init__(self, marionette_getter) self._window = window self._element = element
def __init__(self, marionette): BaseLib.__init__(self, marionette) self.app_info = AppInfo(marionette) self.prefs = Preferences(marionette) self._update_channel = UpdateChannel(marionette) self._mar_channels = MARChannels(marionette) self._active_update = ActiveUpdate(marionette)
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 __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 __init__(self, marionette): BaseLib.__init__(self, marionette) self._ini_file_path = self.marionette.execute_script(""" Components.utils.import('resource://gre/modules/Services.jsm'); let file = Services.dirsvc.get('GreD', Components.interfaces.nsIFile); file.append('update-settings.ini'); return file.path; """)
def __init__(self, *args, **kwargs): BaseLib.__init__(self, *args, **kwargs) self.file_path = self.marionette.execute_script(""" Components.utils.import('resource://gre/modules/Services.jsm'); let file = Services.dirsvc.get('PrfDef', Components.interfaces.nsIFile); file.append('channel-prefs.js'); return file.path; """)
def __init__(self, *args, **kwargs): BaseLib.__init__(self, *args, **kwargs) self._permissions = Permissions(lambda: self.marionette)
def __init__(self, marionette_getter): BaseLib.__init__(self, marionette_getter) GeckoLogParser.__init__(self, self.marionette.instance.gecko_log)
def __init__(self, marionette_getter): BaseLib.__init__(self, marionette_getter) self.app_info = AppInfo(marionette_getter) self.utils = Utils(marionette_getter)