OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 import os |
| 6 import sys |
| 7 |
| 8 sys.path.append(os.path.join(os.path.dirname(__file__), '..')) |
| 9 sys.path.append(os.path.join(os.path.dirname(__file__), |
| 10 '..', '..', 'telemetry')) |
| 11 |
| 12 import telemetry |
| 13 import telemetry_auto |
| 14 |
| 15 def Main(args): |
| 16 options = telemetry.BrowserOptions() |
| 17 parser = options.CreateParser('telemetry_extension_test.py') |
| 18 options, args = parser.parse_args(args) |
| 19 browser_to_create = telemetry.FindBrowser(options) |
| 20 assert browser_to_create |
| 21 with browser_to_create.Create() as b: |
| 22 with telemetry_auto.OobePage(b) as t: |
| 23 t.LoginUser('test@chromium.com', 'test') |
| 24 # Wait until OOBE page goes away, we are logged in aftet that |
| 25 t.WaitUnitGone() |
| 26 |
| 27 print "Done!" |
| 28 return 0 |
| 29 |
| 30 if __name__ == '__main__': |
| 31 sys.exit(Main(sys.argv[1:])) |
OLD | NEW |