| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 183 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 184 | 184 |
| 185 | 185 |
| 186 class TwitterMobileStory(_NewsBrowsingStory): | 186 class TwitterMobileStory(_NewsBrowsingStory): |
| 187 NAME = 'browse:social:twitter' | 187 NAME = 'browse:social:twitter' |
| 188 URL = 'https://www.twitter.com/nasa' | 188 URL = 'https://www.twitter.com/nasa' |
| 189 ITEM_SELECTOR = '.Tweet-text' | 189 ITEM_SELECTOR = '.Tweet-text' |
| 190 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 190 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 191 | 191 |
| 192 | 192 |
| 193 @decorators.Disabled('win') # crbug.com/662971 |
| 193 class TwitterDesktopStory(_NewsBrowsingStory): | 194 class TwitterDesktopStory(_NewsBrowsingStory): |
| 194 NAME = 'browse:social:twitter' | 195 NAME = 'browse:social:twitter' |
| 195 URL = 'https://www.twitter.com/nasa' | 196 URL = 'https://www.twitter.com/nasa' |
| 196 IS_SINGLE_PAGE_APP = True | 197 IS_SINGLE_PAGE_APP = True |
| 197 ITEM_SELECTOR = '.tweet-text' | 198 ITEM_SELECTOR = '.tweet-text' |
| 198 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 199 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 199 | 200 |
| 200 | 201 |
| 201 class WashingtonPostMobileStory(_NewsBrowsingStory): | 202 class WashingtonPostMobileStory(_NewsBrowsingStory): |
| 202 """Progressive website""" | 203 """Progressive website""" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 inner_save_function = 'document.querySelector(".nameAndIcons")' | 358 inner_save_function = 'document.querySelector(".nameAndIcons")' |
| 358 action_runner.WaitForElement(element_function=inner_save_function) | 359 action_runner.WaitForElement(element_function=inner_save_function) |
| 359 action_runner.ClickElement(element_function=inner_save_function) | 360 action_runner.ClickElement(element_function=inner_save_function) |
| 360 action_runner.Wait(1) # Wait to make navigation realistic. | 361 action_runner.Wait(1) # Wait to make navigation realistic. |
| 361 | 362 |
| 362 # Close selection. | 363 # Close selection. |
| 363 x_element_function = ('document.querySelector(' | 364 x_element_function = ('document.querySelector(' |
| 364 '".Button.borderless.close.visible")') | 365 '".Button.borderless.close.visible")') |
| 365 action_runner.ClickElement(element_function=x_element_function) | 366 action_runner.ClickElement(element_function=x_element_function) |
| 366 action_runner.Wait(1) # Wait to make navigation realistic. | 367 action_runner.Wait(1) # Wait to make navigation realistic. |
| OLD | NEW |