| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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. |
| OLD | NEW |