| OLD | NEW |
| 1 # encoding: utf-8 | 1 # encoding: utf-8 |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 from page_sets.system_health import platforms | 6 from page_sets.system_health import platforms |
| 7 from page_sets.system_health import story_tags | 7 from page_sets.system_health import story_tags |
| 8 from page_sets.system_health import system_health_story | 8 from page_sets.system_health import system_health_story |
| 9 | 9 |
| 10 from page_sets.login_helpers import pinterest_login | 10 from page_sets.login_helpers import pinterest_login |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 | 205 |
| 206 class TwitterMobileStory(_ArticleBrowsingStory): | 206 class TwitterMobileStory(_ArticleBrowsingStory): |
| 207 NAME = 'browse:social:twitter' | 207 NAME = 'browse:social:twitter' |
| 208 URL = 'https://www.twitter.com/nasa' | 208 URL = 'https://www.twitter.com/nasa' |
| 209 ITEM_SELECTOR = '.Tweet-text' | 209 ITEM_SELECTOR = '.Tweet-text' |
| 210 CONTAINER_SELECTOR = '.NavigationSheet' | 210 CONTAINER_SELECTOR = '.NavigationSheet' |
| 211 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 211 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 212 | 212 |
| 213 | 213 |
| 214 @decorators.Disabled('win') # crbug.com/662971 | |
| 215 class TwitterDesktopStory(_ArticleBrowsingStory): | 214 class TwitterDesktopStory(_ArticleBrowsingStory): |
| 216 NAME = 'browse:social:twitter' | 215 NAME = 'browse:social:twitter' |
| 217 URL = 'https://www.twitter.com/nasa' | 216 URL = 'https://www.twitter.com/nasa' |
| 218 IS_SINGLE_PAGE_APP = True | 217 IS_SINGLE_PAGE_APP = True |
| 219 ITEM_SELECTOR = '.tweet-text' | 218 ITEM_SELECTOR = '.tweet-text' |
| 220 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 219 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 221 | 220 |
| 222 | 221 |
| 223 class WashingtonPostMobileStory(_ArticleBrowsingStory): | 222 class WashingtonPostMobileStory(_ArticleBrowsingStory): |
| 224 """Progressive website""" | 223 """Progressive website""" |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 # Reduce the speed (the current wpr is recorded with speed set to 50) when | 776 # Reduce the speed (the current wpr is recorded with speed set to 50) when |
| 778 # recording the wpr. If we scroll too fast, the data will not be recorded | 777 # recording the wpr. If we scroll too fast, the data will not be recorded |
| 779 # well. After recording reset it back to the original value to have a more | 778 # well. After recording reset it back to the original value to have a more |
| 780 # realistic scroll. | 779 # realistic scroll. |
| 781 action_runner.RepeatableBrowserDrivenScroll( | 780 action_runner.RepeatableBrowserDrivenScroll( |
| 782 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, | 781 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, |
| 783 repeat_count=3, speed=400, timeout=120) | 782 repeat_count=3, speed=400, timeout=120) |
| 784 action_runner.RepeatableBrowserDrivenScroll( | 783 action_runner.RepeatableBrowserDrivenScroll( |
| 785 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, | 784 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, |
| 786 repeat_count=3, speed=500, timeout=120) | 785 repeat_count=3, speed=500, timeout=120) |
| OLD | NEW |