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

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

Issue 2601533002: Re-enable browse:news:cnn on android (Closed)
Patch Set: Created 4 years 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 action_runner.RepeatableBrowserDrivenScroll( 80 action_runner.RepeatableBrowserDrivenScroll(
81 repeat_count=self.ITEM_SCROLL_REPEAT) 81 repeat_count=self.ITEM_SCROLL_REPEAT)
82 action_runner.Wait(self.ITEM_READ_TIME_IN_SECONDS/2.0) 82 action_runner.Wait(self.ITEM_READ_TIME_IN_SECONDS/2.0)
83 83
84 def _ScrollMainPage(self, action_runner): 84 def _ScrollMainPage(self, action_runner):
85 action_runner.tab.WaitForDocumentReadyStateToBeComplete() 85 action_runner.tab.WaitForDocumentReadyStateToBeComplete()
86 action_runner.RepeatableBrowserDrivenScroll( 86 action_runner.RepeatableBrowserDrivenScroll(
87 repeat_count=self.MAIN_PAGE_SCROLL_REPEAT) 87 repeat_count=self.MAIN_PAGE_SCROLL_REPEAT)
88 88
89 89
90 @decorators.Disabled('android') # crbug.com/676338
91 class CnnStory(_NewsBrowsingStory): 90 class CnnStory(_NewsBrowsingStory):
92 """The second top website in http://www.alexa.com/topsites/category/News""" 91 """The second top website in http://www.alexa.com/topsites/category/News"""
93 NAME = 'browse:news:cnn' 92 NAME = 'browse:news:cnn'
94 URL = 'http://edition.cnn.com/' 93 URL = 'http://edition.cnn.com/'
95 ITEM_SELECTOR = '.cd__content > h3 > a' 94 ITEM_SELECTOR = '.cd__content > h3 > a'
96 ITEMS_TO_VISIT = 2 95 ITEMS_TO_VISIT = 2
97 96
98 97
99 class FacebookMobileStory(_NewsBrowsingStory): 98 class FacebookMobileStory(_NewsBrowsingStory):
100 NAME = 'browse:social:facebook' 99 NAME = 'browse:social:facebook'
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 inner_save_function = 'document.querySelector(".nameAndIcons")' 423 inner_save_function = 'document.querySelector(".nameAndIcons")'
425 action_runner.WaitForElement(element_function=inner_save_function) 424 action_runner.WaitForElement(element_function=inner_save_function)
426 action_runner.ClickElement(element_function=inner_save_function) 425 action_runner.ClickElement(element_function=inner_save_function)
427 action_runner.Wait(1) # Wait to make navigation realistic. 426 action_runner.Wait(1) # Wait to make navigation realistic.
428 427
429 # Close selection. 428 # Close selection.
430 x_element_function = ('document.querySelector(' 429 x_element_function = ('document.querySelector('
431 '".Button.borderless.close.visible")') 430 '".Button.borderless.close.visible")')
432 action_runner.ClickElement(element_function=x_element_function) 431 action_runner.ClickElement(element_function=x_element_function)
433 action_runner.Wait(1) # Wait to make navigation realistic. 432 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