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

Side by Side Diff: chrome/test/functional/test_utils.py

Issue 10413016: It seems GAIA had changed dosserver rules today, so we can go back to accounts.google.com. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months 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
« no previous file with comments | « chrome/test/functional/passwords.py ('k') | remoting/webapp/manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
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 copy 5 import copy
6 import ctypes 6 import ctypes
7 import email 7 import email
8 import logging 8 import logging
9 import os 9 import os
10 import platform 10 import platform
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 Attempts to login to Google by entering the username/password into the google 74 Attempts to login to Google by entering the username/password into the google
75 login page and click submit button. 75 login page and click submit button.
76 76
77 Args: 77 Args:
78 test: derived from pyauto.PyUITest - base class for UI test cases. 78 test: derived from pyauto.PyUITest - base class for UI test cases.
79 username: users login input. 79 username: users login input.
80 password: users login password input. 80 password: users login password input.
81 tab_index: The tab index, default is 0. 81 tab_index: The tab index, default is 0.
82 windex: The window index, default is 0. 82 windex: The window index, default is 0.
83 """ 83 """
84 test.NavigateToURL('https://www.google.com/accounts/', windex, tab_index) 84 test.NavigateToURL('https://accounts.google.com/', windex, tab_index)
85 email_id = 'document.getElementById("Email").value = "%s"; ' \ 85 email_id = 'document.getElementById("Email").value = "%s"; ' \
86 'window.domAutomationController.send("done")' % username 86 'window.domAutomationController.send("done")' % username
87 password = 'document.getElementById("Passwd").value = "%s"; ' \ 87 password = 'document.getElementById("Passwd").value = "%s"; ' \
88 'window.domAutomationController.send("done")' % password 88 'window.domAutomationController.send("done")' % password
89 test.ExecuteJavascript(email_id, tab_index, windex) 89 test.ExecuteJavascript(email_id, tab_index, windex)
90 test.ExecuteJavascript(password, tab_index, windex) 90 test.ExecuteJavascript(password, tab_index, windex)
91 test.assertTrue(test.SubmitForm('gaia_loginform', tab_index, windex)) 91 test.assertTrue(test.SubmitForm('gaia_loginform', tab_index, windex))
92 92
93 93
94 def VerifyGoogleAccountCredsFilled(test, username, password, tab_index=0, 94 def VerifyGoogleAccountCredsFilled(test, username, password, tab_index=0,
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 test: Derived from pyauto.PyUITest - base class for UI test cases. 416 test: Derived from pyauto.PyUITest - base class for UI test cases.
417 infobar_type: The infobar type to look for. 417 infobar_type: The infobar type to look for.
418 windex: Window index. Defaults to 0 (first window). 418 windex: Window index. Defaults to 0 (first window).
419 tab_index: Tab index. Defaults to 0 (first tab). 419 tab_index: Tab index. Defaults to 0 (first tab).
420 """ 420 """
421 test.assertFalse( 421 test.assertFalse(
422 test.WaitUntil(lambda: GetInfobarIndexByType( 422 test.WaitUntil(lambda: GetInfobarIndexByType(
423 test, infobar_type, windex, tab_index) is not None, timeout=20), 423 test, infobar_type, windex, tab_index) is not None, timeout=20),
424 msg=('Infobar type for %s appeared when it should be hidden.' 424 msg=('Infobar type for %s appeared when it should be hidden.'
425 % infobar_type)) 425 % infobar_type))
OLDNEW
« no previous file with comments | « chrome/test/functional/passwords.py ('k') | remoting/webapp/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698