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

Unified Diff: tools/perf/page_sets/login_helpers/mobile_facebook_login.py

Issue 2166743005: [tools/perf] Rename mobile_facebook_login to facebook_login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upload renamed file Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/page_sets/login_helpers/facebook_login.py ('k') | tools/perf/page_sets/mobile_facebook_page.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/login_helpers/mobile_facebook_login.py
diff --git a/tools/perf/page_sets/login_helpers/mobile_facebook_login.py b/tools/perf/page_sets/login_helpers/mobile_facebook_login.py
deleted file mode 100644
index d8d20734700ed43f745cc9418acc8b5200eb54d0..0000000000000000000000000000000000000000
--- a/tools/perf/page_sets/login_helpers/mobile_facebook_login.py
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-from page_sets.login_helpers import login_utils
-
-
-def LoginAccount(
- action_runner, credential,
- credentials_path=login_utils.DEFAULT_CREDENTIAL_PATH):
- """Logs in into mobile Facebook account.
-
- This function navigates the tab into Facebook's login page and logs in a user
- using credentials in |credential| part of the |credentials_path| file.
-
- Args:
- action_runner: Action runner responsible for running actions on the page.
- credential: The credential to retrieve from the credentials file
- (type string).
- credentials_path: The string that specifies the path to credential file.
-
- Raises:
- exceptions.Error: See ExecuteJavaScript()
- for a detailed list of possible exceptions.
- """
- account_name, password = login_utils.GetAccountNameAndPassword(
- credential, credentials_path=credentials_path)
-
- action_runner.Navigate(
- 'https://m.facebook.com/login?continue=https%3A%2F%2Fm.facebook.com')
- login_utils.InputWithSelector(action_runner, account_name, '[name=email]')
- login_utils.InputWithSelector(action_runner, password, '[name=pass]')
- action_runner.ClickElement(selector='[name=login]')
- action_runner.WaitForElement(text='OK')
- action_runner.ClickElement(text='OK')
- action_runner.WaitForNavigate()
« no previous file with comments | « tools/perf/page_sets/login_helpers/facebook_login.py ('k') | tools/perf/page_sets/mobile_facebook_page.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698