com.meterware.httpunit.dom
Interface DomWindowProxy

All Known Implementing Classes:
WebResponse

public interface DomWindowProxy

Author:
Russell Gold

Method Summary
 void alert(java.lang.String message)
           
 void close()
           
 boolean confirm(java.lang.String message)
           
 ScriptingHandler getScriptingHandler()
           
 java.net.URL getURL()
          Returns the URL associated with the window.
 DomWindowProxy openNewWindow(java.lang.String name, java.lang.String relativeUrl)
           
 java.lang.String prompt(java.lang.String prompt, java.lang.String defaultResponse)
           
 boolean replaceText(java.lang.String text, java.lang.String contentType)
          Replaces the text in the window with the specified text and content type.
 DomWindowProxy submitRequest(HTMLElementImpl sourceElement, java.lang.String method, java.lang.String location, java.lang.String target, MessageBody requestBody)
           
 

Method Detail

openNewWindow

DomWindowProxy openNewWindow(java.lang.String name,
                             java.lang.String relativeUrl)
                             throws java.io.IOException,
                                    org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

getScriptingHandler

ScriptingHandler getScriptingHandler()

close

void close()

alert

void alert(java.lang.String message)

confirm

boolean confirm(java.lang.String message)

prompt

java.lang.String prompt(java.lang.String prompt,
                        java.lang.String defaultResponse)

getURL

java.net.URL getURL()
Returns the URL associated with the window.

Returns:
the URL associated with the window.

replaceText

boolean replaceText(java.lang.String text,
                    java.lang.String contentType)
Replaces the text in the window with the specified text and content type. Returns false if unable to do the replacement.


submitRequest

DomWindowProxy submitRequest(HTMLElementImpl sourceElement,
                             java.lang.String method,
                             java.lang.String location,
                             java.lang.String target,
                             MessageBody requestBody)
                             throws java.io.IOException,
                                    org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException


Copyright © 2011. All Rights Reserved.