public class MSXMLJavaScriptEnvironment extends Object
| Constructor and Description |
|---|
MSXMLJavaScriptEnvironment(BrowserVersion browserVersion)
Creates an instance for the given
BrowserVersion. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends MSXMLScriptable> |
getJavaScriptClass(Class<?> c)
Gets the class of the JavaScript object for the node class.
|
net.sourceforge.htmlunit.corejs.javascript.Scriptable |
getPrototype(Class<? extends SimpleScriptable> jsClass)
Returns the prototype object corresponding to the specified HtmlUnit class inside the window scope.
|
public MSXMLJavaScriptEnvironment(BrowserVersion browserVersion) throws Exception
BrowserVersion.browserVersion - the browser version to useException - if something goes wrongpublic Class<? extends MSXMLScriptable> getJavaScriptClass(Class<?> c)
c - the node class DomNode or some subclass.null if none foundpublic net.sourceforge.htmlunit.corejs.javascript.Scriptable getPrototype(Class<? extends SimpleScriptable> jsClass)
jsClass - the class whose prototype is to be returnedCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.