Created
October 6, 2011 14:49
-
-
Save davehunt/1267587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: java/server/src/org/openqa/selenium/server/SeleniumDriverResourceHandler.java | |
=================================================================== | |
--- java/server/src/org/openqa/selenium/server/SeleniumDriverResourceHandler.java (revision 14055) | |
+++ java/server/src/org/openqa/selenium/server/SeleniumDriverResourceHandler.java (working copy) | |
@@ -624,6 +624,9 @@ | |
|| SeleniumCoreCommand.CAPTURE_ENTIRE_PAGE_SCREENSHOT_ID.equals(cmd)) { | |
return "Got result: [base64 encoded PNG] on session " + sessionId; | |
} | |
+ if (SeleniumCoreCommand.GET_HTML_SOURCE_ID.equals(cmd)) { | |
+ return "Got result: [HTML source] on session " + sessionId; | |
+ } | |
if (RetrieveLastRemoteControlLogsCommand.ID.equals(cmd)) { | |
/* Trim logs to avoid Larsen effect (see remote control stability tests) */ | |
trucatedResults = results.length() > 30 ? results.substring(0, 30) : results; | |
Index: java/server/src/org/openqa/selenium/server/commands/SeleniumCoreCommand.java | |
=================================================================== | |
--- java/server/src/org/openqa/selenium/server/commands/SeleniumCoreCommand.java (revision 14055) | |
+++ java/server/src/org/openqa/selenium/server/commands/SeleniumCoreCommand.java (working copy) | |
@@ -13,6 +13,7 @@ | |
public static final String CAPTURE_ENTIRE_PAGE_SCREENSHOT_ID = "captureEntirePageScreenshot"; | |
+ public static final String GET_HTML_SOURCE_ID = "getHtmlSource"; | |
private static final Logger log = Logger.getLogger(SeleniumCoreCommand.class.getName()); | |
private final String id; | |
private final List<String> values; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment