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

Unified Diff: tools/perf/page_sets/calendar_forward_backward.py

Issue 323833003: Create ActionRunner wrapper API over TapAction and ClickElementAction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to head. Created 6 years, 6 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/calendar_forward_backward.py
diff --git a/tools/perf/page_sets/calendar_forward_backward.py b/tools/perf/page_sets/calendar_forward_backward.py
index 609b59cf6810601e26f800c6714774ddcf07387e..0492b29fbb3c85755fbfe58cd5657a93d37c4608 100644
--- a/tools/perf/page_sets/calendar_forward_backward.py
+++ b/tools/perf/page_sets/calendar_forward_backward.py
@@ -34,52 +34,28 @@ class CalendarForwardBackwardPage(page_module.Page):
})();''')
def RunEndure(self, action_runner):
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navForward"]'
- }))
+ action_runner.ClickElement('div[class~="navForward"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navForward"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navForward"]'
- }))
+ action_runner.ClickElement('div[class~="navForward"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navForward"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navForward"]'
- }))
+ action_runner.ClickElement('div[class~="navForward"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navForward"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navForward"]'
- }))
+ action_runner.ClickElement('div[class~="navForward"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navBack"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navBack"]'
- }))
+ action_runner.ClickElement('div[class~="navBack"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navBack"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navBack"]'
- }))
+ action_runner.ClickElement('div[class~="navBack"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navBack"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navBack"]'
- }))
+ action_runner.ClickElement('div[class~="navBack"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navBack"]')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'div[class~="navBack"]'
- }))
+ action_runner.ClickElement('div[class~="navBack"]')
action_runner.Wait(2)
action_runner.WaitForElement('div[class~="navForward"]')
« no previous file with comments | « tools/perf/page_sets/browser_control_click.py ('k') | tools/perf/page_sets/gmail_alt_threadlist_conversation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698