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