Feature Requests item #1291520, was opened at 2005-09-14 21:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1291520&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Next Release (example)
Status: Open
Priority: 5
Submitted By: Kalen Howell (kalensr)
Assigned to: Nobody/Anonymous (nobody)
Summary: getRefreshRequest

Initial Comment:
I am looking for support for browser-side redirects.

At this time I do not see how handle this in jWebUnit.

Using HttpUnit I was able to handle this with the
following code snippet:

// get redirect request
                WebRequest refreshReq;
                
                if((refreshReq = response.getRefreshRequest()) == null){
                                // to do: Verify new page has been reached
                                System.out.println("refresh req == null");
                        }
                else{
                                // get refresh request URL
                                refreshReq = response.getRefreshRequest();
                                System.out.println("refresh request: " +
refreshReq.getURL());
                                
                                // get new response using refreshReq URL
                                response =
wc.getResponse(refreshReq.getURL().toString());
                                assertNotNull("Response from Refresh Request: ",
response);
                        }

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497985&aid=1291520&group_id=61302


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to