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

Unified Diff: tools/perf/page_sets/webrtc_cases.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
« no previous file with comments | « tools/perf/page_sets/top_25.py ('k') | tools/telemetry/telemetry/page/actions/action_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/webrtc_cases.py
diff --git a/tools/perf/page_sets/webrtc_cases.py b/tools/perf/page_sets/webrtc_cases.py
index 24aaab374d17dfc78088f6c16e9c58f121fe4161..e6ba71a1d3ddde344f4b322872e92ec2c63d84ff 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -38,36 +38,18 @@ class Page2(WebrtcCasesPage):
page_set=page_set)
def RunEndure(self, action_runner):
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="btn1"]'
- }))
+ action_runner.ClickElement('button[id="btn1"]')
action_runner.Wait(2)
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="btn2"]'
- }))
+ action_runner.ClickElement('button[id="btn2"]')
action_runner.Wait(10)
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="btn3"]'
- }))
+ action_runner.ClickElement('button[id="btn3"]')
def RunWebrtc(self, action_runner):
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="btn1"]'
- }))
+ action_runner.ClickElement('button[id="btn1"]')
action_runner.Wait(2)
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="btn2"]'
- }))
+ action_runner.ClickElement('button[id="btn2"]')
action_runner.Wait(10)
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="btn3"]'
- }))
+ action_runner.ClickElement('button[id="btn3"]')
class WebrtcCasesPageSet(page_set_module.PageSet):
« no previous file with comments | « tools/perf/page_sets/top_25.py ('k') | tools/telemetry/telemetry/page/actions/action_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698