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

Side by Side Diff: tools/telemetry/telemetry/core/chrome/facebook_credentials_backend.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 from telemetry.core.chrome import form_based_credentials_backend
6
7 class FacebookCredentialsBackend(
8 form_based_credentials_backend.FormBasedCredentialsBackend):
9 def IsAlreadyLoggedIn(self, tab):
10 return tab.EvaluateJavaScript(
11 'document.getElementById("fbNotificationsList")!== null || '
12 'document.getElementById("m_home_notice")!== null')
13
14 @property
15 def credentials_type(self):
16 return 'facebook'
17
18 @property
19 def url(self):
20 return 'http://www.facebook.com/'
21
22 @property
23 def login_form_id(self):
24 return 'login_form'
25
26 @property
27 def login_input_id(self):
28 return 'email'
29
30 @property
31 def password_input_id(self):
32 return 'pass'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698