| 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 system_health_story | 7 from page_sets.system_health import system_health_story |
| 8 | 8 |
| 9 from page_sets.login_helpers import pinterest_login | 9 from page_sets.login_helpers import pinterest_login |
| 10 | 10 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 @decorators.Disabled('win') # crbug.com/662971 | 205 @decorators.Disabled('win') # crbug.com/662971 |
| 206 class TwitterDesktopStory(_NewsBrowsingStory): | 206 class TwitterDesktopStory(_NewsBrowsingStory): |
| 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 IS_SINGLE_PAGE_APP = True | 209 IS_SINGLE_PAGE_APP = True |
| 210 ITEM_SELECTOR = '.tweet-text' | 210 ITEM_SELECTOR = '.tweet-text' |
| 211 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY | 211 SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY |
| 212 | 212 |
| 213 | 213 |
| 214 @decorators.Disabled('all') # crbug.com/688190 |
| 214 class WashingtonPostMobileStory(_NewsBrowsingStory): | 215 class WashingtonPostMobileStory(_NewsBrowsingStory): |
| 215 """Progressive website""" | 216 """Progressive website""" |
| 216 NAME = 'browse:news:washingtonpost' | 217 NAME = 'browse:news:washingtonpost' |
| 217 URL = 'https://www.washingtonpost.com/pwa' | 218 URL = 'https://www.washingtonpost.com/pwa' |
| 218 IS_SINGLE_PAGE_APP = True | 219 IS_SINGLE_PAGE_APP = True |
| 219 ITEM_SELECTOR = '.hed > a' | 220 ITEM_SELECTOR = '.hed > a' |
| 220 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 221 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 221 _CLOSE_BUTTON_SELECTOR = '.close' | 222 _CLOSE_BUTTON_SELECTOR = '.close' |
| 222 | 223 |
| 223 def _DidLoadDocument(self, action_runner): | 224 def _DidLoadDocument(self, action_runner): |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 inner_save_function = 'document.querySelector(".nameAndIcons")' | 472 inner_save_function = 'document.querySelector(".nameAndIcons")' |
| 472 action_runner.WaitForElement(element_function=inner_save_function) | 473 action_runner.WaitForElement(element_function=inner_save_function) |
| 473 action_runner.ClickElement(element_function=inner_save_function) | 474 action_runner.ClickElement(element_function=inner_save_function) |
| 474 action_runner.Wait(1) # Wait to make navigation realistic. | 475 action_runner.Wait(1) # Wait to make navigation realistic. |
| 475 | 476 |
| 476 # Close selection. | 477 # Close selection. |
| 477 x_element_function = ('document.querySelector(' | 478 x_element_function = ('document.querySelector(' |
| 478 '".Button.borderless.close.visible")') | 479 '".Button.borderless.close.visible")') |
| 479 action_runner.ClickElement(element_function=x_element_function) | 480 action_runner.ClickElement(element_function=x_element_function) |
| 480 action_runner.Wait(1) # Wait to make navigation realistic. | 481 action_runner.Wait(1) # Wait to make navigation realistic. |
| OLD | NEW |