| 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 class BrowseTOIMobileStory(_ArticleBrowsingStory): | 563 class BrowseTOIMobileStory(_ArticleBrowsingStory): |
| 564 NAME = 'browse:news:toi' | 564 NAME = 'browse:news:toi' |
| 565 URL = 'http://m.timesofindia.com' | 565 URL = 'http://m.timesofindia.com' |
| 566 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 566 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 567 TAGS = [story_tags.EMERGING_MARKET] | 567 TAGS = [story_tags.EMERGING_MARKET] |
| 568 | 568 |
| 569 ITEMS_TO_VISIT = 4 | 569 ITEMS_TO_VISIT = 4 |
| 570 ITEM_SELECTOR = '.dummy-img' | 570 ITEM_SELECTOR = '.dummy-img' |
| 571 | 571 |
| 572 | 572 |
| 573 @decorators.Disabled('android') # crbug.com/713036. |
| 573 class BrowseGloboMobileStory(_ArticleBrowsingStory): | 574 class BrowseGloboMobileStory(_ArticleBrowsingStory): |
| 574 NAME = 'browse:news:globo' | 575 NAME = 'browse:news:globo' |
| 575 URL = 'http://www.globo.com' | 576 URL = 'http://www.globo.com' |
| 576 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 577 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 577 TAGS = [story_tags.EMERGING_MARKET] | 578 TAGS = [story_tags.EMERGING_MARKET] |
| 578 | 579 |
| 579 ITEMS_TO_VISIT = 4 | 580 ITEMS_TO_VISIT = 4 |
| 580 ITEM_SELECTOR = '.hui-premium__title' | 581 ITEM_SELECTOR = '.hui-premium__title' |
| 581 | 582 |
| 582 | 583 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 action_runner.Wait(0.5) | 638 action_runner.Wait(0.5) |
| 638 action_runner.EnterText('Google Mountain View') | 639 action_runner.EnterText('Google Mountain View') |
| 639 action_runner.PressKey('Return') | 640 action_runner.PressKey('Return') |
| 640 action_runner.WaitForElement(selector=self._DIRECTIONS_LOADED) | 641 action_runner.WaitForElement(selector=self._DIRECTIONS_LOADED) |
| 641 action_runner.WaitForNetworkQuiescence() | 642 action_runner.WaitForNetworkQuiescence() |
| 642 action_runner.Wait(2) # Seeing direction | 643 action_runner.Wait(2) # Seeing direction |
| 643 | 644 |
| 644 def _ClickLink(self, selector, action_runner): | 645 def _ClickLink(self, selector, action_runner): |
| 645 action_runner.WaitForElement(selector=selector) | 646 action_runner.WaitForElement(selector=selector) |
| 646 action_runner.ClickElement(selector=selector) | 647 action_runner.ClickElement(selector=selector) |
| OLD | NEW |