def Create(self): if self.finder_options.output_profile_path: raise Exception("Profile generation is not currently supported on Chrome" " OS") browser_options = self.finder_options.browser_options backend = cros_browser_backend.CrOSBrowserBackend( self.browser_type, browser_options, self._cri, self._is_guest, extensions_to_load=self.finder_options.extensions_to_load) platform = cros_platform_backend.CrosPlatformBackend(self._cri) if browser_options.create_browser_with_oobe: return cros_browser_with_oobe.CrOSBrowserWithOOBE(backend, platform) else: return browser.Browser(backend, platform)
def Create(self): if self.finder_options.output_profile_path: raise NotImplementedError( 'Profile generation is not yet supported on CrOS.') browser_options = self.finder_options.browser_options backend = cros_browser_backend.CrOSBrowserBackend( self.browser_type, browser_options, self._cri, self._is_guest, extensions_to_load=self.finder_options.extensions_to_load) if browser_options.create_browser_with_oobe: return cros_browser_with_oobe.CrOSBrowserWithOOBE( backend, self._platform_backend) return browser.Browser(backend, self._platform_backend)
def Create(self): if self.finder_options.output_profile_path: raise NotImplementedError( 'Profile generation is not yet supported on CrOS.') browser_options = self.finder_options.browser_options backend = cros_browser_backend.CrOSBrowserBackend( browser_options, self._platform_backend.cri, self._is_guest, extensions_to_load=self.finder_options.extensions_to_load) if browser_options.create_browser_with_oobe: return cros_browser_with_oobe.CrOSBrowserWithOOBE( backend, self._platform_backend, self._archive_path, self._append_to_existing_wpr, self._make_javascript_deterministic, self._credentials_path) return browser.Browser(backend, self._platform_backend, self._archive_path, self._append_to_existing_wpr, self._make_javascript_deterministic, self._credentials_path)