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 shared_page_state
6 from telemetry
import story
9 class AndroidAcceptancePage(page_module
.Page
):
11 def __init__(self
, url
, page_set
, name
=''):
12 super(AndroidAcceptancePage
, self
).__init
__(
13 url
=url
, page_set
=page_set
, name
=name
,
14 # Android acceptance uses desktop.
15 shared_page_state_class
=shared_page_state
.SharedDesktopPageState
,
16 credentials_path
= 'data/credentials.json')
17 self
.archive_data_file
= 'data/android_acceptance.json'
19 def RunPageInteractions(self
, action_runner
):
20 action_runner
.Wait(40)
23 class AndroidAcceptancePageSet(story
.StorySet
):
25 """ Pages used in android acceptance testing. """
28 super(AndroidAcceptancePageSet
, self
).__init
__(
29 archive_data_file
='data/android_acceptance.json',
30 cloud_storage_bucket
=story
.PARTNER_BUCKET
)
33 'http://www.amazon.com',
39 self
.AddStory(AndroidAcceptancePage(url
, self
))