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

Unified Diff: tools/perf/page_sets/system_health/searching_stories.py

Issue 2787103003: Add System health stories for Emerging market (Closed)
Patch Set: Created 3 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/perf/page_sets/system_health/searching_stories.py
diff --git a/tools/perf/page_sets/system_health/searching_stories.py b/tools/perf/page_sets/system_health/searching_stories.py
index 329a0cb5ab276b5a16f3b94ee2e5bd9da0109144..d48cb7d7f99d98c550437673ffcad3c18dc2835d 100644
--- a/tools/perf/page_sets/system_health/searching_stories.py
+++ b/tools/perf/page_sets/system_health/searching_stories.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
from page_sets.system_health import system_health_story
+from page_sets.system_health import platforms
class SearchGoogleStory(system_health_story.SystemHealthStory):
@@ -33,3 +34,27 @@ class SearchGoogleStory(system_health_story.SystemHealthStory):
action_runner.Wait(1)
action_runner.TapElement(selector=self._RESULT_SELECTOR)
action_runner.tab.WaitForDocumentReadyStateToBeComplete()
+
+class SearchOmniboxStory(system_health_story.SystemHealthStory):
+ NAME = 'search:google:omnibox'
+ URL = 'https://www.google.co.in'
+
+ def RunPageInteractions(self, action_runner):
+ platform = action_runner.tab.browser.platform
+ package = action_runner.tab.browser.GetBrowserInfo().package_name
+ platform.system_ui.WaitForUiNode(resource_id=package+':id/url_bar')
+ url_bar = platform.system_ui.GetUiNode(resource_id=package+':id/url_bar')
+ url_bar.Tap()
+ action_runner.Wait(1)
+ # Enter system input as action_runner input does not work for browser
+ # activity.
+ platform.device.RunShellCommand(['input', 'text', 'drake'],
nednguyen 2017/03/31 08:56:55 Hmhh, this should be using https://github.com/cata
ssid 2017/04/04 03:43:48 Sorry I did not notice we have different action ru
perezju 2017/04/04 09:23:38 I've filed https://github.com/catapult-project/cat
+ check_return=True)
+ action_runner.Wait(0.5)
+ platform.device.RunShellCommand(['input', 'keyevent', '66'],
+ check_return=True)
+
+ action_runner.WaitForNavigate(15)
+ action_runner.ScrollPage(use_touch=True, distance=500)
+
+ SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY

Powered by Google App Engine
This is Rietveld 408576698