|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.htmlunit.HtmlUnitDialog
com.atlassian.confluence.htmlunit.ConfluenceHtmlUnitDialog
public class ConfluenceHtmlUnitDialog
This class is a copy of HtmlUnitDialog
with modifications
to the initWebClient()
method to allow setting configuration from properties file.
Field Summary | |
---|---|
static com.gargoylesoftware.htmlunit.PageCreator |
cacher
|
static com.gargoylesoftware.htmlunit.Cache |
newCache
|
static java.lang.Boolean |
RESIN_MODE
|
Fields inherited from class com.atlassian.confluence.htmlunit.HtmlUnitDialog |
---|
expectedJavascriptAlerts, expectedJavascriptConfirms, expectedJavascriptPrompts, form, jsEnabled, wc, win |
Constructor Summary | |
---|---|
ConfluenceHtmlUnitDialog()
|
Method Summary | |
---|---|
protected com.gargoylesoftware.htmlunit.html.ClickableElement |
getButton(java.lang.String buttonId)
Overridden to use the correct window in the case of pop-ups. |
com.gargoylesoftware.htmlunit.html.DomNode |
getWindowDomNode()
Expose internals for some tests. |
void |
gotoPage(java.net.URL initialURL)
|
protected void |
initWebClient()
Overridden to: set browser version not throw javascript exceptions set socket timeouts, and increase the number of client connections. |
boolean |
isJavascriptEnabled()
|
void |
setInputValue(java.lang.String inputId,
java.lang.String value)
Sets the input value of the given input. |
void |
setTextField(java.lang.String fieldName,
java.lang.String text)
Overridden to allow setting of hidden fields. |
protected void |
setWorkingForm(com.gargoylesoftware.htmlunit.html.HtmlForm newForm)
Overridden for additional logging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Boolean RESIN_MODE
public static final com.gargoylesoftware.htmlunit.Cache newCache
public static final com.gargoylesoftware.htmlunit.PageCreator cacher
Constructor Detail |
---|
public ConfluenceHtmlUnitDialog()
Method Detail |
---|
public void gotoPage(java.net.URL initialURL) throws net.sourceforge.jwebunit.exception.TestingEngineResponseException
gotoPage
in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
gotoPage
in class HtmlUnitDialog
net.sourceforge.jwebunit.exception.TestingEngineResponseException
public void setTextField(java.lang.String fieldName, java.lang.String text)
setTextField
in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
setTextField
in class HtmlUnitDialog
fieldName
- name of the input element or textareatext
- parameter value to submit for the element.protected void initWebClient()
initWebClient
in class HtmlUnitDialog
protected void setWorkingForm(com.gargoylesoftware.htmlunit.html.HtmlForm newForm)
protected com.gargoylesoftware.htmlunit.html.ClickableElement getButton(java.lang.String buttonId)
public com.gargoylesoftware.htmlunit.html.DomNode getWindowDomNode()
public void setInputValue(java.lang.String inputId, java.lang.String value)
public boolean isJavascriptEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |