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.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
Modifier and Type | Method and Description |
---|---|
static ScriptResult |
ScriptResult.combine(ScriptResult newResult,
ScriptResult originalResult,
boolean ie)
Creates and returns a composite
ScriptResult based on the two input ScriptResult s. |
Modifier and Type | Method and Description |
---|---|
static ScriptResult |
ScriptResult.combine(ScriptResult newResult,
ScriptResult originalResult,
boolean ie)
Creates and returns a composite
ScriptResult based on the two input ScriptResult s. |
static boolean |
ScriptResult.isFalse(ScriptResult scriptResult)
Utility method testing if a script result is false.
|
static boolean |
ScriptResult.isUndefined(ScriptResult scriptResult)
Utility method testing if a script result is undefined (there was no return value).
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
HtmlPage.executeJavaScript(String sourceCode)
Executes the specified JavaScript code within the page.
|
ScriptResult |
HtmlPage.executeJavaScriptFunctionIfPossible(net.sourceforge.htmlunit.corejs.javascript.Function function,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObject,
Object[] args,
DomNode htmlElementScope)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Execute a Function in the given context. |
ScriptResult |
HtmlPage.executeJavaScriptIfPossible(String sourceCode,
String sourceName,
int startLine)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
ScriptResult |
HtmlElement.fireEvent(Event event)
Fires the event on the element.
|
ScriptResult |
HtmlElement.fireEvent(String eventType)
Shortcut for
HtmlElement.fireEvent(Event) . |
Modifier and Type | Method and Description |
---|---|
ScriptResult |
EventListenersContainer.executeBubblingListeners(Event event,
Object[] args,
Object[] propHandlerArgs)
Executes bubbling listeners.
|
ScriptResult |
EventListenersContainer.executeCapturingListeners(Event event,
Object[] args)
Executes capturing listeners.
|
ScriptResult |
Node.executeEvent(Event event)
Executes the event on this object only (needed for instance for onload on (i)frame tags).
|
ScriptResult |
EventListenersContainer.executeListeners(Event event,
Object[] args,
Object[] propHandlerArgs)
Executes listeners.
|
ScriptResult |
Node.fireEvent(Event event)
Fires the event on the node with capturing and bubbling phase.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Event.isAborted(ScriptResult result)
Returns true if this event has been aborted via preventDefault() in
standards-compliant browsers, or via the event's returnValue property in IE, or
by the event handler returning false.
|
Copyright © 2002-2013 Gargoyle Software Inc.. All Rights Reserved.