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

Unified Diff: tools/perf/page_sets/indexeddb_offline.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/indexeddb_offline.py
diff --git a/tools/perf/page_sets/indexeddb_offline.py b/tools/perf/page_sets/indexeddb_offline.py
index 0158ffea768f2177b65fa5786d3cb8bd57a925c2..38f786510db95f8eebb4f4cbc6685992b7d687b3 100644
--- a/tools/perf/page_sets/indexeddb_offline.py
+++ b/tools/perf/page_sets/indexeddb_offline.py
@@ -36,18 +36,12 @@ class IndexeddbOfflinePage(page_module.Page):
def RunEndure(self, action_runner):
action_runner.WaitForElement('button[id="online"]:not(disabled)')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="online"]:not(disabled)'
- }))
+ action_runner.ClickElement('button[id="online"]:not(disabled)')
action_runner.WaitForElement(
element_function=_CreateXpathFunction('id("state")[text()="online"]'))
action_runner.Wait(1)
action_runner.WaitForElement('button[id="offline"]:not(disabled)')
- action_runner.RunAction(ClickElementAction(
- {
- 'selector': 'button[id="offline"]:not(disabled)'
- }))
+ action_runner.ClickElement('button[id="offline"]:not(disabled)')
action_runner.WaitForElement(
element_function=_CreateXpathFunction('id("state")[text()="offline"]'))
« no previous file with comments | « tools/perf/page_sets/gmail_expand_collapse_conversation.py ('k') | tools/perf/page_sets/key_mobile_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698