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.
4 from telemetry
.page
import page
as page_module
5 from telemetry
.page
import page_set
as page_set_module
8 class AndroidAcceptancePage(page_module
.Page
):
10 def __init__(self
, url
, page_set
, name
=''):
11 super(AndroidAcceptancePage
, self
).__init
__(
12 url
=url
, page_set
=page_set
, name
=name
,
13 credentials_path
= 'data/credentials.json')
14 self
.user_agent_type
= 'desktop'
15 self
.archive_data_file
= 'data/android_acceptance.json'
17 def RunPageInteractions(self
, action_runner
):
18 action_runner
.Wait(40)
21 class AndroidAcceptancePageSet(page_set_module
.PageSet
):
23 """ Pages used in android acceptance testing. """
26 super(AndroidAcceptancePageSet
, self
).__init
__(
27 user_agent_type
='desktop', # Android acceptance uses desktop.
28 archive_data_file
='data/android_acceptance.json',
29 bucket
=page_set_module
.PARTNER_BUCKET
)
32 'http://www.amazon.com',
38 self
.AddPage(AndroidAcceptancePage(url
, self
))