Upstream version 9.37.197.0
[platform/framework/web/crosswalk.git] / src / tools / telemetry / telemetry / page / actions / reload.py
1 # Copyright 2013 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.actions import page_action
6
7 class ReloadAction(page_action.PageAction):
8   def __init__(self, attributes=None):
9     super(ReloadAction, self).__init__(attributes)
10
11   def RunAction(self, tab):
12     tab.ExecuteJavaScript('window.location.reload()')
13     tab.WaitForDocumentReadyStateToBeInteractiveOrBetter()