| 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 system_health_story | 7 from page_sets.system_health import system_health_story |
| 8 | 8 |
| 9 from page_sets.login_helpers import pinterest_login | 9 from page_sets.login_helpers import pinterest_login |
| 10 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 | 132 |
| 133 class FlipboardDesktopStory(_NewsBrowsingStory): | 133 class FlipboardDesktopStory(_NewsBrowsingStory): |
| 134 NAME = 'browse:news:flipboard' | 134 NAME = 'browse:news:flipboard' |
| 135 URL = 'https://flipboard.com/explore' | 135 URL = 'https://flipboard.com/explore' |
| 136 IS_SINGLE_PAGE_APP = True | 136 IS_SINGLE_PAGE_APP = True |
| 137 ITEM_SELECTOR = '.cover-image' | 137 ITEM_SELECTOR = '.cover-image' |
| 138 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 138 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 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 |
| 142 @decorators.Disabled('win', 'linux', 'yosemite', 'elcapitan') | 142 @decorators.Disabled('win', '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 @decorators.Disabled('android') # crbug.com/676315 |
| 150 class NytimesMobileStory(_NewsBrowsingStory): | 150 class NytimesMobileStory(_NewsBrowsingStory): |
| 151 """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""" |
| 152 NAME = 'browse:news:nytimes' | 152 NAME = 'browse:news:nytimes' |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 inner_save_function = 'document.querySelector(".nameAndIcons")' | 468 inner_save_function = 'document.querySelector(".nameAndIcons")' |
| 469 action_runner.WaitForElement(element_function=inner_save_function) | 469 action_runner.WaitForElement(element_function=inner_save_function) |
| 470 action_runner.ClickElement(element_function=inner_save_function) | 470 action_runner.ClickElement(element_function=inner_save_function) |
| 471 action_runner.Wait(1) # Wait to make navigation realistic. | 471 action_runner.Wait(1) # Wait to make navigation realistic. |
| 472 | 472 |
| 473 # Close selection. | 473 # Close selection. |
| 474 x_element_function = ('document.querySelector(' | 474 x_element_function = ('document.querySelector(' |
| 475 '".Button.borderless.close.visible")') | 475 '".Button.borderless.close.visible")') |
| 476 action_runner.ClickElement(element_function=x_element_function) | 476 action_runner.ClickElement(element_function=x_element_function) |
| 477 action_runner.Wait(1) # Wait to make navigation realistic. | 477 action_runner.Wait(1) # Wait to make navigation realistic. |
| OLD | NEW |