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 | 4 |
5 import re | 5 import re |
6 | 6 |
7 # pylint: disable=W0401,W0614 | |
8 from telemetry.page.actions.all_page_actions import * | |
9 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
10 from telemetry.page import page_set as page_set_module | 8 from telemetry.page import page_set as page_set_module |
11 | 9 |
12 | 10 |
13 def _CreateXpathFunction(xpath): | 11 def _CreateXpathFunction(xpath): |
14 return ('document.evaluate("%s",' | 12 return ('document.evaluate("%s",' |
15 'document,' | 13 'document,' |
16 'null,' | 14 'null,' |
17 'XPathResult.FIRST_ORDERED_NODE_TYPE,' | 15 'XPathResult.FIRST_ORDERED_NODE_TYPE,' |
18 'null)' | 16 'null)' |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 """ | 63 """ |
66 Description: Gmail endure test: compose and discard an email. | 64 Description: Gmail endure test: compose and discard an email. |
67 """ | 65 """ |
68 | 66 |
69 def __init__(self): | 67 def __init__(self): |
70 super(GmailComposeDiscardPageSet, self).__init__( | 68 super(GmailComposeDiscardPageSet, self).__init__( |
71 credentials_path='data/credentials.json', | 69 credentials_path='data/credentials.json', |
72 user_agent_type='desktop') | 70 user_agent_type='desktop') |
73 | 71 |
74 self.AddPage(GmailComposeDiscardPage(self)) | 72 self.AddPage(GmailComposeDiscardPage(self)) |
OLD | NEW |