| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 if has_button: | 230 if has_button: |
| 231 action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR) | 231 action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR) |
| 232 super(WashingtonPostMobileStory, self)._DidLoadDocument(action_runner) | 232 super(WashingtonPostMobileStory, self)._DidLoadDocument(action_runner) |
| 233 | 233 |
| 234 | 234 |
| 235 ############################################################################## | 235 ############################################################################## |
| 236 # Search browsing stories. | 236 # Search browsing stories. |
| 237 ############################################################################## | 237 ############################################################################## |
| 238 | 238 |
| 239 | 239 |
| 240 @decorators.Disabled('win') # crbug.com/673775 |
| 240 class GoogleDesktopStory(_NewsBrowsingStory): | 241 class GoogleDesktopStory(_NewsBrowsingStory): |
| 241 """ | 242 """ |
| 242 A typical google search story: | 243 A typical google search story: |
| 243 _ Start at https://www.google.com/search?q=flower | 244 _ Start at https://www.google.com/search?q=flower |
| 244 _ Click on the wikipedia link & navigate to | 245 _ Click on the wikipedia link & navigate to |
| 245 https://en.wikipedia.org/wiki/Flower | 246 https://en.wikipedia.org/wiki/Flower |
| 246 _ Scroll down the wikipedia page about flower. | 247 _ Scroll down the wikipedia page about flower. |
| 247 _ Back to the search main page. | 248 _ Back to the search main page. |
| 248 _ Refine the search query to 'flower delivery'. | 249 _ Refine the search query to 'flower delivery'. |
| 249 _ Scroll down the page. | 250 _ Scroll down the page. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 inner_save_function = 'document.querySelector(".nameAndIcons")' | 427 inner_save_function = 'document.querySelector(".nameAndIcons")' |
| 427 action_runner.WaitForElement(element_function=inner_save_function) | 428 action_runner.WaitForElement(element_function=inner_save_function) |
| 428 action_runner.ClickElement(element_function=inner_save_function) | 429 action_runner.ClickElement(element_function=inner_save_function) |
| 429 action_runner.Wait(1) # Wait to make navigation realistic. | 430 action_runner.Wait(1) # Wait to make navigation realistic. |
| 430 | 431 |
| 431 # Close selection. | 432 # Close selection. |
| 432 x_element_function = ('document.querySelector(' | 433 x_element_function = ('document.querySelector(' |
| 433 '".Button.borderless.close.visible")') | 434 '".Button.borderless.close.visible")') |
| 434 action_runner.ClickElement(element_function=x_element_function) | 435 action_runner.ClickElement(element_function=x_element_function) |
| 435 action_runner.Wait(1) # Wait to make navigation realistic. | 436 action_runner.Wait(1) # Wait to make navigation realistic. |
| OLD | NEW |