[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebClient.java,1.40,1.41
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-10-11 00:23:23
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv15699/src/com/meterware/httpunit
Modified Files:
WebClient.java
Log Message:
Added WebClient.getOpenWindow function
Index: WebClient.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebClient.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- WebClient.java 10 Oct 2002 21:10:19 -0000 1.40
+++ WebClient.java 11 Oct 2002 00:23:20 -0000 1.41
@@ -65,6 +65,16 @@
}
+ public WebWindow getOpenWindow( String name ) {
+ if (name == null || name.length() == 0) return null;
+ for (Iterator i = _openWindows.iterator(); i.hasNext();) {
+ WebWindow window = (WebWindow) i.next();
+ if (name.equals( window.getName() )) return window;
+ }
+ return null;
+ }
+
+
/**
* Submits a GET method request and returns a response.
* @exception SAXException thrown if there is an error parsing the retrieved page
|