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