OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2014 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.page_set import PageSet |
| 6 from telemetry.page.page import Page |
| 7 |
| 8 class TestPageSet(PageSet): |
| 9 def __init__(self): |
| 10 super(TestPageSet, self).__init__( |
| 11 description='A pageset for testing purpose', |
| 12 archive_data_file='data/test.json', |
| 13 credentials_path='data/credential', |
| 14 user_agent_type='desktop') |
| 15 |
| 16 #top google property; a google tab is often open |
| 17 class Google(Page): |
| 18 def __init__(self): |
| 19 super(Google, self).__init__('https://www.google.com') |
| 20 |
| 21 def RunGetActionRunner(self, action_runner): |
| 22 return action_runner |
| 23 |
| 24 self.AddPage(Google()) |
| 25 |
OLD | NEW |