OLD | NEW |
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 class FlipboardDesktopStory(_NewsBrowsingStory): | 139 class FlipboardDesktopStory(_NewsBrowsingStory): |
140 NAME = 'browse:news:flipboard' | 140 NAME = 'browse:news:flipboard' |
141 URL = 'https://flipboard.com/explore' | 141 URL = 'https://flipboard.com/explore' |
142 IS_SINGLE_PAGE_APP = True | 142 IS_SINGLE_PAGE_APP = True |
143 ITEM_SELECTOR = '.cover-image' | 143 ITEM_SELECTOR = '.cover-image' |
144 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 144 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
145 | 145 |
146 | 146 |
147 # crbug.com/657665 for win and mac | 147 # crbug.com/657665 for win and mac |
148 @decorators.Disabled('win', 'yosemite', 'elcapitan') | 148 @decorators.Disabled('win', 'mac') |
149 class HackerNewsStory(_NewsBrowsingStory): | 149 class HackerNewsStory(_NewsBrowsingStory): |
150 NAME = 'browse:news:hackernews' | 150 NAME = 'browse:news:hackernews' |
151 URL = 'https://news.ycombinator.com' | 151 URL = 'https://news.ycombinator.com' |
152 ITEM_SELECTOR = '.athing .title > a' | 152 ITEM_SELECTOR = '.athing .title > a' |
153 | 153 |
154 | 154 |
155 class NytimesMobileStory(_NewsBrowsingStory): | 155 class NytimesMobileStory(_NewsBrowsingStory): |
156 """The third top website in http://www.alexa.com/topsites/category/News""" | 156 """The third top website in http://www.alexa.com/topsites/category/News""" |
157 NAME = 'browse:news:nytimes' | 157 NAME = 'browse:news:nytimes' |
158 URL = 'http://mobile.nytimes.com' | 158 URL = 'http://mobile.nytimes.com' |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 inner_save_function = 'document.querySelector(".nameAndIcons")' | 479 inner_save_function = 'document.querySelector(".nameAndIcons")' |
480 action_runner.WaitForElement(element_function=inner_save_function) | 480 action_runner.WaitForElement(element_function=inner_save_function) |
481 action_runner.ClickElement(element_function=inner_save_function) | 481 action_runner.ClickElement(element_function=inner_save_function) |
482 action_runner.Wait(1) # Wait to make navigation realistic. | 482 action_runner.Wait(1) # Wait to make navigation realistic. |
483 | 483 |
484 # Close selection. | 484 # Close selection. |
485 x_element_function = ('document.querySelector(' | 485 x_element_function = ('document.querySelector(' |
486 '".Button.borderless.close.visible")') | 486 '".Button.borderless.close.visible")') |
487 action_runner.ClickElement(element_function=x_element_function) | 487 action_runner.ClickElement(element_function=x_element_function) |
488 action_runner.Wait(1) # Wait to make navigation realistic. | 488 action_runner.Wait(1) # Wait to make navigation realistic. |
OLD | NEW |