OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import logging | 5 import logging |
6 | 6 |
7 import telemetry | 7 import telemetry |
8 from telemetry import util | 8 from telemetry import util |
9 | 9 |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 _SubmitFormAndWait(self.login_form_id, tab) | 103 _SubmitFormAndWait(self.login_form_id, tab) |
104 | 104 |
105 self._logged_in = True | 105 self._logged_in = True |
106 return True | 106 return True |
107 except telemetry.TimeoutException: | 107 except telemetry.TimeoutException: |
108 logging.warning('Timed out while loading: %s', self.url) | 108 logging.warning('Timed out while loading: %s', self.url) |
109 return False | 109 return False |
110 | 110 |
111 def LoginNoLongerNeeded(self, tab): # pylint: disable=W0613 | 111 def LoginNoLongerNeeded(self, tab): # pylint: disable=W0613 |
112 assert self._logged_in | 112 assert self._logged_in |
OLD | NEW |