| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 IS_SINGLE_PAGE_APP = True | 125 IS_SINGLE_PAGE_APP = True |
| 126 ITEM_SELECTOR = '.grad-top' | 126 ITEM_SELECTOR = '.grad-top' |
| 127 ITEM_SCROLL_REPEAT = 4 | 127 ITEM_SCROLL_REPEAT = 4 |
| 128 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 128 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 129 | 129 |
| 130 @classmethod | 130 @classmethod |
| 131 def ShouldDisable(cls, possible_browser): | 131 def ShouldDisable(cls, possible_browser): |
| 132 return possible_browser.platform.IsSvelte() # crbug.com/668097 | 132 return possible_browser.platform.IsSvelte() # crbug.com/668097 |
| 133 | 133 |
| 134 | 134 |
| 135 @decorators.Disabled('mac') # crbug.com/663025 | |
| 136 class FlipboardDesktopStory(_NewsBrowsingStory): | 135 class FlipboardDesktopStory(_NewsBrowsingStory): |
| 137 NAME = 'browse:news:flipboard' | 136 NAME = 'browse:news:flipboard' |
| 138 URL = 'https://flipboard.com/explore' | 137 URL = 'https://flipboard.com/explore' |
| 139 IS_SINGLE_PAGE_APP = True | 138 IS_SINGLE_PAGE_APP = True |
| 140 ITEM_SELECTOR = '.cover-image' | 139 ITEM_SELECTOR = '.cover-image' |
| 141 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 140 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 142 | 141 |
| 143 | 142 |
| 144 # crbug.com/657665 for win and mac, crbug.com/665007 for linux | 143 # crbug.com/657665 for win and mac, crbug.com/665007 for linux |
| 145 @decorators.Disabled('win', 'linux', 'yosemite', 'elcapitan') | 144 @decorators.Disabled('win', 'linux', 'yosemite', 'elcapitan') |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 inner_save_function = 'document.querySelector(".nameAndIcons")' | 426 inner_save_function = 'document.querySelector(".nameAndIcons")' |
| 428 action_runner.WaitForElement(element_function=inner_save_function) | 427 action_runner.WaitForElement(element_function=inner_save_function) |
| 429 action_runner.ClickElement(element_function=inner_save_function) | 428 action_runner.ClickElement(element_function=inner_save_function) |
| 430 action_runner.Wait(1) # Wait to make navigation realistic. | 429 action_runner.Wait(1) # Wait to make navigation realistic. |
| 431 | 430 |
| 432 # Close selection. | 431 # Close selection. |
| 433 x_element_function = ('document.querySelector(' | 432 x_element_function = ('document.querySelector(' |
| 434 '".Button.borderless.close.visible")') | 433 '".Button.borderless.close.visible")') |
| 435 action_runner.ClickElement(element_function=x_element_function) | 434 action_runner.ClickElement(element_function=x_element_function) |
| 436 action_runner.Wait(1) # Wait to make navigation realistic. | 435 action_runner.Wait(1) # Wait to make navigation realistic. |
| OLD | NEW |