| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
| 5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
| 6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
| 8 | 8 |
| 9 | 9 |
| 10 class KeyMobileSitesPage(page_module.Page): | 10 class KeyMobileSitesPage(page_module.Page): |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 def __init__(self, page_set): | 239 def __init__(self, page_set): |
| 240 super(Page16, self).__init__( | 240 super(Page16, self).__init__( |
| 241 # pylint: disable=C0301 | 241 # pylint: disable=C0301 |
| 242 url='http://answers.yahoo.com/question/index?qid=20110117024343AAopj8f', | 242 url='http://answers.yahoo.com/question/index?qid=20110117024343AAopj8f', |
| 243 page_set=page_set) | 243 page_set=page_set) |
| 244 | 244 |
| 245 def RunNavigateSteps(self, action_runner): | 245 def RunNavigateSteps(self, action_runner): |
| 246 action_runner.NavigateToPage(self) | 246 action_runner.NavigateToPage(self) |
| 247 action_runner.WaitForElement(text='Other Answers (1 - 20 of 149)') | 247 action_runner.WaitForElement(text='Other Answers (1 - 20 of 149)') |
| 248 action_runner.RunAction(ClickElementAction( | 248 action_runner.ClickElement(text='Other Answers (1 - 20 of 149)') |
| 249 { | |
| 250 'text': 'Other Answers (1 - 20 of 149)' | |
| 251 })) | |
| 252 | 249 |
| 253 | 250 |
| 254 class Page17(KeyMobileSitesPage): | 251 class Page17(KeyMobileSitesPage): |
| 255 | 252 |
| 256 """ Why: productivity, top google properties """ | 253 """ Why: productivity, top google properties """ |
| 257 | 254 |
| 258 def __init__(self, page_set): | 255 def __init__(self, page_set): |
| 259 super(Page17, self).__init__( | 256 super(Page17, self).__init__( |
| 260 url='https://mail.google.com/mail/', | 257 url='https://mail.google.com/mail/', |
| 261 page_set=page_set) | 258 page_set=page_set) |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 'http://www.deviantart.com/', | 545 'http://www.deviantart.com/', |
| 549 # Why: Top search engine | 546 # Why: Top search engine |
| 550 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' | 547 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' |
| 551 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), | 548 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
| 552 # Why: Top search engine | 549 # Why: Top search engine |
| 553 'http://www.bing.com/search?q=sloths' | 550 'http://www.bing.com/search?q=sloths' |
| 554 ] | 551 ] |
| 555 | 552 |
| 556 for url in urls_list: | 553 for url in urls_list: |
| 557 self.AddPage(KeyMobileSitesPage(url, self)) | 554 self.AddPage(KeyMobileSitesPage(url, self)) |
| OLD | NEW |