Index: tools/perf/page_sets/login_helpers/facebook_login.py |
diff --git a/tools/perf/page_sets/login_helpers/facebook_login.py b/tools/perf/page_sets/login_helpers/facebook_login.py |
index 360cf28da6f7f6fdaa77f10ba8b2c04a3ab068cf..a07ddff40d22b5c2c59bb01a46af141d0ab57bf1 100644 |
--- a/tools/perf/page_sets/login_helpers/facebook_login.py |
+++ b/tools/perf/page_sets/login_helpers/facebook_login.py |
@@ -33,3 +33,11 @@ def LoginWithMobileSite( |
action_runner.WaitForElement(text='OK') |
action_runner.ClickElement(text='OK') |
action_runner.WaitForNavigate() |
+ |
+ |
+def LoginWithDesktopSite( |
+ action_runner, credential, |
+ credentials_path=login_utils.DEFAULT_CREDENTIAL_PATH): |
+ # Currently we use the mobile login page also on Desktop because the |
+ # Desktop version requires enabled cookies and rejects the login. |
+ return LoginWithMobileSite(action_runner, credential, credentials_path) |