|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl
public class HtmlUnitTestingEngineImpl
Acts as the wrapper for HtmlUnit access. A testing engine is initialized with a given URL, and maintains conversational state as the dialog progresses through link navigation, form submission, etc.
| Constructor Summary | |
|---|---|
HtmlUnitTestingEngineImpl()
Initializes default HtmlUnit testing engine implementation. |
|
| Method Summary | |
|---|---|
void |
beginAt(java.net.URL initialURL,
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)
Clicks the first button that contains the specified text as its label. |
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()
Close the browser and check that all expected Javascript alerts, confirms and prompts have been taken care of. |
void |
closeWindow()
Close the current window. |
java.util.Map<java.lang.String,java.lang.String> |
getAllHeaders()
|
com.gargoylesoftware.htmlunit.html.ClickableElement |
getButtonWithText(java.lang.String buttonValueText)
Returns the first button that contains the specified text as its label. |
java.util.List<java.lang.String> |
getComments()
Get all the comments in a document, as a list of strings. |
java.util.List<javax.servlet.http.Cookie> |
getCookies()
|
java.lang.String |
getCurrentPageTitle()
Return the page title of the current response page, encoded as specified by the current TestContext. |
com.gargoylesoftware.htmlunit.BrowserVersion |
getDefaultBrowserVersion()
An alternative to setting the user agent string manually
is to provide it with all the information for a complete browser version. |
java.lang.String |
getElementAttributByXPath(java.lang.String xpath,
java.lang.String attribut)
|
IElement |
getElementByID(java.lang.String id)
|
IElement |
getElementByXPath(java.lang.String xpath)
|
java.util.List<IElement> |
getElementsByXPath(java.lang.String xpath)
|
java.lang.String |
getElementTextByXPath(java.lang.String xpath)
|
java.lang.String |
getHeader(java.lang.String name)
|
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[] |
getSelectedOptions(java.lang.String selectName,
int index)
|
java.lang.String |
getSelectedRadio(java.lang.String radioGroup)
|
java.lang.String |
getSelectOptionLabelForValue(java.lang.String selectName,
int index,
java.lang.String value)
|
java.lang.String |
getSelectOptionLabelForValue(java.lang.String selectName,
java.lang.String value)
|
java.lang.String |
getSelectOptionValueForLabel(java.lang.String selectName,
int index,
java.lang.String label)
|
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[] |
getSelectOptionValues(java.lang.String selectName,
int index)
Return a string array of the Nth select box option values. |
java.lang.String |
getServerResponse()
|
int |
getServerResponseCode()
|
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. |
Table |
getTable(java.lang.String tableSummaryOrId)
|
java.lang.String |
getTextFieldValue(java.lang.String paramName)
Return the current value of a text input element with name paramName. |
com.gargoylesoftware.htmlunit.WebResponse |
getWebResponse()
Get the last WebResponse from HtmlUnit. |
int |
getWindowCount()
|
void |
gotoFrame(java.lang.String frameNameOrId)
|
void |
gotoPage(java.net.URL initialURL)
Go to a particular page. |
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 whether a button containing the specified text as its label exists. |
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 |
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,
int index,
java.lang.String optionLabel)
Return true if the Nth select box contains the indicated option. |
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,
int index,
java.lang.String optionValue)
Return true if the Nth 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)
|
boolean |
isCheckboxSelected(java.lang.String checkBoxName)
|
boolean |
isCheckboxSelected(java.lang.String checkBoxName,
java.lang.String checkBoxValue)
|
boolean |
isIgnoreFailingStatusCodes()
|
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,
int index,
java.lang.String[] options)
Select the specified set of options in the select element with the provided name. |
void |
selectOptions(java.lang.String selectName,
java.lang.String[] options)
Select the specified set of options in the select element with the provided name. |
void |
setDefaultBrowserVersion(com.gargoylesoftware.htmlunit.BrowserVersion defaultBrowserVersion)
An alternative to setting the user agent string manually
is to provide it with all the information for a complete browser version. |
void |
setExpectedJavaScriptAlert(JavascriptAlert[] alerts)
|
void |
setExpectedJavaScriptConfirm(JavascriptConfirm[] confirms)
|
void |
setExpectedJavaScriptPrompt(JavascriptPrompt[] prompts)
|
void |
setHiddenField(java.lang.String fieldName,
java.lang.String text)
Set a form hidden element to the provided value. |
void |
setIgnoreFailingStatusCodes(boolean ignore)
|
void |
setScriptingEnabled(boolean value)
|
void |
setTextField(java.lang.String paramName,
java.lang.String text)
Set a form text, password input element or textarea to the provided value. |
void |
setThrowExceptionOnScriptError(boolean value)
|
void |
setTimeout(int milliseconds)
|
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 specified 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,
int index,
java.lang.String[] options)
|
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 |
| Constructor Detail |
|---|
public HtmlUnitTestingEngineImpl()
| Method Detail |
|---|
public void beginAt(java.net.URL initialURL,
TestContext context)
throws TestingEngineResponseException
beginAt in interface ITestingEngineinitialURL - absolute url at which to begin dialog.context - contains context information for the test client.
TestingEngineResponseException
public void closeBrowser()
throws ExpectedJavascriptAlertException,
ExpectedJavascriptConfirmException,
ExpectedJavascriptPromptException
closeBrowser in interface ITestingEngineExpectedJavascriptAlertException
ExpectedJavascriptConfirmException
ExpectedJavascriptPromptException
public void gotoPage(java.net.URL initialURL)
throws TestingEngineResponseException
gotoPage in interface ITestingEngineTestingEngineResponseException - if an error response code is encountered
and ignoreFailingStatusCodes is not enabled.public void setScriptingEnabled(boolean value)
setScriptingEnabled in interface ITestingEngineIJWebUnitDialogpublic void setThrowExceptionOnScriptError(boolean value)
setThrowExceptionOnScriptError in interface ITestingEnginepublic java.util.List<javax.servlet.http.Cookie> getCookies()
getCookies in interface ITestingEnginepublic boolean hasWindow(java.lang.String windowName)
hasWindow in interface ITestingEnginepublic boolean hasWindowByTitle(java.lang.String title)
hasWindowByTitle in interface ITestingEnginepublic void gotoWindow(java.lang.String windowName)
gotoWindow in interface ITestingEnginewindowName - public void gotoWindow(int windowID)
gotoWindow in interface ITestingEnginepublic int getWindowCount()
getWindowCount in interface ITestingEnginepublic void gotoWindowByTitle(java.lang.String title)
gotoWindowByTitle in interface ITestingEnginetitle - public void closeWindow()
closeWindow in interface ITestingEnginepublic boolean hasFrame(java.lang.String frameNameOrId)
hasFrame in interface ITestingEnginepublic void gotoFrame(java.lang.String frameNameOrId)
gotoFrame in interface ITestingEnginepublic void setWorkingForm(int index)
setWorkingForm in interface ITestingEngine
public void setWorkingForm(java.lang.String nameOrId,
int index)
setWorkingForm in interface ITestingEnginepublic boolean hasForm()
hasForm in interface ITestingEnginepublic boolean hasForm(java.lang.String nameOrID)
hasForm in interface ITestingEnginenameOrID - name of id of the form to check for.public boolean hasFormParameterNamed(java.lang.String paramName)
hasFormParameterNamed in interface ITestingEnginepublic java.lang.String getTextFieldValue(java.lang.String paramName)
paramName.
getTextFieldValue in interface ITestingEngineparamName - 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 ITestingEngineparamName - name of the input element. TODO: Find a way to handle multiple hidden input element with same
name.
public void setTextField(java.lang.String paramName,
java.lang.String text)
setTextField in interface ITestingEnginefieldName - name of the input element or textareatext - parameter value to submit for the element.
public void setHiddenField(java.lang.String fieldName,
java.lang.String text)
setHiddenField in interface ITestingEnginefieldName - name of the hidden input elementparamValue - parameter value to submit for the element.public java.lang.String[] getSelectOptionValues(java.lang.String selectName)
getSelectOptionValues in interface ITestingEngineselectName - name of the select box.
public java.lang.String[] getSelectOptionValues(java.lang.String selectName,
int index)
getSelectOptionValues in interface ITestingEngineselectName - name of the select box.index - the 0-based index when more than one
select with the same name is expected.public java.lang.String[] getSelectedOptions(java.lang.String selectName)
getSelectedOptions in interface ITestingEngine
public java.lang.String[] getSelectedOptions(java.lang.String selectName,
int index)
getSelectedOptions in interface ITestingEngine
public java.lang.String getSelectOptionValueForLabel(java.lang.String selectName,
java.lang.String label)
getSelectOptionValueForLabel in interface ITestingEngine
public java.lang.String getSelectOptionValueForLabel(java.lang.String selectName,
int index,
java.lang.String label)
getSelectOptionValueForLabel in interface ITestingEngine
public java.lang.String getSelectOptionLabelForValue(java.lang.String selectName,
java.lang.String value)
getSelectOptionLabelForValue in interface ITestingEngine
public java.lang.String getSelectOptionLabelForValue(java.lang.String selectName,
int index,
java.lang.String value)
getSelectOptionLabelForValue in interface ITestingEnginepublic java.net.URL getPageURL()
getPageURL in interface ITestingEnginepublic java.lang.String getPageSource()
getPageSource in interface ITestingEnginepublic java.lang.String getPageTitle()
getPageTitle in interface ITestingEnginepublic java.lang.String getPageText()
getPageText in interface ITestingEnginepublic java.lang.String getServerResponse()
getServerResponse in interface ITestingEnginepublic java.io.InputStream getInputStream()
getInputStream in interface ITestingEngine
public java.io.InputStream getInputStream(java.net.URL resourceUrl)
throws TestingEngineResponseException
getInputStream in interface ITestingEngineTestingEngineResponseExceptionpublic java.util.List<java.lang.String> getComments()
getComments in interface ITestingEnginepublic java.lang.String getCurrentPageTitle()
TestContext.
public 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 ITestingEnginepublic boolean hasSubmitButton(java.lang.String buttonName)
hasSubmitButton in interface ITestingEngine
public boolean hasSubmitButton(java.lang.String buttonName,
java.lang.String buttonValue)
hasSubmitButton in interface ITestingEnginepublic boolean hasResetButton()
hasResetButton in interface ITestingEnginepublic boolean hasResetButton(java.lang.String buttonName)
hasResetButton in interface ITestingEnginepublic boolean hasButtonWithText(java.lang.String text)
hasButtonWithText in interface ITestingEnginetext - the text of the button (between <button></button>)
or the value of the "value" attribute.
true when the button with text could be found.public com.gargoylesoftware.htmlunit.html.ClickableElement getButtonWithText(java.lang.String buttonValueText)
buttonValueText - the text of the button (between <button></button>)
or the value of the "value" attribute.
public boolean hasButton(java.lang.String buttonId)
buttonId is present.
hasButton in interface ITestingEnginebuttonId - the id of the button
true when the button was found.public boolean isCheckboxSelected(java.lang.String checkBoxName)
isCheckboxSelected in interface ITestingEngine
public boolean isCheckboxSelected(java.lang.String checkBoxName,
java.lang.String checkBoxValue)
isCheckboxSelected in interface ITestingEngine
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 Table getTable(java.lang.String tableSummaryOrId)
getTable in interface ITestingEnginepublic 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 ITestingEnginepublic void submit()
getForm()for an explanation of how the
current form is established.
submit in interface ITestingEnginepublic void submit(java.lang.String buttonName)
getForm()for an explanation of how the
current form is established.
submit in interface ITestingEnginebuttonName - 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 ITestingEnginebuttonName - 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 ITestingEngine
public boolean hasLinkWithText(java.lang.String linkText,
int index)
hasLinkWithText in interface ITestingEnginelinkText - 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 ITestingEngine
public boolean hasLinkWithImage(java.lang.String imageFileName,
int index)
hasLinkWithImage in interface ITestingEnginepublic boolean hasLink(java.lang.String anId)
hasLink in interface ITestingEngineanId - link id to check for.
public void clickLinkWithText(java.lang.String linkText,
int index)
clickLinkWithText in interface ITestingEngine
public void clickLinkWithExactText(java.lang.String linkText,
int index)
clickLinkWithExactText in interface ITestingEnginepublic void checkCheckbox(java.lang.String checkBoxName)
checkCheckbox in interface ITestingEnginecheckBoxName - name of checkbox to be deselected.
public void checkCheckbox(java.lang.String checkBoxName,
java.lang.String value)
checkCheckbox in interface ITestingEnginepublic void uncheckCheckbox(java.lang.String checkBoxName)
uncheckCheckbox in interface ITestingEnginecheckBoxName - name of checkbox to be deselected.
public void uncheckCheckbox(java.lang.String checkBoxName,
java.lang.String value)
uncheckCheckbox in interface ITestingEngine
public void clickRadioOption(java.lang.String radioGroup,
java.lang.String radioOption)
clickRadioOption in interface ITestingEngineradioGroup - name of the radio group.radioOption - value of the option to check for.public void clickLink(java.lang.String anID)
clickLink in interface ITestingEngineanID - id of link to be navigated.
public void clickLinkWithImage(java.lang.String imageFileName,
int index)
clickLinkWithImage in interface ITestingEngineimageFileName - 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 ITestingEnginepublic boolean hasElementByXPath(java.lang.String xpath)
hasElementByXPath in interface ITestingEnginepublic void clickElementByXPath(java.lang.String xpath)
clickElementByXPath in interface ITestingEngine
public java.lang.String getElementAttributByXPath(java.lang.String xpath,
java.lang.String attribut)
getElementAttributByXPath in interface ITestingEnginepublic java.lang.String getElementTextByXPath(java.lang.String xpath)
getElementTextByXPath in interface ITestingEnginepublic void clickButton(java.lang.String buttonId)
clickButton in interface ITestingEnginebuttonId - public void clickButtonWithText(java.lang.String buttonValueText)
clickButtonWithText in interface ITestingEngine
public boolean hasRadioOption(java.lang.String radioGroup,
java.lang.String radioOption)
hasRadioOption in interface ITestingEngineradioGroup - 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 ITestingEngine
public boolean hasSelectOption(java.lang.String selectName,
java.lang.String optionLabel)
hasSelectOption in interface ITestingEngineselectName - name of the select box.optionLabel - label of the option.
public boolean hasSelectOptionValue(java.lang.String selectName,
java.lang.String optionValue)
hasSelectOptionValue in interface ITestingEngineselectName - name of the select box.optionValue - value of the option.
public void selectOptions(java.lang.String selectName,
java.lang.String[] options)
selectOptions in interface ITestingEngineselectName - name of the select boxoptions - set of options to select.
public boolean hasSelectOption(java.lang.String selectName,
int index,
java.lang.String optionLabel)
hasSelectOption in interface ITestingEngineselectName - name of the select box.index - the 0-based index of the select element when multiple
select elements are expected.optionLabel - label of the option.
public boolean hasSelectOptionValue(java.lang.String selectName,
int index,
java.lang.String optionValue)
hasSelectOptionValue in interface ITestingEngineselectName - name of the select box.index - the 0-based index of the select element when multiple
select elements are expected.optionValue - value of the option.
public void selectOptions(java.lang.String selectName,
int index,
java.lang.String[] options)
selectOptions in interface ITestingEngineselectName - name of the select boxindex - the 0-based index of the select element when multiple
select elements are expected.options - set of options to select.
public void unselectOptions(java.lang.String selectName,
java.lang.String[] options)
unselectOptions in interface ITestingEngine
public void unselectOptions(java.lang.String selectName,
int index,
java.lang.String[] options)
unselectOptions in interface ITestingEngine
public boolean isTextInElement(java.lang.String elementID,
java.lang.String text)
isTextInElement in interface ITestingEngine
public boolean isMatchInElement(java.lang.String elementID,
java.lang.String regexp)
isMatchInElement in interface ITestingEnginepublic void gotoRootWindow()
gotoRootWindow in interface ITestingEngine
public void setExpectedJavaScriptAlert(JavascriptAlert[] alerts)
throws ExpectedJavascriptAlertException
setExpectedJavaScriptAlert in interface ITestingEngineExpectedJavascriptAlertException
public void setExpectedJavaScriptConfirm(JavascriptConfirm[] confirms)
throws ExpectedJavascriptConfirmException
setExpectedJavaScriptConfirm in interface ITestingEngineExpectedJavascriptConfirmException
public void setExpectedJavaScriptPrompt(JavascriptPrompt[] prompts)
throws ExpectedJavascriptPromptException
setExpectedJavaScriptPrompt in interface ITestingEngineExpectedJavascriptPromptExceptionpublic IElement getElementByXPath(java.lang.String xpath)
getElementByXPath in interface ITestingEnginepublic IElement getElementByID(java.lang.String id)
getElementByID in interface ITestingEnginepublic java.util.List<IElement> getElementsByXPath(java.lang.String xpath)
getElementsByXPath in interface ITestingEnginepublic int getServerResponseCode()
getServerResponseCode in interface ITestingEnginepublic com.gargoylesoftware.htmlunit.WebResponse getWebResponse()
public boolean isIgnoreFailingStatusCodes()
public void setIgnoreFailingStatusCodes(boolean ignore)
setIgnoreFailingStatusCodes in interface ITestingEnginepublic java.lang.String getHeader(java.lang.String name)
getHeader in interface ITestingEnginepublic java.util.Map<java.lang.String,java.lang.String> getAllHeaders()
getAllHeaders in interface ITestingEnginepublic com.gargoylesoftware.htmlunit.BrowserVersion getDefaultBrowserVersion()
user agent string manually
is to provide it with all the information for a complete browser version.
BrowserVersionpublic void setDefaultBrowserVersion(com.gargoylesoftware.htmlunit.BrowserVersion defaultBrowserVersion)
user agent string manually
is to provide it with all the information for a complete browser version.
the - browser version to set as default for this engine instanceBrowserVersionpublic void setTimeout(int milliseconds)
setTimeout in interface ITestingEngine
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||