public class

ConfluenceHtmlUnitDialog

extends HtmlUnitDialog
java.lang.Object
   ↳ com.atlassian.confluence.htmlunit.HtmlUnitDialog
     ↳ com.atlassian.confluence.htmlunit.ConfluenceHtmlUnitDialog

Class Overview

This class is a copy of net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog with modifications to the initWebClient() method to allow setting configuration from properties file.

Summary

Fields
public static final PageCreator cacher
public static final Cache newCache
[Expand]
Inherited Fields
From class com.atlassian.confluence.htmlunit.HtmlUnitDialog
Public Constructors
ConfluenceHtmlUnitDialog()
Public Methods
int getTimeout()
DomNode getWindowDomNode()
Expose internals for some tests.
void gotoPage(URL initialURL)
boolean isJavascriptEnabled()
void setInputValue(String inputId, String value)
Sets the input value of the given input.
void setTextField(String fieldName, String text)
Overridden to allow setting of hidden fields.
void setTimeout(int timeout)
Protected Methods
ClickableElement getButton(String buttonId)
Overridden to use the correct window in the case of pop-ups.
void initWebClient()
Overridden to:
  • set browser version
  • not throw javascript exceptions
  • set socket timeouts, and
  • increase the number of client connections.
void setWorkingForm(HtmlForm newForm)
Overridden for additional logging.
[Expand]
Inherited Methods
From class com.atlassian.confluence.htmlunit.HtmlUnitDialog
From class java.lang.Object
From interface net.sourceforge.jwebunit.api.IJWebUnitDialog

Fields

public static final PageCreator cacher

public static final Cache newCache

Public Constructors

public ConfluenceHtmlUnitDialog ()

Public Methods

public int getTimeout ()

public DomNode getWindowDomNode ()

Expose internals for some tests.

public void gotoPage (URL initialURL)

Throws
TestingEngineResponseException

public boolean isJavascriptEnabled ()

public void setInputValue (String inputId, String value)

Sets the input value of the given input. Only use this when input is not in a form and you don't want 'form not present' assertion failure.

public void setTextField (String fieldName, String text)

Overridden to allow setting of hidden fields.

Parameters
fieldName name of the input element or textarea
text parameter value to submit for the element.

public void setTimeout (int timeout)

Protected Methods

protected ClickableElement getButton (String buttonId)

Overridden to use the correct window in the case of pop-ups.

protected void initWebClient ()

Overridden to:

  • set browser version
  • not throw javascript exceptions
  • set socket timeouts, and
  • increase the number of client connections.

protected void setWorkingForm (HtmlForm newForm)

Overridden for additional logging.