|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.htmlunit.HtmlUnitDialog
public class HtmlUnitDialog
An exact copy of HtmlUnitDialog from JWebUnit 1.4.1,
with some private methods and fields changed to protected to ConfluenceHtmlUnitDialog
can override them.
Don't change this class, except to change private methods or fields to protected.
| Field Summary | |
|---|---|
protected java.util.LinkedList |
expectedJavascriptAlerts
Javascript alerts. |
protected java.util.LinkedList |
expectedJavascriptConfirms
Javascript confirms. |
protected java.util.LinkedList |
expectedJavascriptPrompts
Javascript prompts. |
protected com.gargoylesoftware.htmlunit.html.HtmlForm |
form
The currently selected form. |
protected boolean |
jsEnabled
Is Javascript enabled. |
protected com.gargoylesoftware.htmlunit.WebClient |
wc
Encapsulate browser abilities. |
protected com.gargoylesoftware.htmlunit.WebWindow |
win
The currently selected window. |
| Constructor Summary | |
|---|---|
HtmlUnitDialog()
|
|
| Method Summary | |
|---|---|
void |
beginAt(java.net.URL initialURL,
net.sourceforge.jwebunit.util.TestContext context)
Begin a dialog with an initial URL and test client context. |
void |
checkCheckbox(java.lang.String checkBoxName)
Select a specified checkbox. |
void |
checkCheckbox(java.lang.String checkBoxName,
java.lang.String value)
|
void |
clickButton(java.lang.String buttonId)
Click the indicated button (input type=button). |
void |
clickButtonWithText(java.lang.String buttonValueText)
|
void |
clickElementByXPath(java.lang.String xpath)
|
void |
clickLink(java.lang.String anID)
Navigate by submitting a request based on a link with a given ID. |
void |
clickLinkWithExactText(java.lang.String linkText,
int index)
|
void |
clickLinkWithImage(java.lang.String imageFileName,
int index)
Navigate by submitting a request based on a link with a given image file name. |
void |
clickLinkWithText(java.lang.String linkText,
int index)
|
void |
clickRadioOption(java.lang.String radioGroup,
java.lang.String radioOption)
Clicks a radio option. |
void |
closeBrowser()
|
void |
closeWindow()
|
protected com.gargoylesoftware.htmlunit.html.ClickableElement |
getButton(java.lang.String buttonId)
Return the HtmlUnit Button with a given id. |
com.gargoylesoftware.htmlunit.html.HtmlButton |
getButtonWithText(java.lang.String buttonValueText)
|
java.util.List |
getCookies()
|
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
getCurrentPage()
|
java.lang.String |
getCurrentPageTitle()
Return the page title of the current response page, encoded as specified by the current TestContext. |
protected com.gargoylesoftware.htmlunit.html.HtmlElement |
getElement(java.lang.String anID)
|
java.lang.String |
getElementAttributByXPath(java.lang.String xpath,
java.lang.String attribut)
|
java.lang.String |
getElementTextByXPath(java.lang.String xpath)
|
protected com.gargoylesoftware.htmlunit.html.HtmlForm |
getForm()
Return the current form active for the dialog. |
java.lang.String |
getHiddenFieldValue(java.lang.String paramName)
Return the current value of a hidden input element with name paramName. |
com.gargoylesoftware.htmlunit.html.HtmlTable |
getHtmlTable(java.lang.String tableSummaryOrId)
Return the HttpUnit WebTable object representing a specified table in the current response. |
java.io.InputStream |
getInputStream()
|
java.io.InputStream |
getInputStream(java.net.URL resourceUrl)
|
java.lang.String |
getPageSource()
|
java.lang.String |
getPageText()
|
java.lang.String |
getPageTitle()
|
java.net.URL |
getPageURL()
|
com.gargoylesoftware.htmlunit.html.HtmlResetInput |
getResetButton(java.lang.String buttonName)
|
java.lang.String[] |
getSelectedOptions(java.lang.String selectName)
|
java.lang.String |
getSelectedRadio(java.lang.String radioGroup)
|
java.lang.String |
getSelectOptionLabelForValue(java.lang.String selectName,
java.lang.String value)
|
java.lang.String |
getSelectOptionValueForLabel(java.lang.String selectName,
java.lang.String label)
|
java.lang.String[] |
getSelectOptionValues(java.lang.String selectName)
Return a string array of select box option values. |
java.lang.String |
getServerResponse()
|
com.gargoylesoftware.htmlunit.html.ClickableElement |
getSubmitButton(java.lang.String buttonName)
Return the HtmlUnit submit button with a given name. |
com.gargoylesoftware.htmlunit.html.ClickableElement |
getSubmitButton(java.lang.String buttonName,
java.lang.String buttonValue)
Return the HtmlUnit submit button with a given name and value. |
net.sourceforge.jwebunit.html.Table |
getTable(java.lang.String tableSummaryOrId)
|
protected net.sourceforge.jwebunit.util.TestContext |
getTestContext()
|
java.lang.String |
getTextFieldValue(java.lang.String paramName)
Return the current value of a text input element with name paramName. |
int |
getWindowCount()
|
void |
gotoFrame(java.lang.String frameNameOrId)
|
void |
gotoPage(java.net.URL initialURL)
|
void |
gotoRootWindow()
Make the root window in the current conversation active. |
void |
gotoWindow(int windowID)
|
void |
gotoWindow(java.lang.String windowName)
Make the window with the given name in the current conversation active. |
void |
gotoWindowByTitle(java.lang.String title)
Goto first window with the given title. |
boolean |
hasButton(java.lang.String buttonId)
Returns if the button identified by buttonId is present. |
boolean |
hasButtonWithText(java.lang.String text)
Checks if a button with text is present. |
boolean |
hasElement(java.lang.String anID)
|
boolean |
hasElementByXPath(java.lang.String xpath)
|
boolean |
hasForm()
Return true if the current response contains a form. |
boolean |
hasForm(java.lang.String nameOrID)
Return true if the current response contains a specific form. |
boolean |
hasFormInputNamed(java.lang.String inputName)
Return true if a form parameter (input element) is present on the current response. |
boolean |
hasFormParameterNamed(java.lang.String paramName)
|
boolean |
hasFormSelectNamed(java.lang.String selectName)
Return true if a form parameter (input element) is present on the current response. |
boolean |
hasFrame(java.lang.String frameNameOrId)
|
boolean |
hasLink(java.lang.String anId)
Return true if a link is present in the current response with the specified id. |
boolean |
hasLinkWithExactText(java.lang.String linkText,
int index)
|
boolean |
hasLinkWithImage(java.lang.String imageFileName,
int index)
|
boolean |
hasLinkWithText(java.lang.String linkText,
int index)
Return true if a link is present in the current response containing the specified text (note that HttpUnit uses contains rather than an exact match - if this is a problem consider using ids on the links to uniquely identify them). |
boolean |
hasRadioOption(java.lang.String radioGroup,
java.lang.String radioOption)
Return true if a radio group contains the indicated option. |
boolean |
hasResetButton()
|
boolean |
hasResetButton(java.lang.String buttonName)
|
boolean |
hasSelectOption(java.lang.String selectName,
java.lang.String optionLabel)
Return true if a select box contains the indicated option. |
boolean |
hasSelectOptionValue(java.lang.String selectName,
java.lang.String optionValue)
Return true if a select box contains the indicated option. |
boolean |
hasSubmitButton()
|
boolean |
hasSubmitButton(java.lang.String buttonName)
|
boolean |
hasSubmitButton(java.lang.String buttonName,
java.lang.String buttonValue)
|
boolean |
hasTable(java.lang.String tableSummaryOrId)
|
boolean |
hasWindow(java.lang.String windowName)
|
boolean |
hasWindowByTitle(java.lang.String title)
|
protected void |
initWebClient()
|
boolean |
isCheckboxSelected(java.lang.String checkBoxName)
|
boolean |
isCheckboxSelected(java.lang.String checkBoxName,
java.lang.String checkBoxValue)
|
boolean |
isMatchInElement(java.lang.String elementID,
java.lang.String regexp)
|
boolean |
isTextInElement(java.lang.String elementID,
java.lang.String text)
|
boolean |
isTextInTable(java.lang.String tableSummaryOrId,
java.lang.String text)
Return true if given text is present in a specified table of the response. |
void |
reset()
Reset the current form. |
void |
selectOptions(java.lang.String selectName,
java.lang.String[] options)
|
void |
setExpectedJavaScriptAlert(net.sourceforge.jwebunit.javascript.JavascriptAlert[] alerts)
|
void |
setExpectedJavaScriptConfirm(net.sourceforge.jwebunit.javascript.JavascriptConfirm[] confirms)
|
void |
setExpectedJavaScriptPrompt(net.sourceforge.jwebunit.javascript.JavascriptPrompt[] prompts)
|
void |
setScriptingEnabled(boolean value)
|
void |
setTextField(java.lang.String fieldName,
java.lang.String text)
Set a form text, password input element or textarea to the provided value. |
protected void |
setWorkingForm(com.gargoylesoftware.htmlunit.html.HtmlForm newForm)
|
void |
setWorkingForm(int index)
|
void |
setWorkingForm(java.lang.String nameOrId,
int index)
|
void |
submit()
Submit the current form with the default submit button. |
void |
submit(java.lang.String buttonName)
Submit the current form with the specifed submit button. |
void |
submit(java.lang.String buttonName,
java.lang.String buttonValue)
Submit the current form with the specifed submit button (by name and value). |
void |
uncheckCheckbox(java.lang.String checkBoxName)
Deselect a specified checkbox. |
void |
uncheckCheckbox(java.lang.String checkBoxName,
java.lang.String value)
|
void |
unselectOptions(java.lang.String selectName,
java.lang.String[] options)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.gargoylesoftware.htmlunit.WebClient wc
protected com.gargoylesoftware.htmlunit.WebWindow win
protected com.gargoylesoftware.htmlunit.html.HtmlForm form
protected boolean jsEnabled
protected java.util.LinkedList expectedJavascriptAlerts
protected java.util.LinkedList expectedJavascriptConfirms
protected java.util.LinkedList expectedJavascriptPrompts
| Constructor Detail |
|---|
public HtmlUnitDialog()
| Method Detail |
|---|
public void beginAt(java.net.URL initialURL,
net.sourceforge.jwebunit.util.TestContext context)
throws net.sourceforge.jwebunit.exception.TestingEngineResponseException
beginAt in interface net.sourceforge.jwebunit.api.IJWebUnitDialoginitialURL - absolute url at which to begin dialog.context - contains context information for the test client.
net.sourceforge.jwebunit.exception.TestingEngineResponseException
public void closeBrowser()
throws net.sourceforge.jwebunit.exception.ExpectedJavascriptAlertException,
net.sourceforge.jwebunit.exception.ExpectedJavascriptConfirmException,
net.sourceforge.jwebunit.exception.ExpectedJavascriptPromptException
closeBrowser in interface net.sourceforge.jwebunit.api.IJWebUnitDialognet.sourceforge.jwebunit.exception.ExpectedJavascriptAlertException
net.sourceforge.jwebunit.exception.ExpectedJavascriptConfirmException
net.sourceforge.jwebunit.exception.ExpectedJavascriptPromptException
public void gotoPage(java.net.URL initialURL)
throws net.sourceforge.jwebunit.exception.TestingEngineResponseException
gotoPage in interface net.sourceforge.jwebunit.api.IJWebUnitDialognet.sourceforge.jwebunit.exception.TestingEngineResponseExceptionpublic void setScriptingEnabled(boolean value)
setScriptingEnabled in interface net.sourceforge.jwebunit.api.IJWebUnitDialogIJWebUnitDialog.setScriptingEnabled(boolean)public java.util.List getCookies()
getCookies in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasWindow(java.lang.String windowName)
hasWindow in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasWindowByTitle(java.lang.String title)
hasWindowByTitle in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void gotoWindow(java.lang.String windowName)
gotoWindow in interface net.sourceforge.jwebunit.api.IJWebUnitDialogwindowName - public void gotoWindow(int windowID)
gotoWindow in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic int getWindowCount()
getWindowCount in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void gotoWindowByTitle(java.lang.String title)
gotoWindowByTitle in interface net.sourceforge.jwebunit.api.IJWebUnitDialogwindowName - public void closeWindow()
closeWindow in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasFrame(java.lang.String frameNameOrId)
hasFrame in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void gotoFrame(java.lang.String frameNameOrId)
gotoFrame in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void setWorkingForm(int index)
setWorkingForm in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public void setWorkingForm(java.lang.String nameOrId,
int index)
setWorkingForm in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasForm()
hasForm in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasForm(java.lang.String nameOrID)
hasForm in interface net.sourceforge.jwebunit.api.IJWebUnitDialognameOrID - name of id of the form to check for.public boolean hasFormParameterNamed(java.lang.String paramName)
hasFormParameterNamed in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.lang.String getTextFieldValue(java.lang.String paramName)
paramName.
getTextFieldValue in interface net.sourceforge.jwebunit.api.IJWebUnitDialogparamName - name of the input element. TODO: Find a way to handle multiple text input element with same
name.public java.lang.String getHiddenFieldValue(java.lang.String paramName)
paramName.
getHiddenFieldValue in interface net.sourceforge.jwebunit.api.IJWebUnitDialogparamName - name of the input element. TODO: Find a way to handle multiple hidden input element with same
name.
public void setTextField(java.lang.String fieldName,
java.lang.String text)
setTextField in interface net.sourceforge.jwebunit.api.IJWebUnitDialogfieldName - name of the input element or textareaparamValue - parameter value to submit for the element.public java.lang.String[] getSelectOptionValues(java.lang.String selectName)
getSelectOptionValues in interface net.sourceforge.jwebunit.api.IJWebUnitDialogselectName - name of the select box.public java.lang.String[] getSelectedOptions(java.lang.String selectName)
getSelectedOptions in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public java.lang.String getSelectOptionValueForLabel(java.lang.String selectName,
java.lang.String label)
getSelectOptionValueForLabel in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public java.lang.String getSelectOptionLabelForValue(java.lang.String selectName,
java.lang.String value)
getSelectOptionLabelForValue in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.net.URL getPageURL()
getPageURL in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.lang.String getPageSource()
getPageSource in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.lang.String getPageTitle()
getPageTitle in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.lang.String getPageText()
getPageText in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.lang.String getServerResponse()
getServerResponse in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.io.InputStream getInputStream()
getInputStream in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public java.io.InputStream getInputStream(java.net.URL resourceUrl)
throws net.sourceforge.jwebunit.exception.TestingEngineResponseException
getInputStream in interface net.sourceforge.jwebunit.api.IJWebUnitDialognet.sourceforge.jwebunit.exception.TestingEngineResponseExceptionprotected void initWebClient()
protected com.gargoylesoftware.htmlunit.html.HtmlElement getElement(java.lang.String anID)
public java.lang.String getCurrentPageTitle()
TestContext.
protected com.gargoylesoftware.htmlunit.html.HtmlForm getForm()
Return the current form active for the dialog.
The active form can also be explicitly set by setWorkingForm(int).
If this method is called without the form having been implicitly or explicitly set, it will attempt to return the default first form on the page.
net.sourceforge.jwebunit.exception.UnableToSetFormException - This runtime assertion failure will be raised if there is no form on the
response.protected com.gargoylesoftware.htmlunit.html.HtmlPage getCurrentPage()
protected void setWorkingForm(com.gargoylesoftware.htmlunit.html.HtmlForm newForm)
public boolean hasFormInputNamed(java.lang.String inputName)
inputName - name of the input element to check forpublic boolean hasFormSelectNamed(java.lang.String selectName)
selectName - name of the input element to check forpublic com.gargoylesoftware.htmlunit.html.ClickableElement getSubmitButton(java.lang.String buttonName)
buttonName - name of button.
public com.gargoylesoftware.htmlunit.html.HtmlResetInput getResetButton(java.lang.String buttonName)
public com.gargoylesoftware.htmlunit.html.ClickableElement getSubmitButton(java.lang.String buttonName,
java.lang.String buttonValue)
buttonName - button name.buttonValue - button value.
public boolean hasSubmitButton()
hasSubmitButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasSubmitButton(java.lang.String buttonName)
hasSubmitButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean hasSubmitButton(java.lang.String buttonName,
java.lang.String buttonValue)
hasSubmitButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasResetButton()
hasResetButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasResetButton(java.lang.String buttonName)
hasResetButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialogprotected com.gargoylesoftware.htmlunit.html.ClickableElement getButton(java.lang.String buttonId)
buttonId - public boolean hasButtonWithText(java.lang.String text)
text is present.
hasButtonWithText in interface net.sourceforge.jwebunit.api.IJWebUnitDialogtext - the text of the button (between <button></button>).
true when the button with text could be found.public com.gargoylesoftware.htmlunit.html.HtmlButton getButtonWithText(java.lang.String buttonValueText)
public boolean hasButton(java.lang.String buttonId)
buttonId is present.
hasButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialogbuttonId - the id of the button
true when the button was found.public boolean isCheckboxSelected(java.lang.String checkBoxName)
isCheckboxSelected in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean isCheckboxSelected(java.lang.String checkBoxName,
java.lang.String checkBoxValue)
isCheckboxSelected in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean isTextInTable(java.lang.String tableSummaryOrId,
java.lang.String text)
tableSummaryOrId - table summary or id to inspect for expected text.text - expected text to check for.public net.sourceforge.jwebunit.html.Table getTable(java.lang.String tableSummaryOrId)
getTable in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic com.gargoylesoftware.htmlunit.html.HtmlTable getHtmlTable(java.lang.String tableSummaryOrId)
tableSummaryOrId - summary or id of the table to return.public boolean hasTable(java.lang.String tableSummaryOrId)
hasTable in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void submit()
getForm()for an explanation of how the
current form is established.
submit in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void submit(java.lang.String buttonName)
getForm()for an explanation of how the
current form is established.
submit in interface net.sourceforge.jwebunit.api.IJWebUnitDialogbuttonName - name of the button to use for submission.
public void submit(java.lang.String buttonName,
java.lang.String buttonValue)
getForm()for an
explanation of how the current form is established.
submit in interface net.sourceforge.jwebunit.api.IJWebUnitDialogbuttonName - name of the button to use for submission.buttonValue - value/label of the button to use for submissionpublic void reset()
getForm()for an explanation of how the current form is established.
reset in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean hasLinkWithText(java.lang.String linkText,
int index)
hasLinkWithText in interface net.sourceforge.jwebunit.api.IJWebUnitDialoglinkText - text to check for in links on the response.index - The 0-based index, when more than one link with the same text is expected.
public boolean hasLinkWithExactText(java.lang.String linkText,
int index)
hasLinkWithExactText in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean hasLinkWithImage(java.lang.String imageFileName,
int index)
hasLinkWithImage in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasLink(java.lang.String anId)
hasLink in interface net.sourceforge.jwebunit.api.IJWebUnitDialoganId - link id to check for.
public void clickLinkWithText(java.lang.String linkText,
int index)
clickLinkWithText in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public void clickLinkWithExactText(java.lang.String linkText,
int index)
clickLinkWithExactText in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void checkCheckbox(java.lang.String checkBoxName)
checkCheckbox in interface net.sourceforge.jwebunit.api.IJWebUnitDialogcheckBoxName - name of checkbox to be deselected.
public void checkCheckbox(java.lang.String checkBoxName,
java.lang.String value)
checkCheckbox in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void uncheckCheckbox(java.lang.String checkBoxName)
uncheckCheckbox in interface net.sourceforge.jwebunit.api.IJWebUnitDialogcheckBoxName - name of checkbox to be deselected.
public void uncheckCheckbox(java.lang.String checkBoxName,
java.lang.String value)
uncheckCheckbox in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public void clickRadioOption(java.lang.String radioGroup,
java.lang.String radioOption)
clickRadioOption in interface net.sourceforge.jwebunit.api.IJWebUnitDialogradioGroup - name of the radio group.radioOption - value of the option to check for.public void clickLink(java.lang.String anID)
clickLink in interface net.sourceforge.jwebunit.api.IJWebUnitDialoganID - id of link to be navigated.
public void clickLinkWithImage(java.lang.String imageFileName,
int index)
clickLinkWithImage in interface net.sourceforge.jwebunit.api.IJWebUnitDialogimageFileName - A suffix of the image's filename; for example, to match
"images/my_icon.png", you could just pass in
"my_icon.png".public boolean hasElement(java.lang.String anID)
hasElement in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic boolean hasElementByXPath(java.lang.String xpath)
hasElementByXPath in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void clickElementByXPath(java.lang.String xpath)
clickElementByXPath in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public java.lang.String getElementAttributByXPath(java.lang.String xpath,
java.lang.String attribut)
getElementAttributByXPath in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic java.lang.String getElementTextByXPath(java.lang.String xpath)
getElementTextByXPath in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void clickButton(java.lang.String buttonId)
clickButton in interface net.sourceforge.jwebunit.api.IJWebUnitDialogbuttonId - public void clickButtonWithText(java.lang.String buttonValueText)
clickButtonWithText in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean hasRadioOption(java.lang.String radioGroup,
java.lang.String radioOption)
hasRadioOption in interface net.sourceforge.jwebunit.api.IJWebUnitDialogradioGroup - name of the radio group.radioOption - value of the option to check for.public java.lang.String getSelectedRadio(java.lang.String radioGroup)
getSelectedRadio in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean hasSelectOption(java.lang.String selectName,
java.lang.String optionLabel)
hasSelectOption in interface net.sourceforge.jwebunit.api.IJWebUnitDialogselectName - name of the select box.optionLabel - label of the option.
public boolean hasSelectOptionValue(java.lang.String selectName,
java.lang.String optionValue)
hasSelectOptionValue in interface net.sourceforge.jwebunit.api.IJWebUnitDialogselectName - name of the select box.optionValue - value of the option.
public void selectOptions(java.lang.String selectName,
java.lang.String[] options)
selectOptions in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public void unselectOptions(java.lang.String selectName,
java.lang.String[] options)
unselectOptions in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean isTextInElement(java.lang.String elementID,
java.lang.String text)
isTextInElement in interface net.sourceforge.jwebunit.api.IJWebUnitDialog
public boolean isMatchInElement(java.lang.String elementID,
java.lang.String regexp)
isMatchInElement in interface net.sourceforge.jwebunit.api.IJWebUnitDialogpublic void gotoRootWindow()
gotoRootWindow in interface net.sourceforge.jwebunit.api.IJWebUnitDialogprotected net.sourceforge.jwebunit.util.TestContext getTestContext()
public void setExpectedJavaScriptAlert(net.sourceforge.jwebunit.javascript.JavascriptAlert[] alerts)
throws net.sourceforge.jwebunit.exception.ExpectedJavascriptAlertException
setExpectedJavaScriptAlert in interface net.sourceforge.jwebunit.api.IJWebUnitDialognet.sourceforge.jwebunit.exception.ExpectedJavascriptAlertException
public void setExpectedJavaScriptConfirm(net.sourceforge.jwebunit.javascript.JavascriptConfirm[] confirms)
throws net.sourceforge.jwebunit.exception.ExpectedJavascriptConfirmException
setExpectedJavaScriptConfirm in interface net.sourceforge.jwebunit.api.IJWebUnitDialognet.sourceforge.jwebunit.exception.ExpectedJavascriptConfirmException
public void setExpectedJavaScriptPrompt(net.sourceforge.jwebunit.javascript.JavascriptPrompt[] prompts)
throws net.sourceforge.jwebunit.exception.ExpectedJavascriptPromptException
setExpectedJavaScriptPrompt in interface net.sourceforge.jwebunit.api.IJWebUnitDialognet.sourceforge.jwebunit.exception.ExpectedJavascriptPromptException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||