OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from page_sets.login_helpers import mobile_facebook_login | 5 from page_sets.login_helpers import facebook_login |
6 | 6 |
7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
8 | 8 |
| 9 |
9 class MobileFacebookPage(page_module.Page): | 10 class MobileFacebookPage(page_module.Page): |
10 def __init__(self, url, page_set, shared_page_state_class, name='facebook'): | 11 def __init__(self, url, page_set, shared_page_state_class, name='facebook'): |
11 super(MobileFacebookPage, self).__init__( | 12 super(MobileFacebookPage, self).__init__( |
12 url=url, page_set=page_set, name=name, | 13 url=url, page_set=page_set, name=name, |
13 credentials_path='data/credentials.json', | 14 credentials_path='data/credentials.json', |
14 shared_page_state_class=shared_page_state_class) | 15 shared_page_state_class=shared_page_state_class) |
15 def RunNavigateSteps(self, action_runner): | 16 def RunNavigateSteps(self, action_runner): |
16 mobile_facebook_login.LoginAccount(action_runner, 'facebook3', | 17 facebook_login.LoginWithMobileSite(action_runner, 'facebook3', |
17 self.credentials_path) | 18 self.credentials_path) |
18 super(MobileFacebookPage, self).RunNavigateSteps(action_runner) | 19 super(MobileFacebookPage, self).RunNavigateSteps(action_runner) |
OLD | NEW |