| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 class BrowseTOIMobileStory(_ArticleBrowsingStory): | 552 class BrowseTOIMobileStory(_ArticleBrowsingStory): |
| 553 NAME = 'browse:news:toi' | 553 NAME = 'browse:news:toi' |
| 554 URL = 'http://m.timesofindia.com' | 554 URL = 'http://m.timesofindia.com' |
| 555 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 555 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 556 TAGS = [story_tags.EMERGING_MARKET] | 556 TAGS = [story_tags.EMERGING_MARKET] |
| 557 | 557 |
| 558 ITEMS_TO_VISIT = 4 | 558 ITEMS_TO_VISIT = 4 |
| 559 ITEM_SELECTOR = '.dummy-img' | 559 ITEM_SELECTOR = '.dummy-img' |
| 560 | 560 |
| 561 | 561 |
| 562 @decorators.Disabled('android') # crbug.com/714650 |
| 562 class BrowseGloboMobileStory(_ArticleBrowsingStory): | 563 class BrowseGloboMobileStory(_ArticleBrowsingStory): |
| 563 NAME = 'browse:news:globo' | 564 NAME = 'browse:news:globo' |
| 564 URL = 'http://www.globo.com' | 565 URL = 'http://www.globo.com' |
| 565 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY | 566 SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY |
| 566 TAGS = [story_tags.EMERGING_MARKET] | 567 TAGS = [story_tags.EMERGING_MARKET] |
| 567 | 568 |
| 568 ITEMS_TO_VISIT = 3 # 4 links causes renderer OOM crbug.com/714650. | 569 ITEMS_TO_VISIT = 3 # 4 links causes renderer OOM crbug.com/714650. |
| 569 ITEM_SELECTOR = '.hui-premium__title' | 570 ITEM_SELECTOR = '.hui-premium__title' |
| 570 COMPLETE_STATE_WAIT_TIMEOUT = 150 | 571 COMPLETE_STATE_WAIT_TIMEOUT = 150 |
| 571 | 572 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 # Reduce the speed (the current wpr is recorded with speed set to 50) when | 763 # Reduce the speed (the current wpr is recorded with speed set to 50) when |
| 763 # recording the wpr. If we scroll too fast, the data will not be recorded | 764 # recording the wpr. If we scroll too fast, the data will not be recorded |
| 764 # well. After recording reset it back to the original value to have a more | 765 # well. After recording reset it back to the original value to have a more |
| 765 # realistic scroll. | 766 # realistic scroll. |
| 766 action_runner.RepeatableBrowserDrivenScroll( | 767 action_runner.RepeatableBrowserDrivenScroll( |
| 767 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, | 768 x_scroll_distance_ratio = 0.0, y_scroll_distance_ratio = 1, |
| 768 repeat_count=3, speed=400, timeout=120) | 769 repeat_count=3, speed=400, timeout=120) |
| 769 action_runner.RepeatableBrowserDrivenScroll( | 770 action_runner.RepeatableBrowserDrivenScroll( |
| 770 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, | 771 x_scroll_distance_ratio = 1, y_scroll_distance_ratio = 0, |
| 771 repeat_count=3, speed=500, timeout=120) | 772 repeat_count=3, speed=500, timeout=120) |
| OLD | NEW |