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

Side by Side Diff: components/test/data/password_manager/automated_tests/tests.py

Issue 1090853002: [Password manager tests automation] Fix yahoo website tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_runner_test
Patch Set: Created 5 years, 8 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 | « no previous file | 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 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Automated tests for many websites""" 6 """Automated tests for many websites"""
7 7
8 import argparse 8 import argparse
9 9
10 from environment import Environment 10 from environment import Environment
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 self.FillUsernameInto("[name='log']") 183 self.FillUsernameInto("[name='log']")
184 self.FillPasswordInto("[name='pwd']") 184 self.FillPasswordInto("[name='pwd']")
185 self.Submit("[name='pwd']") 185 self.Submit("[name='pwd']")
186 186
187 187
188 188
189 class Yahoo(WebsiteTest): 189 class Yahoo(WebsiteTest):
190 190
191 def Login(self): 191 def Login(self):
192 self.GoTo("https://login.yahoo.com") 192 self.GoTo("https://login.yahoo.com")
193 self.FillUsernameInto("#username") 193 self.FillUsernameInto("#login-username")
194 self.FillPasswordInto("#passwd") 194 self.FillPasswordInto("#login-passwd")
195 self.Submit("#passwd") 195 self.Click("#login-signin")
196 196
197 197
198 class Yandex(WebsiteTest): 198 class Yandex(WebsiteTest):
199 199
200 def Login(self): 200 def Login(self):
201 self.GoTo("https://mail.yandex.com") 201 self.GoTo("https://mail.yandex.com")
202 self.FillUsernameInto("#b-mail-domik-username11") 202 self.FillUsernameInto("#b-mail-domik-username11")
203 self.FillPasswordInto("#b-mail-domik-password11") 203 self.FillPasswordInto("#b-mail-domik-password11")
204 self.Click(".b-mail-button__button") 204 self.Click(".b-mail-button__button")
205 205
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 for test_case in test_cases_to_run: 589 for test_case in test_cases_to_run:
590 tests_results = RunTest( 590 tests_results = RunTest(
591 args.chrome_path, args.chromedriver_path, args.profile_path, 591 args.chrome_path, args.chromedriver_path, args.profile_path,
592 args.passwords_path, args.website, test_case) 592 args.passwords_path, args.website, test_case)
593 593
594 594
595 SaveResults(tests_results, save_path, save_only_fails=args.save_only_fails) 595 SaveResults(tests_results, save_path, save_only_fails=args.save_only_fails)
596 596
597 if __name__ == "__main__": 597 if __name__ == "__main__":
598 main() 598 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698