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

Unified Diff: telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py

Issue 1765283002: [Telemetry] Print out console output instead of page state on TimeoutException (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Remove dump_page_state_on_timeout Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/internal/backends/chrome_inspector/inspector_console.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
diff --git a/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py b/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
index e74ddcec9999e68ea70499e8943394fa19de0355..29ddf87bc89d16fc761214b5bf0425cc9be6bbd5 100644
--- a/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
+++ b/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py
@@ -170,6 +170,12 @@ class InspectorBackend(object):
def GetCookieByName(self, name, timeout):
return self._page.GetCookieByName(name, timeout)
+ # Console public methods.
+
+ @_HandleInspectorWebSocketExceptions
+ def GetCurrentConsoleOutputBuffer(self, timeout=10):
+ return self._console.GetCurrentConsoleOutputBuffer(timeout)
+
# Runtime public methods.
@_HandleInspectorWebSocketExceptions
« no previous file with comments | « no previous file | telemetry/telemetry/internal/backends/chrome_inspector/inspector_console.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698