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

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

Issue 1088423003: [Password manager tests automation] Fix instagram website test. (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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 def Login(self): 368 def Login(self):
369 self.GoTo("http://www.flipkart.com/") 369 self.GoTo("http://www.flipkart.com/")
370 self.Wait(2) 370 self.Wait(2)
371 self.Click(".header-links .js-login") 371 self.Click(".header-links .js-login")
372 self.FillUsernameInto("#login_email_id") 372 self.FillUsernameInto("#login_email_id")
373 self.FillPasswordInto("#login_password") 373 self.FillPasswordInto("#login_password")
374 self.Submit("#login_password") 374 self.Submit("#login_password")
375 375
376 376
377 # Iframe, password saved but not autofilled.
378 class Instagram(WebsiteTest): 377 class Instagram(WebsiteTest):
379 378
380 def Login(self): 379 def Login(self):
381 self.GoTo("https://instagram.com/accounts/login/") 380 self.GoTo("https://instagram.com/accounts/login/")
382 self.Wait(5)
383 frame = self.driver.find_element_by_css_selector(".hiFrame")
384 self.driver.switch_to_frame(frame)
385 self.FillUsernameInto("#lfFieldInputUsername") 381 self.FillUsernameInto("#lfFieldInputUsername")
386 self.FillPasswordInto("#lfFieldInputPassword") 382 self.FillPasswordInto("#lfFieldInputPassword")
387 self.Submit(".lfSubmit") 383 self.Submit(".lfSubmit")
388 384
389 385
390 # http://crbug.com/367768 386 # http://crbug.com/367768
391 class Live(WebsiteTest): 387 class Live(WebsiteTest):
392 388
393 def Login(self): 389 def Login(self):
394 self.GoTo("https://login.live.com") 390 self.GoTo("https://login.live.com")
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 for test_case in test_cases_to_run: 585 for test_case in test_cases_to_run:
590 tests_results = RunTest( 586 tests_results = RunTest(
591 args.chrome_path, args.chromedriver_path, args.profile_path, 587 args.chrome_path, args.chromedriver_path, args.profile_path,
592 args.passwords_path, args.website, test_case) 588 args.passwords_path, args.website, test_case)
593 589
594 590
595 SaveResults(tests_results, save_path, save_only_fails=args.save_only_fails) 591 SaveResults(tests_results, save_path, save_only_fails=args.save_only_fails)
596 592
597 if __name__ == "__main__": 593 if __name__ == "__main__":
598 main() 594 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