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()
setInjectScriptTags
public static void setInjectScriptTags(boolean injectScriptTags)
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.
- Throws:
java.io.IOException
injectJavaScript
public static long injectJavaScript(org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response,
java.io.InputStream in,
java.io.OutputStream out)
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 © {inceptionYear}-2007 null. All Rights Reserved.