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

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

Issue 2375003003: Revert of [System Health] Create first System Health media user stories. (Closed)
Patch Set: Created 4 years, 3 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
Index: tools/perf/page_sets/login_helpers/pandora_login.py
diff --git a/tools/perf/page_sets/login_helpers/pandora_login.py b/tools/perf/page_sets/login_helpers/pandora_login.py
deleted file mode 100644
index c73804dd8eea2ab3d69b977894e409c1c79eabce..0000000000000000000000000000000000000000
--- a/tools/perf/page_sets/login_helpers/pandora_login.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2016 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 a Dropbox account.
-
- This function navigates the tab into Dropbox'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 (string).
- credentials_path: The path to credential file (string).
-
- 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://www.pandora.com/account/sign-in')
- login_utils.InputWithSelector(
- action_runner, account_name, 'input[id=login_username]')
- login_utils.InputWithSelector(
- action_runner, password, 'input[id=login_password]')
-
- login_button_function = ('document.getElementsByClassName('
- '"onboarding__form__button onboarding__b1 '
- 'onboarding__form__button--blue loginButton")[0]')
- action_runner.ClickElement(element_function=login_button_function)
« no previous file with comments | « tools/perf/page_sets/data/system_health_desktop_032.wpr.sha1 ('k') | tools/perf/page_sets/system_health/media_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698