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

Unified Diff: chrome/test/webdriver/automation.h

Issue 5572001: Send screenshots back to the client for debugging (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: added tests which compare against a reference md5 hash Created 9 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
Index: chrome/test/webdriver/automation.h
diff --git a/chrome/test/webdriver/automation.h b/chrome/test/webdriver/automation.h
index 1fedda6a342ac5f442e06c28a74e1d74be3cf7fb..95b1436603c1d4c47bdf6cf7f2f35244be631121 100644
--- a/chrome/test/webdriver/automation.h
+++ b/chrome/test/webdriver/automation.h
@@ -59,6 +59,11 @@ class Automation {
// been processed by the web page.
void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success);
+ // Returns a string containing the raw binary data of a PNG image of the
+ // tab requested. The PNG will contain the entire page, including what
+ // is not in the current view on the screen.
+ void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, bool* success);
+
void NavigateToURL(int tab_id, const std::string& url, bool* success);
void GoForward(int tab_id, bool* success);
void GoBack(int tab_id, bool* success);

Powered by Google App Engine
This is Rietveld 408576698