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