| Index: tools/perf/page_sets/system_health/browsing_stories.py
|
| diff --git a/tools/perf/page_sets/system_health/browsing_stories.py b/tools/perf/page_sets/system_health/browsing_stories.py
|
| index 8d5ac935d8503c05d11bece299827635e1659110..563020b277728dce41cef07bc49064e283ce79d5 100644
|
| --- a/tools/perf/page_sets/system_health/browsing_stories.py
|
| +++ b/tools/perf/page_sets/system_health/browsing_stories.py
|
| @@ -487,3 +487,45 @@ class PinterestDesktopStory(_MediaBrowsingStory):
|
| '".Button.borderless.close.visible")')
|
| action_runner.ClickElement(element_function=x_element_function)
|
| action_runner.Wait(1) # Wait to make navigation realistic.
|
| +
|
| +
|
| +class GoogleEarthStory(_NewsBrowsingStory):
|
| + """
|
| + Google Earth story:
|
| + _ Start at https://www.maps.google.com/maps
|
| + _ Click on the Earth link
|
| + _ Click ZoomIn three times, waiting for 3 sec in between.
|
| +
|
| + """
|
| + NAME = 'browse:tools:earth'
|
| + URL = 'https://www.google.co.uk/maps/@51.4655936,-0.0985949,3329a,35y,40.58t/data=!3m1!1e3'
|
| + _EARTH_BUTTON_SELECTOR = '[aria-labelledby="widget-minimap-caption"]'
|
| + _EARTH_ZOOM_IN_SELECTOR = '[aria-label="Zoom in"]'
|
| + SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
|
| + TAGS = [story_tags.JAVASCRIPT_HEAVY]
|
| +
|
| + def _DidLoadDocument(self, action_runner):
|
| + # Zommin three times.
|
| + action_runner.WaitForElement(selector=self._EARTH_ZOOM_IN_SELECTOR)
|
| + action_runner.ClickElement(selector=self._EARTH_ZOOM_IN_SELECTOR)
|
| + action_runner.Wait(1)
|
| + action_runner.ClickElement(selector=self._EARTH_ZOOM_IN_SELECTOR)
|
| + action_runner.Wait(1)
|
| + action_runner.ClickElement(selector=self._EARTH_ZOOM_IN_SELECTOR)
|
| + action_runner.Wait(1)
|
| + action_runner.ClickElement(selector=self._EARTH_ZOOM_IN_SELECTOR)
|
| + action_runner.Wait(5)
|
| +
|
| + for _ in range(2):
|
| + with action_runner.CreateGestureInteraction(
|
| + 'DragAction', repeatable=True):
|
| + action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0,
|
| + left_end_ratio=0.5, top_end_ratio=0.5)
|
| + action_runner.Wait(5)
|
| +
|
| + for _ in range(2):
|
| + with action_runner.CreateGestureInteraction(
|
| + 'DragAction', repeatable=True):
|
| + action_runner.DragPage(left_start_ratio=0.5, top_start_ratio=0,
|
| + left_end_ratio=0, top_end_ratio=0)
|
| + action_runner.Wait(5)
|
|
|