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

Side by Side Diff: tools/perf/page_sets/system_health/browsing_stories.py

Issue 2689293002: [Telemetry] Set youtube system health benchmarks to have platform specific recordings. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 # encoding: utf-8 1 # encoding: utf-8
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from page_sets.system_health import platforms 6 from page_sets.system_health import platforms
7 from page_sets.system_health import system_health_story 7 from page_sets.system_health import system_health_story
8 8
9 from page_sets.login_helpers import pinterest_login 9 from page_sets.login_helpers import pinterest_login
10 10
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 class YouTubeDesktopStory(_MediaBrowsingStory): 399 class YouTubeDesktopStory(_MediaBrowsingStory):
400 NAME = 'browse:media:youtube' 400 NAME = 'browse:media:youtube'
401 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false' 401 URL = 'https://www.youtube.com/watch?v=QGfhS1hfTWw&autoplay=false'
402 ITEM_SELECTOR = '.yt-uix-simple-thumb-related' 402 ITEM_SELECTOR = '.yt-uix-simple-thumb-related'
403 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 403 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
404 IS_SINGLE_PAGE_APP = True 404 IS_SINGLE_PAGE_APP = True
405 # A longer view time allows videos to load and play. 405 # A longer view time allows videos to load and play.
406 ITEM_VIEW_TIME_IN_SECONDS = 5 406 ITEM_VIEW_TIME_IN_SECONDS = 5
407 ITEMS_TO_VISIT = 8 407 ITEMS_TO_VISIT = 8
408 ITEM_SELECTOR_INDEX = 3 408 ITEM_SELECTOR_INDEX = 3
409 PLATFORM_SPECIFIC = True
409 410
410 411
411 class FacebookPhotosMobileStory(_MediaBrowsingStory): 412 class FacebookPhotosMobileStory(_MediaBrowsingStory):
412 NAME = 'browse:media:facebook_photos' 413 NAME = 'browse:media:facebook_photos'
413 URL = ( 414 URL = (
414 'https://m.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/1 0153911739606676/?type=3&source=54&ref=page_internal') 415 'https://m.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/1 0153911739606676/?type=3&source=54&ref=page_internal')
415 ITEM_SELECTOR = '._57-r.touchable' 416 ITEM_SELECTOR = '._57-r.touchable'
416 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 417 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
417 IS_SINGLE_PAGE_APP = True 418 IS_SINGLE_PAGE_APP = True
418 ITEM_SELECTOR_INDEX = 0 419 ITEM_SELECTOR_INDEX = 0
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 inner_save_function = 'document.querySelector(".nameAndIcons")' 473 inner_save_function = 'document.querySelector(".nameAndIcons")'
473 action_runner.WaitForElement(element_function=inner_save_function) 474 action_runner.WaitForElement(element_function=inner_save_function)
474 action_runner.ClickElement(element_function=inner_save_function) 475 action_runner.ClickElement(element_function=inner_save_function)
475 action_runner.Wait(1) # Wait to make navigation realistic. 476 action_runner.Wait(1) # Wait to make navigation realistic.
476 477
477 # Close selection. 478 # Close selection.
478 x_element_function = ('document.querySelector(' 479 x_element_function = ('document.querySelector('
479 '".Button.borderless.close.visible")') 480 '".Button.borderless.close.visible")')
480 action_runner.ClickElement(element_function=x_element_function) 481 action_runner.ClickElement(element_function=x_element_function)
481 action_runner.Wait(1) # Wait to make navigation realistic. 482 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/system_health_desktop.json ('k') | tools/perf/page_sets/system_health/loading_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698