1 # Copyright 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.
5 from telemetry
.page
import page
as page_module
6 from telemetry
.page
import page_set
as page_set_module
9 class TypicalMobileSitesPage(page_module
.Page
):
11 def __init__(self
, url
, page_set
):
12 super(TypicalMobileSitesPage
, self
).__init
__(
13 url
=url
, page_set
=page_set
, credentials_path
= 'data/credentials.json')
14 self
.user_agent_type
= 'mobile'
15 self
.archive_data_file
= 'data/typical_mobile_sites.json'
17 def RunPageInteractions(self
, action_runner
):
19 action_runner
.ScrollPage()
22 class TypicalMobileSitesPageSet(page_set_module
.PageSet
):
25 super(TypicalMobileSitesPageSet
, self
).__init
__(
26 user_agent_type
='mobile',
27 archive_data_file
='data/typical_mobile_sites.json',
28 bucket
=page_set_module
.PARTNER_BUCKET
)
42 'http://chicagotribune.com',
43 'http://wikipedia.com',
44 'http://sfbay.craigslist.org',
47 'http://amazon.co.jp',
53 self
.AddPage(TypicalMobileSitesPage(url
, self
))