1# Copyright 2013 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from telemetry.core import browser 6from telemetry.core.backends.chrome import cros_browser_backend 7 8 9class CrOSBrowserWithOOBE(browser.Browser): 10 """Cros-specific browser.""" 11 def __init__(self, backend, platform_backend, archive_path, 12 append_to_existing_wpr, make_javascript_deterministic, 13 credentials_path): 14 assert isinstance(backend, cros_browser_backend.CrOSBrowserBackend) 15 super(CrOSBrowserWithOOBE, self).__init__(backend, 16 platform_backend, 17 archive_path, 18 append_to_existing_wpr, 19 make_javascript_deterministic, 20 credentials_path) 21 22 @property 23 def oobe(self): 24 """The login webui (also serves as ui for screenlock and 25 out-of-box-experience). 26 """ 27 return self._browser_backend.oobe 28 29 @property 30 def oobe_exists(self): 31 """True if the login/oobe/screenlock webui exists. This is more lightweight 32 than accessing the oobe property. 33 """ 34 return self._browser_backend.oobe_exists 35