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

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

Issue 2799663002: Google Earth page in system health's browse story set.
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698