Chromium Code Reviews| Index: tools/perf/page_sets/system_health/blank_stories.py |
| diff --git a/tools/perf/page_sets/system_health/blank_stories.py b/tools/perf/page_sets/system_health/blank_stories.py |
| index ffe0eccf0836c7361b43a7609799fef16ad520df..291c4eae2b0c11c910178d98a826f612f7e922f0 100644 |
| --- a/tools/perf/page_sets/system_health/blank_stories.py |
| +++ b/tools/perf/page_sets/system_health/blank_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 BlankAboutBlankStory(system_health_story.SystemHealthStory): |
| @@ -23,3 +24,21 @@ class BlankAboutBlankStory(system_health_story.SystemHealthStory): |
| """ |
| ) |
| action_runner.WaitForJavaScriptCondition("window.__hasRunRAF") |
| + |
| + |
| +class MobileNewTabPageStory(system_health_story.SystemHealthStory): |
| + """Story that loads new tab page and opens menu.""" |
| + |
| + NAME = 'blank:about:newtab' |
|
perezju
2017/03/31 08:45:54
I don't think this is a "blank" story, it's actual
ssid
2017/04/04 03:43:48
Done.
|
| + URL = 'chrome://newtab' |
| + |
| + def RunPageInteractions(self, action_runner): |
| + package = action_runner.tab.browser.GetBrowserInfo().package_name |
| + platform = action_runner.tab.browser.platform |
| + menu_button = package+':id/menu_button' |
| + platform.system_ui.WaitForUiNode(resource_id=menu_button) |
| + menu_button = platform.system_ui.GetUiNode(resource_id=menu_button) |
| + menu_button.Tap() |
| + platform.system_ui.WaitForUiNode(resource_id=package+':id/menu_item_text') |
| + |
| + SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |