OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 from telemetry import form_based_credentials_backend | 5 from telemetry import form_based_credentials_backend |
6 | 6 |
7 class FacebookCredentialsBackend( | 7 class FacebookCredentialsBackend( |
8 form_based_credentials_backend.FormBasedCredentialsBackend): | 8 form_based_credentials_backend.FormBasedCredentialsBackend): |
9 def IsAlreadyLoggedIn(self, tab): | 9 def IsAlreadyLoggedIn(self, tab): |
10 return tab.EvaluateJavaScript( | 10 return tab.EvaluateJavaScript( |
(...skipping 12 matching lines...) Expand all Loading... |
23 def login_form_id(self): | 23 def login_form_id(self): |
24 return 'login_form' | 24 return 'login_form' |
25 | 25 |
26 @property | 26 @property |
27 def login_input_id(self): | 27 def login_input_id(self): |
28 return 'email' | 28 return 'email' |
29 | 29 |
30 @property | 30 @property |
31 def password_input_id(self): | 31 def password_input_id(self): |
32 return 'pass' | 32 return 'pass' |
OLD | NEW |