RE: How to access Java Script associated with a button in a page and capture a new window.
Graeme J Sweeney <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 9 Mar 2006, [email protected] wrote: > If you want to test your web application, the HttpUnit works fine. If > you want to test the combination of browser and web application, then > you're probably better off using Watir or Selenium. > > I've never tried testing the javascript embedded in the page with > HttpUnit. From the messages I've seen on this list, that's not easy to > do. That's why I'm suggesting simulating what the javascript does. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of hari > prasanna > Sent: Thursday, March 09, 2006 12:56 AM > To: [email protected] > Subject: RE: [Httpunit-develop] How to access Java Script > associated with a button in a page and capture a new window. > > > Hi George, > > One thing which prevents up accessing the login page directly by > forming the URL is, the app throws up error when accessed directly. > > Moreover , its a requirement that i have to go through the first > page ,access the button or access the script directly and go to the next > page. In the way i also test for this page. Looking at the Javascript you posted it doesn't see to do anything other than launch /app/login.jsp. If calling /app/login.jsp throws an error you need to find out why. In a browser: 1. Call the first page. 2. In the address bar change the page to /app/login.jsp and request it. Does that throw an error? If so what? The only thing I can think of (without knowing the error) is that it's looking at the referrer for /app/login.jsp -- Graeme - Outlook Express user? - http://home.in.tum.de/~jain/software/oe-quotefix/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642