Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: tools/chrome_proxy/webdriver/examples.py

Issue 2693193004: Add ChromeDriver test for HTTPS bypass, QUIC smoke test (Closed)
Patch Set: robertogden's comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/chrome_proxy/webdriver/bypass.py ('k') | tools/chrome_proxy/webdriver/smoke.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import sys 5 import sys
6 import time 6 import time
7 7
8 import common 8 import common
9 from common import TestDriver 9 from common import TestDriver
10 from common import IntegrationTest 10 from common import IntegrationTest
11 11
12 12
13 class SimpleSmoke(IntegrationTest): 13 class Examples(IntegrationTest):
14 14
15 # Simple example integration test. 15 # Simple example integration test.
16 def testCheckPageWithProxy(self): 16 def testCheckPageWithProxy(self):
17 with TestDriver() as t: 17 with TestDriver() as t:
18 t.AddChromeArg('--enable-spdy-proxy-auth') 18 t.AddChromeArg('--enable-spdy-proxy-auth')
19 t.LoadURL('http://check.googlezip.net/test.html') 19 t.LoadURL('http://check.googlezip.net/test.html')
20 print 'Document Title: ', t.ExecuteJavascriptStatement('document.title', 20 print 'Document Title: ', t.ExecuteJavascriptStatement('document.title',
21 timeout=1) 21 timeout=1)
22 responses = t.GetHTTPResponses() 22 responses = t.GetHTTPResponses()
23 for response in responses: 23 for response in responses:
(...skipping 25 matching lines...) Expand all
49 # Show how to use WaitForJavascriptExpression 49 # Show how to use WaitForJavascriptExpression
50 def testHTML5(self): 50 def testHTML5(self):
51 with TestDriver() as t: 51 with TestDriver() as t:
52 t.AddChromeArg('--enable-spdy-proxy-auth') 52 t.AddChromeArg('--enable-spdy-proxy-auth')
53 t.LoadURL('http://html5test.com/') 53 t.LoadURL('http://html5test.com/')
54 t.WaitForJavascriptExpression( 54 t.WaitForJavascriptExpression(
55 'document.getElementsByClassName("pointsPanel")', 15) 55 'document.getElementsByClassName("pointsPanel")', 15)
56 56
57 if __name__ == '__main__': 57 if __name__ == '__main__':
58 IntegrationTest.RunAllTests() 58 IntegrationTest.RunAllTests()
OLDNEW
« no previous file with comments | « tools/chrome_proxy/webdriver/bypass.py ('k') | tools/chrome_proxy/webdriver/smoke.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698