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

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

Issue 2550433002: Add GetResponses() and related funcionality (Closed)
Patch Set: 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
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..624ddafa1f9bb8a417097400052e799d1c973958 100644
--- a/tools/chrome_proxy/webdriver/simple_smoke.py
+++ b/tools/chrome_proxy/webdriver/simple_smoke.py
@@ -18,6 +18,11 @@ 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, UsedHTTPS: %s, ViaHeader: %s, XHR: %s" % (response.url,
+ response.UsedHTTPS(), response.ResponseHasViaHeader(),
+ response.WasXHR())
if __name__ == '__main__':
test = SimpleSmoke()
« tools/chrome_proxy/webdriver/common.py ('K') | « tools/chrome_proxy/webdriver/common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698