Package | Description |
---|---|
com.gargoylesoftware.htmlunit |
Framework classes (contains the WebClient class which is the main entry point).
|
com.gargoylesoftware.htmlunit.html |
Classes specific to HTML pages, particularly the HtmlPage which represents
an HTML document and provides access to its content.
|
com.gargoylesoftware.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
com.gargoylesoftware.htmlunit.svg |
Classes specific to Scalable Vector Graphics
|
Modifier and Type | Method and Description |
---|---|
protected InteractivePage |
InteractivePage.clone()
Creates a clone of this instance.
|
InteractivePage |
InteractivePage.cloneNode(boolean deep)
Override cloneNode to add cloned elements to the clone, not to the original.
|
InteractivePage |
ScriptException.getPage()
Gets the HTML page in which the script error occurred.
Caution: this page may be only partially parsed if the exception occurred in a script executed at parsing time. |
Constructor and Description |
---|
ScriptException(InteractivePage page,
Throwable throwable,
String scriptSourceCode)
Creates an instance.
|
Modifier and Type | Class and Description |
---|---|
class |
HtmlPage
A representation of an HTML page returned from a server.
|
class |
XHtmlPage
A representation of an XHTML page returned from a server.
|
Modifier and Type | Method and Description |
---|---|
Object |
JavaScriptEngine.callFunction(InteractivePage page,
net.sourceforge.htmlunit.corejs.javascript.Function javaScriptFunction,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObject,
Object[] args,
DomNode node)
Calls a JavaScript function and return the result.
|
Object |
JavaScriptEngine.callFunction(InteractivePage page,
net.sourceforge.htmlunit.corejs.javascript.Function function,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObject,
Object[] args)
Calls the given function taking care of synchronization issues.
|
net.sourceforge.htmlunit.corejs.javascript.Script |
JavaScriptEngine.compile(InteractivePage owningPage,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
String sourceCode,
String sourceName,
int startLine)
Compiles the specified JavaScript code in the context of a given scope.
|
net.sourceforge.htmlunit.corejs.javascript.Script |
JavaScriptEngine.compile(InteractivePage page,
String sourceCode,
String sourceName,
int startLine)
Compiles the specified JavaScript code in the context of a given HTML page.
|
Object |
JavaScriptEngine.execute(InteractivePage page,
net.sourceforge.htmlunit.corejs.javascript.Script script)
Executes the specified JavaScript code in the context of a given page.
|
Object |
JavaScriptEngine.execute(InteractivePage page,
net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
net.sourceforge.htmlunit.corejs.javascript.Script script)
Executes the specified JavaScript code in the given scope.
|
Object |
JavaScriptEngine.execute(InteractivePage page,
String sourceCode,
String sourceName,
int startLine)
Executes the specified JavaScript code in the context of a given page.
|
void |
DefaultJavaScriptErrorListener.loadScriptError(InteractivePage page,
URL scriptUrl,
Exception exception) |
void |
JavaScriptErrorListener.loadScriptError(InteractivePage page,
URL scriptUrl,
Exception exception)
Informs about an exception during load of an javascript file refereed from a page.
|
void |
DefaultJavaScriptErrorListener.malformedScriptURL(InteractivePage page,
String url,
MalformedURLException malformedURLException) |
void |
JavaScriptErrorListener.malformedScriptURL(InteractivePage page,
String url,
MalformedURLException malformedURLException)
Informs about a malformed url referencing to to script.
|
void |
DefaultJavaScriptErrorListener.scriptException(InteractivePage page,
ScriptException scriptException) |
void |
JavaScriptErrorListener.scriptException(InteractivePage page,
ScriptException scriptException)
Informs about a javascript exceptions.
|
void |
DefaultJavaScriptErrorListener.timeoutError(InteractivePage page,
long allowedTime,
long executionTime) |
void |
JavaScriptErrorListener.timeoutError(InteractivePage page,
long allowedTime,
long executionTime)
Informs about a javascript timeout error.
|
Modifier and Type | Class and Description |
---|---|
class |
SvgPage
A representation of a Scalable Vector Graphics (SVG) page returned from a server.
|
Copyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.