com.gargoylesoftware.htmlunit.javascript.background
Class JavaScriptStringJob
java.lang.Object
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJob
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptStringJob
- All Implemented Interfaces:
- Comparable<JavaScriptJob>, Runnable
public class JavaScriptStringJob
- extends JavaScriptExecutionJob
A JavaScriptExecutionJob
created from a string of code.
- Version:
- $Revision: 5301 $
- Author:
- Brad Clarke
JavaScriptStringJob
public JavaScriptStringJob(int initialDelay,
Integer period,
String label,
WebWindow window,
String script)
- Creates a new JavaScript execution job, where the JavaScript code to execute is a string.
- Parameters:
initialDelay
- the initial amount of time to wait before executing this jobperiod
- the amount of time to wait between executions of this job (may be null)label
- the label for the jobwindow
- the window to which the job belongsscript
- the JavaScript code to execute
runJavaScript
protected void runJavaScript(HtmlPage page)
- Run the JavaScript from the concrete class.
- Specified by:
runJavaScript
in class JavaScriptExecutionJob
- Parameters:
page
- the HtmlPage
that owns the script
Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.