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

Unified Diff: tools/telemetry/telemetry/page/actions/wait.py

Issue 1056133003: Move page/actions to internal/actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add copyright header. Created 5 years, 9 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/telemetry/telemetry/page/actions/wait.py
diff --git a/tools/telemetry/telemetry/page/actions/wait.py b/tools/telemetry/telemetry/page/actions/wait.py
deleted file mode 100644
index 5dbdf007ab482abcc85b88c97191285f401b48f4..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/page/actions/wait.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 2012 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 telemetry.page.actions import page_action
-
-
-class WaitForElementAction(page_action.PageAction):
- def __init__(self, selector=None, text=None, element_function=None,
- timeout_in_seconds=60):
- super(WaitForElementAction, self).__init__()
- self.selector = selector
- self.text = text
- self.element_function = element_function
- self.timeout_in_seconds = timeout_in_seconds
-
- def RunAction(self, tab):
- code = 'function(element) { return element != null; }'
- page_action.EvaluateCallbackWithElement(
- tab, code, selector=self.selector, text=self.text,
- element_function=self.element_function,
- wait=True, timeout_in_seconds=self.timeout_in_seconds)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/tap.py ('k') | tools/telemetry/telemetry/user_story/user_story_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698