org.openqa.selenium.server
Class InjectionHelper
java.lang.Object
org.openqa.selenium.server.InjectionHelper
public class InjectionHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectionHelper
public InjectionHelper()
setBrowserSideLogEnabled
public static void setBrowserSideLogEnabled(boolean browserSideLogEnabled)
setInjectScriptTags
public static void setInjectScriptTags(boolean injectScriptTags)
setTryToInjectInHead
public static void setTryToInjectInHead(boolean tryToInjectInHead)
setInjectionHtml
public static void setInjectionHtml(java.lang.String injectionHtml)
saveJsStateInitializer
public static void saveJsStateInitializer(java.lang.String sessionId,
java.lang.String uniqueId,
java.lang.String jsVarName,
java.lang.String jsStateInitializer)
restoreJsStateInitializer
public static java.lang.String restoreJsStateInitializer(java.lang.String sessionId,
java.lang.String uniqueId)
init
public static void init()
- re-read selenium js. Don't maintain it indefinitely for now since then we would need to restart
the server to see changes. Once the selenium js is firm, this should change.
injectJavaScript
public static long injectJavaScript(HttpRequest request,
HttpResponse response,
java.io.InputStream in,
java.io.OutputStream out,
java.lang.String debugURL)
throws java.io.IOException
- Throws:
java.io.IOException
addUserContentTransformation
public static boolean addUserContentTransformation(java.lang.String before,
java.lang.String after)
addUserJsInjectionFile
public static boolean addUserJsInjectionFile(java.lang.String fileName)
userContentTransformationsExist
public static boolean userContentTransformationsExist()
userJsInjectionsExist
public static boolean userJsInjectionsExist()
isFailOnError
public static boolean isFailOnError()
setFailOnError
public static void setFailOnError(boolean failOnError)
Copyright © 2012. All Rights Reserved.