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.internal.backends.chrome import cros_browser_backend 6from telemetry.internal.browser import browser 7 8 9class CrOSBrowserWithOOBE(browser.Browser): 10 """Cros-specific browser.""" 11 def __init__(self, backend, platform_backend, credentials_path): 12 assert isinstance(backend, cros_browser_backend.CrOSBrowserBackend) 13 super(CrOSBrowserWithOOBE, self).__init__( 14 backend, platform_backend, credentials_path) 15 16 @property 17 def oobe(self): 18 """The login webui (also serves as ui for screenlock and 19 out-of-box-experience). 20 """ 21 return self._browser_backend.oobe 22 23 @property 24 def oobe_exists(self): 25 """True if the login/oobe/screenlock webui exists. This is more lightweight 26 than accessing the oobe property. 27 """ 28 return self._browser_backend.oobe_exists 29