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

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

Issue 2750533002: [tools/perf] Re-enable browse:news:washingtonpost (keep disabled on CQ) (Closed)
Patch Set: Created 3 years, 9 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 story_tags 7 from page_sets.system_health import story_tags
8 from page_sets.system_health import system_health_story 8 from page_sets.system_health import system_health_story
9 9
10 from page_sets.login_helpers import pinterest_login 10 from page_sets.login_helpers import pinterest_login
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 @decorators.Disabled('win') # crbug.com/662971 208 @decorators.Disabled('win') # crbug.com/662971
209 class TwitterDesktopStory(_NewsBrowsingStory): 209 class TwitterDesktopStory(_NewsBrowsingStory):
210 NAME = 'browse:social:twitter' 210 NAME = 'browse:social:twitter'
211 URL = 'https://www.twitter.com/nasa' 211 URL = 'https://www.twitter.com/nasa'
212 IS_SINGLE_PAGE_APP = True 212 IS_SINGLE_PAGE_APP = True
213 ITEM_SELECTOR = '.tweet-text' 213 ITEM_SELECTOR = '.tweet-text'
214 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY 214 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
215 215
216 216
217 @decorators.Disabled('all') # crbug.com/688190
218 class WashingtonPostMobileStory(_NewsBrowsingStory): 217 class WashingtonPostMobileStory(_NewsBrowsingStory):
219 """Progressive website""" 218 """Progressive website"""
220 NAME = 'browse:news:washingtonpost' 219 NAME = 'browse:news:washingtonpost'
221 URL = 'https://www.washingtonpost.com/pwa' 220 URL = 'https://www.washingtonpost.com/pwa'
222 IS_SINGLE_PAGE_APP = True 221 IS_SINGLE_PAGE_APP = True
223 ITEM_SELECTOR = '.hed > a' 222 ITEM_SELECTOR = '.hed > a'
224 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 223 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
225 _CLOSE_BUTTON_SELECTOR = '.close' 224 _CLOSE_BUTTON_SELECTOR = '.close'
226 225
227 def _DidLoadDocument(self, action_runner): 226 def _DidLoadDocument(self, action_runner):
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 inner_save_function = 'document.querySelector(".nameAndIcons")' 478 inner_save_function = 'document.querySelector(".nameAndIcons")'
480 action_runner.WaitForElement(element_function=inner_save_function) 479 action_runner.WaitForElement(element_function=inner_save_function)
481 action_runner.ClickElement(element_function=inner_save_function) 480 action_runner.ClickElement(element_function=inner_save_function)
482 action_runner.Wait(1) # Wait to make navigation realistic. 481 action_runner.Wait(1) # Wait to make navigation realistic.
483 482
484 # Close selection. 483 # Close selection.
485 x_element_function = ('document.querySelector(' 484 x_element_function = ('document.querySelector('
486 '".Button.borderless.close.visible")') 485 '".Button.borderless.close.visible")')
487 action_runner.ClickElement(element_function=x_element_function) 486 action_runner.ClickElement(element_function=x_element_function)
488 action_runner.Wait(1) # Wait to make navigation realistic. 487 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698