Package | Description |
---|---|
org.htmlunit |
Framework classes (contains the
WebClient
class which is the main entry point). |
org.htmlunit.css |
Classes supporting Cascading Style Sheets.
|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.html.serializer |
Contains the html serializer implementations.
|
org.htmlunit.httpclient |
All the customizations we did to make HttpClient behave like a real browser.
|
org.htmlunit.javascript |
Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.configuration |
Classes in this package are specific for the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.file |
Implementations of the File JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.intl |
Implementations of the Internationalization JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.worker |
Implementations of the Web Workers JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
Modifier and Type | Field and Description |
---|---|
static BrowserVersion[] |
BrowserVersion.ALL_SUPPORTED_BROWSERS
Array with all supported browsers.
|
static BrowserVersion |
BrowserVersion.BEST_SUPPORTED
The best supported browser version at the moment.
|
static BrowserVersion |
BrowserVersion.CHROME
Latest Chrome.
|
static BrowserVersion |
BrowserVersion.EDGE
Latest Edge.
|
static BrowserVersion |
BrowserVersion.FIREFOX
Latest Firefox.
|
static BrowserVersion |
BrowserVersion.FIREFOX_ESR
Firefox ESR.
|
Modifier and Type | Method and Description |
---|---|
BrowserVersion |
BrowserVersion.BrowserVersionBuilder.build() |
BrowserVersion |
WebClient.getBrowserVersion()
Returns the current browser version.
|
static BrowserVersion |
BrowserVersion.getDefault()
Returns the default browser version that is used whenever a specific version isn't specified.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BrowserVersion.isSameBrowser(BrowserVersion other) |
static void |
BrowserVersion.setDefault(BrowserVersion newBrowserVersion)
Sets the default browser version that is used whenever a specific version isn't specified.
|
Constructor and Description |
---|
BrowserVersionBuilder(BrowserVersion version)
Creates a new BrowserVersionBuilder using the given browser version
as template for the browser to be constructed.
|
WebClient(BrowserVersion browserVersion)
Creates a web client instance using the specified
BrowserVersion . |
WebClient(BrowserVersion browserVersion,
boolean javaScriptEngineEnabled,
String proxyHost,
int proxyPort)
Creates an instance that will use the specified
BrowserVersion and proxy server. |
WebClient(BrowserVersion browserVersion,
boolean javaScriptEngineEnabled,
String proxyHost,
int proxyPort,
String proxyScheme)
Creates an instance that will use the specified
BrowserVersion and proxy server. |
WebClient(BrowserVersion browserVersion,
String proxyHost,
int proxyPort)
Creates an instance that will use the specified
BrowserVersion and proxy server. |
WebClient(BrowserVersion browserVersion,
String proxyHost,
int proxyPort,
String proxyScheme)
Creates an instance that will use the specified
BrowserVersion and proxy server. |
Modifier and Type | Method and Description |
---|---|
BrowserVersion |
WrappedCssStyleDeclaration.getBrowserVersion() |
BrowserVersion |
ElementCssStyleDeclaration.getBrowserVersion() |
BrowserVersion |
ComputedCssStyleDeclaration.getBrowserVersion() |
abstract BrowserVersion |
AbstractCssStyleDeclaration.getBrowserVersion() |
Modifier and Type | Method and Description |
---|---|
String |
StyleAttributes.Definition.getDefaultComputedValue(BrowserVersion browserVersion) |
static StyleAttributes.Definition |
StyleAttributes.getDefinition(String propertyName,
BrowserVersion browserVersion)
Gets the style attributes definition with the given name for the specified browser version.
|
static List<StyleAttributes.Definition> |
StyleAttributes.getDefinitions(BrowserVersion browserVersion)
Gets the style attributes definitions for the specified browser version.
|
static boolean |
CssStyleSheet.selects(BrowserVersion browserVersion,
org.htmlunit.cssparser.parser.selector.Selector selector,
DomElement element,
String pseudoElement,
boolean fromQuerySelectorAll,
boolean throwOnSyntax)
Returns
true if the specified selector selects the specified element. |
Constructor and Description |
---|
WrappedCssStyleDeclaration(org.htmlunit.cssparser.dom.CSSStyleDeclarationImpl cssStyleDeclarationImpl,
BrowserVersion browserVersion)
Creates an instance which wraps the specified style declaration implementation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HtmlWeekInput.adjustValueAfterTypeChange(HtmlInput oldInput,
BrowserVersion browserVersion) |
protected void |
HtmlTimeInput.adjustValueAfterTypeChange(HtmlInput oldInput,
BrowserVersion browserVersion) |
protected void |
HtmlMonthInput.adjustValueAfterTypeChange(HtmlInput oldInput,
BrowserVersion browserVersion) |
protected void |
HtmlInput.adjustValueAfterTypeChange(HtmlInput oldInput,
BrowserVersion browserVersion) |
protected void |
HtmlFileInput.adjustValueAfterTypeChange(HtmlInput oldInput,
BrowserVersion browserVersion) |
protected void |
HtmlDateTimeLocalInput.adjustValueAfterTypeChange(HtmlInput oldInput,
BrowserVersion browserVersion) |
Constructor and Description |
---|
HtmlSerializerInnerOuterText(BrowserVersion browserVersion)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpClientConverter.addMatching(Set<Cookie> cookies,
URL normalizedUrl,
BrowserVersion browserVersion,
Set<Cookie> matches) |
static List<Cookie> |
HttpClientConverter.parseCookie(String cookieString,
URL pageUrl,
BrowserVersion browserVersion) |
Constructor and Description |
---|
HtmlUnitBrowserCompatCookieSpec(BrowserVersion browserVersion)
Constructor.
|
HtmlUnitCookieSpecProvider(BrowserVersion browserVersion)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BrowserVersion |
HtmlUnitScriptable.getBrowserVersion()
Gets the browser version currently used.
|
Modifier and Type | Method and Description |
---|---|
static void |
JavaScriptEngine.applyPolyfills(WebClient webClient,
BrowserVersion browserVersion,
org.htmlunit.corejs.javascript.Context context,
HtmlUnitScriptable scriptable)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
static void |
JavaScriptEngine.configureRhino(WebClient webClient,
BrowserVersion browserVersion,
HtmlUnitScriptable scope)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
static void |
JavaScriptEngine.configureScope(HtmlUnitScriptable jsScope,
ClassConfiguration scopeConfig,
org.htmlunit.corejs.javascript.FunctionObject scopeContructorFunctionObject,
AbstractJavaScriptConfiguration jsConfig,
BrowserVersion browserVersion,
Map<Class<? extends org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable> prototypes,
Map<String,org.htmlunit.corejs.javascript.Scriptable> prototypesPerJSName)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
static String |
JavaScriptEngine.evaluateProxyAutoConfig(BrowserVersion browserVersion,
String content,
URL url)
Evaluates the
FindProxyForURL method of the specified content. |
static void |
NativeFunctionToStringFunction.installFix(org.htmlunit.corejs.javascript.Scriptable window,
BrowserVersion browserVersion)
Install the wrapper in place of the native toString function on Function's prototype.
|
Constructor and Description |
---|
RecursiveFunctionObject(String name,
Member methodOrConstructor,
org.htmlunit.corejs.javascript.Scriptable scope,
BrowserVersion browserVersion)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static ClassConfiguration |
AbstractJavaScriptConfiguration.getClassConfiguration(Class<? extends HtmlUnitScriptable> klass,
BrowserVersion browserVersion)
Returns the class configuration of the given
klass . |
static WorkerJavaScriptConfiguration |
WorkerJavaScriptConfiguration.getInstance(BrowserVersion browserVersion)
Returns the instance that represents the configuration for the specified
BrowserVersion . |
static ProxyAutoConfigJavaScriptConfiguration |
ProxyAutoConfigJavaScriptConfiguration.getInstance(BrowserVersion browserVersion)
Returns the instance that represents the configuration for the specified
BrowserVersion . |
static JavaScriptConfiguration |
JavaScriptConfiguration.getInstance(BrowserVersion browserVersion)
Returns the instance that represents the configuration for the specified
BrowserVersion . |
Constructor and Description |
---|
AbstractJavaScriptConfiguration(BrowserVersion browser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BrowserVersion |
Window.getBrowserVersion()
Gets the browser version currently used.
|
Modifier and Type | Method and Description |
---|---|
String |
Blob.InMemoryBackend.getType(BrowserVersion browserVersion) |
Modifier and Type | Method and Description |
---|---|
void |
Intl.defineProperties(BrowserVersion browserVersion)
Define needed properties.
|
Modifier and Type | Method and Description |
---|---|
BrowserVersion |
WorkerNavigator.getBrowserVersion()
Gets the browser version currently used.
|
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.