OLD | NEW |
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 Loading... |
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 Loading... |
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() |
OLD | NEW |