Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: tools/telemetry_auto/examples/login_test.py

Issue 11412238: Proof of concept for running extension API stack through dev tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698