OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from telemetry.page import page |
| 6 from telemetry.page import cache_temperature as cache_temperature_module |
| 7 from telemetry.page import shared_page_state |
| 8 |
| 9 _TTI_WAIT_TIME = 10 |
| 10 |
| 11 class PageCyclerStory(page.Page): |
| 12 |
| 13 def __init__(self, url, page_set, |
| 14 shared_page_state_class=shared_page_state.SharedDesktopPageState, |
| 15 cache_temperature=cache_temperature_module.ANY, **kwargs): |
| 16 super(PageCyclerStory, self).__init__( |
| 17 url=url, page_set=page_set, |
| 18 shared_page_state_class=shared_page_state_class, |
| 19 cache_temperature=cache_temperature, |
| 20 **kwargs) |
| 21 |
| 22 def RunPageInteractions(self, action_runner): |
| 23 action_runner.tab.WaitForDocumentReadyStateToBeComplete() |
| 24 action_runner.Wait(_TTI_WAIT_TIME) |
OLD | NEW |