| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 191 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 192 | 192 |
| 193 | 193 |
| 194 class TwitterMobileStory(_NewsBrowsingStory): | 194 class TwitterMobileStory(_NewsBrowsingStory): |
| 195 NAME = 'browse:social:twitter' | 195 NAME = 'browse:social:twitter' |
| 196 URL = 'https://www.twitter.com/nasa' | 196 URL = 'https://www.twitter.com/nasa' |
| 197 ITEM_SELECTOR = '.Tweet-text' | 197 ITEM_SELECTOR = '.Tweet-text' |
| 198 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 198 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 199 | 199 |
| 200 | 200 |
| 201 @decorators.Disabled('win', # crbug.com/662971 | 201 @decorators.Disabled('win') # crbug.com/662971 |
| 202 'mac') # crbug.com/663025 | |
| 203 class TwitterDesktopStory(_NewsBrowsingStory): | 202 class TwitterDesktopStory(_NewsBrowsingStory): |
| 204 NAME = 'browse:social:twitter' | 203 NAME = 'browse:social:twitter' |
| 205 URL = 'https://www.twitter.com/nasa' | 204 URL = 'https://www.twitter.com/nasa' |
| 206 IS_SINGLE_PAGE_APP = True | 205 IS_SINGLE_PAGE_APP = True |
| 207 ITEM_SELECTOR = '.tweet-text' | 206 ITEM_SELECTOR = '.tweet-text' |
| 208 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 207 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 209 | 208 |
| 210 | 209 |
| 211 class WashingtonPostMobileStory(_NewsBrowsingStory): | 210 class WashingtonPostMobileStory(_NewsBrowsingStory): |
| 212 """Progressive website""" | 211 """Progressive website""" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 inner_save_function = 'document.querySelector(".nameAndIcons")' | 424 inner_save_function = 'document.querySelector(".nameAndIcons")' |
| 426 action_runner.WaitForElement(element_function=inner_save_function) | 425 action_runner.WaitForElement(element_function=inner_save_function) |
| 427 action_runner.ClickElement(element_function=inner_save_function) | 426 action_runner.ClickElement(element_function=inner_save_function) |
| 428 action_runner.Wait(1) # Wait to make navigation realistic. | 427 action_runner.Wait(1) # Wait to make navigation realistic. |
| 429 | 428 |
| 430 # Close selection. | 429 # Close selection. |
| 431 x_element_function = ('document.querySelector(' | 430 x_element_function = ('document.querySelector(' |
| 432 '".Button.borderless.close.visible")') | 431 '".Button.borderless.close.visible")') |
| 433 action_runner.ClickElement(element_function=x_element_function) | 432 action_runner.ClickElement(element_function=x_element_function) |
| 434 action_runner.Wait(1) # Wait to make navigation realistic. | 433 action_runner.Wait(1) # Wait to make navigation realistic. |
| OLD | NEW |