| 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 import logging | 9 import logging |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 class Twitter(WebsiteTest): | 148 class Twitter(WebsiteTest): |
| 149 | 149 |
| 150 def Login(self): | 150 def Login(self): |
| 151 self.GoTo("https:///twitter.com") | 151 self.GoTo("https:///twitter.com") |
| 152 self.FillUsernameInto("#signin-email") | 152 self.FillUsernameInto("#signin-email") |
| 153 self.FillPasswordInto("#signin-password") | 153 self.FillPasswordInto("#signin-password") |
| 154 self.Submit("#signin-password") | 154 self.Submit("#signin-password") |
| 155 | 155 |
| 156 | 156 |
| 157 class Vkontakte(WebsiteTest): |
| 158 |
| 159 def Login(self): |
| 160 self.GoTo("https:///vk.com") |
| 161 self.FillUsernameInto("[name='email']") |
| 162 self.FillPasswordInto("[name='pass']") |
| 163 self.Submit("[name='pass']") |
| 164 |
| 165 |
| 157 class Wikia(WebsiteTest): | 166 class Wikia(WebsiteTest): |
| 158 | 167 |
| 159 def Login(self): | 168 def Login(self): |
| 160 self.GoTo("https://wikia.com"); | 169 self.GoTo("https://wikia.com"); |
| 161 self.Click("#AccountNavigation"); | 170 self.Click("#AccountNavigation"); |
| 162 self.FillUsernameInto("#usernameInput") | 171 self.FillUsernameInto("#usernameInput") |
| 163 self.FillPasswordInto("#passwordInput") | 172 self.FillPasswordInto("#passwordInput") |
| 164 self.Submit("input.login-button") | 173 self.Submit("input.login-button") |
| 165 | 174 |
| 166 | 175 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 "imgur": Imgur("imgur"), | 409 "imgur": Imgur("imgur"), |
| 401 "liveinternet": Liveinternet("liveinternet"), | 410 "liveinternet": Liveinternet("liveinternet"), |
| 402 "linkedin": Linkedin("linkedin"), | 411 "linkedin": Linkedin("linkedin"), |
| 403 "mailru": Mailru("mailru"), | 412 "mailru": Mailru("mailru"), |
| 404 "nytimes": Nytimes("nytimes"), | 413 "nytimes": Nytimes("nytimes"), |
| 405 "odnoklassniki": Odnoklassniki("odnoklassniki"), | 414 "odnoklassniki": Odnoklassniki("odnoklassniki"), |
| 406 "pinterest": Pinterest("pinterest"), | 415 "pinterest": Pinterest("pinterest"), |
| 407 "reddit": Reddit("reddit", username_not_auto=True), | 416 "reddit": Reddit("reddit", username_not_auto=True), |
| 408 "tumblr": Tumblr("tumblr", username_not_auto=True), | 417 "tumblr": Tumblr("tumblr", username_not_auto=True), |
| 409 "twitter": Twitter("twitter"), | 418 "twitter": Twitter("twitter"), |
| 419 "vkontakte": Vkontakte("vkontakte"), |
| 410 "wikia": Wikia("wikia"), | 420 "wikia": Wikia("wikia"), |
| 411 "wikipedia": Wikipedia("wikipedia", username_not_auto=True), | 421 "wikipedia": Wikipedia("wikipedia", username_not_auto=True), |
| 412 "wordpress": Wordpress("wordpress"), | 422 "wordpress": Wordpress("wordpress"), |
| 413 "yahoo": Yahoo("yahoo", username_not_auto=True), | 423 "yahoo": Yahoo("yahoo", username_not_auto=True), |
| 414 "yandex": Yandex("yandex") | 424 "yandex": Yandex("yandex") |
| 415 } | 425 } |
| 416 | 426 |
| 417 disabled_tests = { | 427 disabled_tests = { |
| 418 "aliexpress": Aliexpress("aliexpress"), # Fails due to test framework issue. | 428 "aliexpress": Aliexpress("aliexpress"), # Fails due to test framework issue. |
| 419 "amazon": Amazon("amazon"), # Bug not reproducible without test. | 429 "amazon": Amazon("amazon"), # Bug not reproducible without test. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 args.profile_path[0], | 622 args.profile_path[0], |
| 613 passwords_path, | 623 passwords_path, |
| 614 True, | 624 True, |
| 615 numeric_level, | 625 numeric_level, |
| 616 args.log_screen, | 626 args.log_screen, |
| 617 log_file, | 627 log_file, |
| 618 tested_websites, | 628 tested_websites, |
| 619 args.tests) | 629 args.tests) |
| 620 | 630 |
| 621 saveResults(tests_results, save_path) | 631 saveResults(tests_results, save_path) |
| OLD | NEW |