def enroll_device(self):
     """Enroll device into CFM."""
     self._resource.start_custom_chrome({
         "auto_login": False,
         "disable_gaia_services": False
     })
     enrollment.RemoraEnrollment(self._resource._browser, self._USER_ID,
                                 self._PWD)
     # Timeout to allow for the device to stablize and go back to the
     # login screen before proceeding.
     time.sleep(self._ENROLLMENT_DELAY)
예제 #2
0
    def run_once(self):
        user_id, password = utils.get_signin_credentials(
            os.path.join(os.path.dirname(os.path.realpath(__file__)),
                         'credentials.txt'))
        if not (user_id and password):
            logging.warn('No credentials found - exiting test.')
            return

        with chrome.Chrome(auto_login=False,
                           disable_gaia_services=False) as cr:
            enrollment.RemoraEnrollment(cr.browser, user_id, password)
            self.cfm_facade = cfm_facade_native.CFMFacadeNative(cr, 'hotrod')
            self.cfm_facade.check_hangout_extension_context()
예제 #3
0
    def run_once(self):
        user_id, password = utils.get_signin_credentials(
            os.path.join(os.path.dirname(os.path.realpath(__file__)),
                         'credentials.txt'))
        if not (user_id and password):
            logging.warn('No credentials found - exiting test.')
            return

        with chrome.Chrome(auto_login=False) as cr:
            enrollment.RemoraEnrollment(cr.browser, user_id, password)
            # Timeout to allow for the device to stablize and go back to the
            # login screen before proceeding.
            time.sleep(TIMEOUT)

        # This is a workaround fix for crbug.com/495847. A more permanent fix
        # should be to get the hotrod app to auto launch after enrollment.
        with chrome.Chrome(clear_enterprise_policy=False,
                           dont_override_profile=True,
                           disable_gaia_services=False,
                           disable_default_apps=False,
                           auto_login=False) as cr:
            self._CheckHangoutsExtensionContexts(cr.browser)