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

Unified Diff: tools/chrome_proxy/webdriver/simple_smoke.py

Issue 2550433002: Add GetResponses() and related funcionality (Closed)
Patch Set: Fix doc. Remove proxy scheme. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/simple_smoke.py
diff --git a/tools/chrome_proxy/webdriver/simple_smoke.py b/tools/chrome_proxy/webdriver/simple_smoke.py
index c07b44778dad8f6bf30a20ecc5d8800b42ea058d..f1e537e2760ebffad365c35965733b4b688d3fb3 100644
--- a/tools/chrome_proxy/webdriver/simple_smoke.py
+++ b/tools/chrome_proxy/webdriver/simple_smoke.py
@@ -18,6 +18,10 @@ class SimpleSmoke(IntegrationTest):
t.LoadPage()
print 'Document Title: ', t.ExecuteJavascript('document.title')
time.sleep(5)
+ responses = t.GetHTTPResponses()
+ for response in responses:
+ print "URL: %s, ViaHeader: %s, XHR: %s" % (response.url,
+ response.ResponseHasViaHeader(), response.WasXHR())
if __name__ == '__main__':
test = SimpleSmoke()
« no previous file with comments | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698