Gets the current form in the current response. This is the one that has been selected by setting the last form field.
null if no current form available
getCurrentHtmlResponse
public HtmlPage getCurrentHtmlResponse(Step step)(Code)
Gets the current response as
com.gargoylesoftware.htmlunit.html.HtmlPage Parameters: step - throws: StepExecutionException - if the current response isn't an html page
Gets the current responses (currentResponse and previousResponse) of
the context to be able to restore them later.
MG: may probably be problematic (like previousResponse) when windows have been closed
the status
Sets the current and previous response for this context and this step
with the associated files (if any)
Parameters: current - The future current response.
Sets the form that has to be used as the default one for setting fields.
Parameters: form - new current form or if null then set current form to none (reset)
setCurrentResponseFile
public void setCurrentResponseFile(String name)(Code)
setSavedPassword
public void setSavedPassword(String password)(Code)
setSavedUserName
public void setSavedUserName(String userName)(Code)
setWebClient
public void setWebClient(WebClient webClient)(Code)