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

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

Issue 2901153002: Fixed specification of Page.captureScreenshot's fromSurface argument. (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py
diff --git a/telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py b/telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py
index 3ca06345d8a363309eced59ad65d880e92303474..46352db56b5ace06d5037153b78fd39504da4bd9 100644
--- a/telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py
+++ b/telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py
@@ -139,11 +139,13 @@ class InspectorPage(object):
def CaptureScreenshot(self, timeout=60):
request = {
'method': 'Page.captureScreenshot',
- # TODO(rmistry): when Chrome is running in headless mode, this
- # will need to pass True. Telemetry needs to understand
- # whether the browser is in headless mode, and pass that
- # knowledge down to this method.
- 'fromSurface': False
+ 'params': {
+ # TODO(rmistry): when Chrome is running in headless mode, this
+ # will need to pass True. Telemetry needs to understand
+ # whether the browser is in headless mode, and pass that
+ # knowledge down to this method.
+ 'fromSurface': False
+ }
}
# "Google API are missing..." infobar might cause a viewport resize
# which invalidates screenshot request. See crbug.com/459820.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698