|
void
|
assertButtonNotPresent(String buttonId)
Assert that a button with a given id is not present in the current window.
|
|
void
|
assertButtonNotPresentWithText(String text)
Assert that a button with a given text is not present in the current window.
|
|
void
|
assertButtonPresent(String buttonId)
Assert that a button with a given id is present in the current window.
|
|
void
|
assertButtonPresentWithText(String text)
Assert that a button with a given text is present in the current window.
|
|
void
|
assertCheckboxNotPresent(String checkboxName, String checkboxValue)
Assert that a given checkbox is not present.
|
|
void
|
assertCheckboxNotPresent(String checkboxName)
Assert that a form checkbox with a given name is not present.
|
|
void
|
assertCheckboxNotSelected(String checkBoxName, String checkBoxValue)
Assert that a specific checkbox is not selected.
|
|
void
|
assertCheckboxNotSelected(String checkBoxName)
Assert that a specific checkbox is not selected.
|
|
void
|
assertCheckboxPresent(String checkboxName, String checkboxValue)
Assert that a given checkbox is present.
|
|
void
|
assertCheckboxPresent(String checkboxName)
Assert that a form checkbox with a given name is present.
|
|
void
|
assertCheckboxSelected(String checkBoxName, String checkBoxValue)
Assert that a specific checkbox is selected.
|
|
void
|
assertCheckboxSelected(String checkBoxName)
Assert that a specific checkbox is selected.
|
|
void
|
assertCookiePresent(String cookieName)
Checks to see if a cookie is present in the response.
|
|
void
|
assertCookieValueEquals(String cookieName, String expectedValue)
Check to see if a cookie has the given value.
|
|
void
|
assertCookieValueMatch(String cookieName, String regexp)
Check to see if a cookie value match the given regexp.
|
|
void
|
assertDownloadedFileEquals(URL expected)
Download the current page (or file) and compare it with the given file.
|
|
void
|
assertElementNotPresent(String anID)
Assert that an element with a given id is not present.
|
|
void
|
assertElementNotPresentByXPath(String xpath)
Assert that an element with a given xpath is not present.
|
|
void
|
assertElementPresent(String anID)
Assert that an element with a given id is present.
|
|
void
|
assertElementPresentByXPath(String xpath)
Assert that an element with a given xpath is present.
|
|
void
|
assertFormElementEmpty(String formElementName)
This method is deprecated.
No replacement.
|
|
void
|
assertFormElementEquals(String formElementName, String expectedValue)
This method is deprecated.
No replacement.
|
|
void
|
assertFormElementMatch(String formElementName, String regexp)
This method is deprecated.
No replacement.
|
|
void
|
assertFormElementNotPresent(String formElementName)
Assert that a form input element with a given name is not present.
|
|
void
|
assertFormElementPresent(String formElementName)
Assert that a form input element with a given name is present.
|
|
void
|
assertFormNotPresent()
Assert that there is not a form present.
|
|
void
|
assertFormNotPresent(String nameOrID)
Assert that there is not a form with the specified name or id present.
|
|
void
|
assertFormPresent(String nameOrID)
Assert that there is a form with the specified name or id present.
|
|
void
|
assertFormPresent()
Assert that there is a form present.
|
|
void
|
assertFramePresent(String frameNameOrId)
Assert that a frame with the given name or ID is present.
|
|
void
|
assertHiddenFieldPresent(String formElementName, String expectedValue)
Assert that an input hidden element with name formElementName has the expectedValue
value.
|
|
void
|
assertImagePresent(String imageSrc, String imageAlt)
|
|
void
|
assertImageValid(String imageSrc, String imageAlt)
|
|
void
|
assertImageValidAndStore(String imageSrc, String imageAlt, File out)
Asserts that the image with the given src and alt attribute values exist in the page and is an actual reachable
image, then saves it as png with the given file name.
|
|
void
|
assertKeyInTable(String tableSummaryOrId, String key, Object[] args)
Assert that the value of a given web resource is present in a specific
table.
|
|
void
|
assertKeyInTable(String tableSummaryOrId, String key)
Assert that the value of a given web resource is present in a specific table.
|
|
void
|
assertKeyNotInTable(String tableSummaryOrId, String key)
Assert that the value of a given web resource is not present in a specific table.
|
|
void
|
assertKeyNotPresent(String key)
Assert that a web resource's value is not present.
|
|
void
|
assertKeyNotPresent(String key, Object[] args)
Assert that a web resource's formatted value is not present.
|
|
void
|
assertKeyPresent(String key)
Assert that a web resource's value is present.
|
|
void
|
assertKeyPresent(String key, Object[] args)
Assert that a web resource's value (with formatting) is present
|
|
void
|
assertKeysInTable(String tableSummaryOrId, String[] keys)
Assert that the values of a set of web resources are all present in a specific table.
|
|
void
|
assertKeysInTable(String tableSummaryOrId, String[] keys, Object[][] args)
Assert that the values of a set of web resources are all present in a
specific table.
|
|
void
|
assertLinkNotPresent(String linkId)
Assert that no link with the given id is present in the response.
|
|
void
|
assertLinkNotPresentWithExactText(String linkText, int index)
Assert that no link containing the Exact text is present.
|
|
void
|
assertLinkNotPresentWithExactText(String linkText)
Assert that no link containing the Exact text is present.
|
|
void
|
assertLinkNotPresentWithImage(String imageFileName)
Assert that a link containing a specified image is not present.
|
|
void
|
assertLinkNotPresentWithText(String linkText)
Assert that no link containing the supplied text is present.
|
|
void
|
assertLinkNotPresentWithText(String linkText, int index)
Assert that no link containing the supplied text is present.
|
|
void
|
assertLinkPresent(String linkId)
Assert that a link with a given id is present in the response.
|
|
void
|
assertLinkPresentWithExactText(String linkText)
Assert that a link containing the Exact text is present.
|
|
void
|
assertLinkPresentWithExactText(String linkText, int index)
Assert that a link containing the Exact text is present.
|
|
void
|
assertLinkPresentWithImage(String imageFileName)
Assert that a link containing a specified image is present.
|
|
void
|
assertLinkPresentWithText(String linkText, int index)
Assert that a link containing the supplied text is present.
|
|
void
|
assertLinkPresentWithText(String linkText)
Assert that a link containing the supplied text is present.
|
|
void
|
assertMatch(String regexp)
Assert that supplied regexp is matched.
|
|
void
|
assertMatchInElement(String elementID, String regexp)
Assert that a given element matches a specific regexp.
|
|
void
|
assertMatchInTable(String tableSummaryOrId, String[] regexp)
Assert that a set of regexp values are all matched in a specific table.
|
|
void
|
assertMatchInTable(String tableSummaryNameOrId, String regexp)
Assert that supplied regexp is matched in a specific table.
|
|
void
|
assertNoMatch(String regexp)
Assert that supplied regexp is not present.
|
|
void
|
assertNoMatchInElement(String elementID, String regexp)
Assert that a given element does not match a specific regexp.
|
|
void
|
assertNoMatchInTable(String tableSummaryNameOrId, String regexp)
Assert that supplied regexp is not present in a specific table.
|
|
void
|
assertNoMatchInTable(String tableSummaryNameOrId, String[] regexp)
Assert that none of a set of regexp values are present in a specific table.
|
|
void
|
assertRadioOptionNotPresent(String name, String radioOption)
Assert that a specific option is not present in a radio group.
|
|
void
|
assertRadioOptionNotSelected(String name, String radioOption)
Assert that a specific option is not selected in a radio group.
|
|
void
|
assertRadioOptionPresent(String name, String radioOption)
Assert that a specific option is present in a radio group.
|
|
void
|
assertRadioOptionSelected(String name, String radioOption)
Assert that a specific option is selected in a radio group.
|
|
void
|
assertResetButtonNotPresent()
Assert that no reset button is present in the current form.
|
|
void
|
assertResetButtonNotPresent(String buttonName)
Assert that a reset button with a given name is not present.
|
|
void
|
assertResetButtonPresent()
Assert that a reset button is present.
|
|
void
|
assertResetButtonPresent(String buttonName)
Assert that a reset button with a given name is present.
|
|
void
|
assertSelectOptionNotPresent(String selectName, String optionLabel)
Assert that a specific option is not present in a select box.
|
|
void
|
assertSelectOptionPresent(String selectName, String optionLabel)
Assert that a specific option is present in a select box (by label).
|
|
void
|
assertSelectOptionValueNotPresent(String selectName, String optionValue)
|
|
void
|
assertSelectOptionValuePresent(String selectName, String optionValue)
Assert that a specific option is present in a select box (by value).
|
|
void
|
assertSelectOptionValuesEqual(String selectName, String[] expectedValues)
Assert that the values of a select element's options match a given array of strings.
|
|
void
|
assertSelectOptionValuesNotEqual(String selectName, String[] optionValues)
Assert that the values of a select element's options do not match a given array of strings.
|
|
void
|
assertSelectOptionValuesPresent(String selectName, String[] optionValues)
Assert that given options are present in a select box (by value).
|
|
void
|
assertSelectOptionsEqual(String selectName, String[] expectedOptions)
Assert that the display values of a select element's options match a given array of strings.
|
|
void
|
assertSelectOptionsNotEqual(String selectName, String[] expectedOptions)
Assert that the display values of a select element's options do not match a given array of strings.
|
|
void
|
assertSelectOptionsPresent(String selectName, String[] optionLabels)
Assert that given options are present in a select box (by label).
|
|
void
|
assertSelectedOptionEquals(String selectName, String option)
|
|
void
|
assertSelectedOptionMatches(String selectName, String regexp)
|
|
void
|
assertSelectedOptionValueEquals(String selectName, String value)
Assert that the currently selected value of a select box matches given value.
|
|
void
|
assertSelectedOptionValuesEqual(String selectName, String[] values)
Assert that the currently selected value(s) of a select box matches given value(s).
|
|
void
|
assertSelectedOptionsEqual(String selectName, String[] labels)
Assert that the currently selected display label(s) of a select box matches given label(s).
|
|
void
|
assertSelectedOptionsMatch(String selectName, String[] regexps)
Assert that the currently selected display value(s) of a select box matches a given value(s).
|
|
void
|
assertSubmitButtonNotPresent(String buttonName)
Assert that a submit button with a given name is not present.
|
|
void
|
assertSubmitButtonNotPresent()
Assert that no submit button is present in the current form.
|
|
void
|
assertSubmitButtonPresent(String buttonName, String buttonValue)
Assert that a submit button with a given name and value is present.
|
|
void
|
assertSubmitButtonPresent(String buttonName)
Assert that a submit button with a given name is present.
|
|
void
|
assertSubmitButtonPresent()
Assert that a submit button is present.
|
|
void
|
assertTableEquals(String tableSummaryNameOrId, String[][] expectedCellValues)
Assert that a specific table matches a matrix of supplied text values.
|
|
void
|
assertTableEquals(String tableSummaryNameOrId, Table expectedTable)
Assert that a specific table matches an ExpectedTable.
|
|
void
|
assertTableMatch(String tableSummaryOrId, String[][] expectedCellValues)
Assert that a specific table matches a matrix of supplied regexps.
|
|
void
|
assertTableMatch(String tableSummaryOrId, Table expectedTable)
Assert that a specific table matches an ExpectedTable.
|
|
void
|
assertTableNotPresent(String tableSummaryNameOrId)
Assert that a table with a given summary or id value is not present.
|
|
void
|
assertTablePresent(String tableSummaryNameOrId)
Assert that a table with a given summary or id value is present.
|
|
void
|
assertTableRowCountEquals(String tableSummaryNameOrId, int expectedRowCount)
Assert that the number of rows for a specific table equals expected value.
|
|
void
|
assertTableRowsEqual(String tableSummaryNameOrId, int startRow, String[][] expectedTable)
Assert that a range of rows for a specific table matches a matrix of supplied text values.
|
|
void
|
assertTableRowsEqual(String tableSummaryNameOrId, int startRow, Table expectedTable)
Assert that a range of rows for a specific table matches a matrix of supplied text values.
|
|
void
|
assertTableRowsMatch(String tableSummaryOrId, int startRow, Table expectedTable)
Assert that a range of rows for a specific table matches a matrix of supplied regexps.
|
|
void
|
assertTableRowsMatch(String tableSummaryOrId, int startRow, String[][] expectedTable)
Assert that a range of rows for a specific table matches a matrix of supplied regexps.
|
|
void
|
assertTextFieldEquals(String formElementName, String expectedValue)
Assert that an input text element with name formElementName has the expectedValue
value.
|
|
void
|
assertTextInElement(String elementID, String text)
Assert that a given element contains specific text.
|
|
void
|
assertTextInTable(String tableSummaryOrId, String[] text)
Assert that a set of text values are all present in a specific table.
|
|
void
|
assertTextInTable(String tableSummaryNameOrId, String text)
Assert that supplied text is present in a specific table.
|
|
void
|
assertTextNotInElement(String elementID, String text)
|
|
void
|
assertTextNotInTable(String tableSummaryNameOrId, String text)
Assert that supplied text is not present in a specific table.
|
|
void
|
assertTextNotInTable(String tableSummaryNameOrId, String[] text)
Assert that none of a set of text values are present in a specific table.
|
|
void
|
assertTextNotPresent(String text)
Assert that supplied text is not present.
|
|
void
|
assertTextPresent(String text)
Assert that supplied text is present.
|
|
void
|
assertTitleEquals(String title)
Assert title of current html page in conversation matches an expected
value.
|
|
void
|
assertTitleEqualsKey(String titleKey)
Assert title of current html page matches the value of a specified web
resource.
|
|
void
|
assertTitleEqualsKey(String titleKey, Object[] args)
Assert title of current page matches formatted message resource
|
|
void
|
assertTitleMatch(String regexp)
Assert title of current html page in conversation matches an expected regexp.
|
|
void
|
assertWindowCountEquals(int windowCount)
Assert that the number of opened windows equals given value.
|
|
void
|
assertWindowPresent(String windowName)
Assert that a window with the given name is open.
|
|
void
|
assertWindowPresent(int windowID)
Assert that a window with the given ID is open.
|
|
void
|
assertWindowPresentWithTitle(String title)
Assert that at least one window with the given title is open.
|
|
void
|
beginAt(String aRelativeURL)
Begin conversation at a URL absolute or relative to base URL.
|
|
void
|
checkCheckbox(String checkBoxName, String value)
Select a specified checkbox.
|
|
void
|
checkCheckbox(String checkBoxName)
Select a specified checkbox.
|
|
void
|
clickButton(String buttonId)
Click the button with the given id.
|
|
void
|
clickButtonWithText(String buttonValueText)
Clicks a button with text of the value attribute.
|
|
void
|
clickElementByXPath(String xpath)
Click element with given xpath.
|
|
void
|
clickLink(String linkId)
Navigate by selection of a link with given id.
|
|
void
|
clickLinkWithExactText(String linkText, int index)
Navigate by selecting Nth link with the exact given text.
|
|
void
|
clickLinkWithExactText(String linkText)
Navigate by selection of a link with the exact given text.
|
|
void
|
clickLinkWithImage(String imageFileName)
Navigate by selection of a link with a given image.
|
|
void
|
clickLinkWithText(String linkText)
Navigate by selection of a link containing given text.
|
|
void
|
clickLinkWithText(String linkText, int index)
Navigate by selecting Nth link containing given text.
|
|
void
|
clickRadioOption(String radioGroup, String radioOption)
Clicks a radio option.
|
|
void
|
closeBrowser()
Close the current conversation.
|
|
void
|
closeWindow()
Close the current window.
|
|
void
|
dumpCookies()
Print all the cookies to stdout.
|
|
void
|
dumpHtml()
|
|
void
|
dumpHtml(PrintStream stream)
|
|
void
|
dumpTable(String tableNameOrId)
Dump the table as the 2D array that is used for assertions - for debugging purposes.
|
|
void
|
dumpTable(String tableNameOrId, PrintStream stream)
Dump the table as the 2D array that is used for assertions - for debugging purposes.
|
|
IJWebUnitDialog
|
getDialog()
This method is deprecated.
You should not use plugin specific fonctionality. Please ask for a new core feature instead.
|
|
String
|
getElementAttributByXPath(String xpath, String attribut)
Get the attribut value of the gicen element.
|
|
String
|
getElementTextByXPath(String xpath)
Get text of the given element.
|
|
String
|
getFormElementValue(String formElementName)
This method is deprecated.
No replacement.
|
|
Image
|
getImage(String imageSrc, String imageAlt)
|
|
String
|
getMessage(String key)
Return the value of a web resource based on its key.
|
|
String
|
getMessage(String key, Object[] args)
Return the value of a web resource based on its key, using MessageFormat
to perform parametric substitution with formatting.
|
|
String
|
getPageSource()
Get the source of the HTML page (like in a real browser), or HTTP body for a non HTML content.
|
|
String
|
getServeurResponse()
Get the last data sent by the server.
|
|
Table
|
getTable(String tableSummaryNameOrId)
|
|
TestContext
|
getTestContext()
Provide access to test testContext.
|
|
WebTester
|
getTester()
Get internal WebTester.
|
|
String
|
getTestingEngineKey()
Gets the Testing Engine Key that is used to find the proper testing engine class (HtmlUnitDialog /
SeleniumDialog) for the tests.
|
|
void
|
gotoFrame(String frameNameOrId)
Make the given frame active.
|
|
void
|
gotoPage(String url)
Go to the given page like if user has typed the URL manually in the browser.
|
|
void
|
gotoRootWindow()
Make the root window active.
|
|
void
|
gotoWindow(String windowName)
Make a given window active.
|
|
void
|
gotoWindow(int windowID)
Make a given window active.
|
|
void
|
gotoWindowByTitle(String title)
Make first window with the given title active.
|
|
void
|
removeThreadLocal()
|
|
void
|
reset()
Reset the current form using the default reset button.
|
|
void
|
runBare()
Clean up unused memory.
|
|
void
|
saveAs(File f)
Save the last downloaded page (or file) to the disk.
|
|
void
|
selectOption(String selectName, String label)
Select an option with a given display label in a select element.
|
|
void
|
selectOptionByValue(String selectName, String value)
Select an option with a given value in a select element.
|
|
void
|
selectOptions(String selectName, String[] labels)
Select options with given display labels in a select element.
|
|
void
|
selectOptionsByValues(String selectName, String[] values)
Select options with given values in a select element.
|
|
void
|
setDialog(IJWebUnitDialog aIJWebUnitDialog)
Set the testing engine.
|
|
void
|
setExpectedJavaScriptAlert(String message)
Tell that the given alert boxe is expected.
|
|
void
|
setExpectedJavaScriptAlert(String[] messages)
Tell that the given alert boxes are expected in the given order.
|
|
void
|
setExpectedJavaScriptConfirm(String[] messages, boolean[] actions)
Tell that the given confirm boxes are expected in the given order.
|
|
void
|
setExpectedJavaScriptConfirm(String message, boolean action)
Tell that the given confirm boxe is expected.
|
|
void
|
setExpectedJavaScriptPrompt(String[] messages, String[] inputs)
Tell that the given prompt boxes are expected in the given order.
|
|
void
|
setExpectedJavaScriptPrompt(String message, String input)
Tell that the given prompt boxe is expected.
|
|
void
|
setFormElement(String formElementName, String value)
This method is deprecated.
use setTextField or other methods
|
|
void
|
setScriptingEnabled(boolean value)
Enable or disable Javascript support
|
|
void
|
setTestContext(TestContext aTestContext)
Allows setting an external test testContext class that might be extended from TestContext.
|
|
void
|
setTester(WebTester tester)
|
|
void
|
setTestingEngineKey(String testingEngineKey)
Set the Testing Engine that you want to use for the tests based on the Testing Engine Key.
|
|
void
|
setTextField(String inputName, String value)
Set the value of a text or password input field.
|
|
void
|
setWorkingForm(int index)
Begin interaction with a specified form.
|
|
void
|
setWorkingForm(String nameOrId)
Begin interaction with a specified form.
|
|
void
|
setWorkingForm(String nameOrId, int index)
Begin interaction with a specified form.
|
|
void
|
submit(String buttonName, String buttonValue)
Submit the form by pressing the named button with the given value (label).
|
|
void
|
submit(String buttonName)
Submit form by pressing named button.
|
|
void
|
submit()
Submit form - default submit button will be used (unnamed submit button, or named button if there is only one on
the form.
|
|
void
|
tearDown()
|
|
void
|
uncheckCheckbox(String checkBoxName)
Deselect a specified checkbox.
|
|
void
|
uncheckCheckbox(String checkBoxName, String value)
Deselect a specified checkbox.
|
|
void
|
wrapWithPageSourceOnError(Runnable runnable)
For use on those few occasions when the exception might be recoverable, but we still want to see what went wrong.
|