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

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

Issue 2159253002: [system health] Fix load:news:washingtonpost and browse:news:washingtonpost on Nexus9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from page_sets.system_health import platforms 5 from page_sets.system_health import platforms
6 from page_sets.system_health import system_health_story 6 from page_sets.system_health import system_health_story
7 7
8 from page_sets.login_helpers import dropbox_login 8 from page_sets.login_helpers import dropbox_login
9 from page_sets.login_helpers import google_login 9 from page_sets.login_helpers import google_login
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 # https://github.com/chromium/web-page-replay/issues/74. 167 # https://github.com/chromium/web-page-replay/issues/74.
168 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 168 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
169 169
170 170
171 class LoadWashingtonPostMobileStory(_LoadingStory): 171 class LoadWashingtonPostMobileStory(_LoadingStory):
172 NAME = 'load:news:washingtonpost' 172 NAME = 'load:news:washingtonpost'
173 URL = 'https://www.washingtonpost.com/pwa' 173 URL = 'https://www.washingtonpost.com/pwa'
174 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 174 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
175 175
176 def _DidLoadDocument(self, action_runner): 176 def _DidLoadDocument(self, action_runner):
177 # Close the popup window. 177 # Close the popup window. On Nexus 9 (and probably other tables) the popup
petrcermak 2016/07/19 17:07:08 ditto (everything that applies to the previous com
178 action_runner.ClickElement(selector='.close') 178 # window does not have "Close" button, instead it has only "Send link to
179 # phone" button, which does nothing. So on tablets we run with popup
180 # window open.
181 action_runner.ClickElement(selector='.close,.mailBlock')
179 182
180 183
181 class LoadWikipediaStory(_LoadingStory): 184 class LoadWikipediaStory(_LoadingStory):
182 NAME = 'load:news:wikipedia' 185 NAME = 'load:news:wikipedia'
183 URL = 'https://en.wikipedia.org/wiki/Science' 186 URL = 'https://en.wikipedia.org/wiki/Science'
184 187
185 188
186 ################################################################################ 189 ################################################################################
187 # Audio and video. 190 # Audio and video.
188 ################################################################################ 191 ################################################################################
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 URL = 'http://www.miniclip.com/games/en/' 360 URL = 'http://www.miniclip.com/games/en/'
358 # Desktop only (requires Flash). 361 # Desktop only (requires Flash).
359 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 362 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
360 363
361 364
362 class LoadAlphabettyStory(_LoadingStory): 365 class LoadAlphabettyStory(_LoadingStory):
363 NAME = 'load:games:alphabetty' 366 NAME = 'load:games:alphabetty'
364 URL = 'https://king.com/play/alphabetty' 367 URL = 'https://king.com/play/alphabetty'
365 # Desktop only (requires Flash). 368 # Desktop only (requires Flash).
366 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 369 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698