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

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

Issue 2597193002: [system health] Disable browse:news:nytimes on android (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 pinterest_login 8 from page_sets.login_helpers import pinterest_login
9 9
10 from telemetry import decorators 10 from telemetry import decorators
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 140
141 # crbug.com/657665 for win and mac, crbug.com/665007 for linux 141 # crbug.com/657665 for win and mac, crbug.com/665007 for linux
142 @decorators.Disabled('win', 'linux', 'yosemite', 'elcapitan') 142 @decorators.Disabled('win', 'linux', 'yosemite', 'elcapitan')
143 class HackerNewsStory(_NewsBrowsingStory): 143 class HackerNewsStory(_NewsBrowsingStory):
144 NAME = 'browse:news:hackernews' 144 NAME = 'browse:news:hackernews'
145 URL = 'https://news.ycombinator.com' 145 URL = 'https://news.ycombinator.com'
146 ITEM_SELECTOR = '.athing .title > a' 146 ITEM_SELECTOR = '.athing .title > a'
147 147
148 148
149 @decorators.Disabled('android') # crbug.com/676315
149 class NytimesMobileStory(_NewsBrowsingStory): 150 class NytimesMobileStory(_NewsBrowsingStory):
150 """The third top website in http://www.alexa.com/topsites/category/News""" 151 """The third top website in http://www.alexa.com/topsites/category/News"""
151 NAME = 'browse:news:nytimes' 152 NAME = 'browse:news:nytimes'
152 URL = 'http://mobile.nytimes.com' 153 URL = 'http://mobile.nytimes.com'
153 ITEM_SELECTOR = '.sfgAsset-link' 154 ITEM_SELECTOR = '.sfgAsset-link'
154 # Visiting more items causes OOM. 155 # Visiting more items causes OOM.
155 ITEMS_TO_VISIT = 2 156 ITEMS_TO_VISIT = 2
156 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY 157 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
157 158
158 159
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 inner_save_function = 'document.querySelector(".nameAndIcons")' 425 inner_save_function = 'document.querySelector(".nameAndIcons")'
425 action_runner.WaitForElement(element_function=inner_save_function) 426 action_runner.WaitForElement(element_function=inner_save_function)
426 action_runner.ClickElement(element_function=inner_save_function) 427 action_runner.ClickElement(element_function=inner_save_function)
427 action_runner.Wait(1) # Wait to make navigation realistic. 428 action_runner.Wait(1) # Wait to make navigation realistic.
428 429
429 # Close selection. 430 # Close selection.
430 x_element_function = ('document.querySelector(' 431 x_element_function = ('document.querySelector('
431 '".Button.borderless.close.visible")') 432 '".Button.borderless.close.visible")')
432 action_runner.ClickElement(element_function=x_element_function) 433 action_runner.ClickElement(element_function=x_element_function)
433 action_runner.Wait(1) # Wait to make navigation realistic. 434 action_runner.Wait(1) # Wait to make navigation realistic.
OLDNEW
« 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