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

Side by Side Diff: components/test/data/password_manager/websitetest.py

Issue 386423002: Allow the test bots to easily run the password manager python tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « components/test/data/password_manager/tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 """WebsiteTest testing class.""" 5 """WebsiteTest testing class."""
6 6
7 import logging 7 import logging
8 import sys
8 import time 9 import time
9 10
11 sys.path.insert(0, '../../../../third_party/webdriver/pylib/')
12
10 from selenium.webdriver.common.action_chains import ActionChains 13 from selenium.webdriver.common.action_chains import ActionChains
11 from selenium.webdriver.common.keys import Keys 14 from selenium.webdriver.common.keys import Keys
12 15
13 import environment 16 import environment
14 17
15 18
16 def _IsOneSubstringOfAnother(s1, s2): 19 def _IsOneSubstringOfAnother(s1, s2):
17 """Checks if one of the string arguements is substring of the other. 20 """Checks if one of the string arguements is substring of the other.
18 21
19 Args: 22 Args:
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 402
400 self.LoginWhenNotAutofilled() 403 self.LoginWhenNotAutofilled()
401 self.Wait(2) 404 self.Wait(2)
402 self.environment.SwitchToInternals() 405 self.environment.SwitchToInternals()
403 self.environment.CheckForNewMessage( 406 self.environment.CheckForNewMessage(
404 environment.MESSAGE_ASK, 407 environment.MESSAGE_ASK,
405 True, 408 True,
406 "Error: password manager thinks that a login with wrong password was " 409 "Error: password manager thinks that a login with wrong password was "
407 "successful for the following website : %s \n" % self.name) 410 "successful for the following website : %s \n" % self.name)
408 self.environment.SwitchFromInternals() 411 self.environment.SwitchFromInternals()
OLDNEW
« no previous file with comments | « components/test/data/password_manager/tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698