| Newsgroups |
gmane.comp.web.httpunit.devel |
| Message-ID |
<ABF4E02DA33A6F4BAC41122C7086C8990C2C5E@bromail01.internal.gxs.com> |
Thanks for your response Graeme,
> Is the response returned just the same as prior to submitting the
form?
I ran it in the Eclipse debugger and yes, when I get to this point the
WebResponse has the same id, which leads me to believe that it is the
same object. The ID changes in previous submits.
> What about checkMultipleEmail ? What's in there?
I hadn't actually thought about that. On the web page there is a text
field in which one may enter an e-mail address. I don't enter an e-mail
address in the test, and I also don't enter one when I do it manually.
When I use the website Manually, I have no problems. I might see if I
can find the javascript file that is housing that function to check it
out further, it isn't on the webpage.
>Strange, rhino usually throws the most unhelpful of errors ....
>As an after thought - have you actually checked to see if the alert box
is
>present? WebClient.popNextAltert() ??
Another good suggestion, I will try that out as well. I wasn't real
sure how HTTPUnit handled javascript alerts, so I was still researching.
Will popNextAlert() return true or false based on the status of the
alert queue?
Thanks again.
Rob
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Graeme J Sweeney
Sent: Tuesday, March 28, 2006 11:39 AM
To: [email protected]
Subject: Re: [Httpunit-develop] Form not being submitted
On Tue, 28 Mar 2006, [email protected] wrote:
> website, I have to click through a series of forms and on the last
form
> when I try and submit the form, nothing seems to happen and I get no
> errors either. The following is a snippet showing the <FORM> tag,
and
Is the response returned just the same as prior to submitting the form?
<snip/>
> function validateEmail() {
> var emailValue =
> document.forms[0].EMAIL_ADDRESS_ENTERED.value
> flag = checkMultipleEmail(emailValue)
What about checkMultipleEmail ? What's in there?
> I am not clicking the Cancel button. I have tried using
form.submit(),
> form.submitNoButtons(). I have even tried button.click() on the
submit
> button. Nothing seems to work. I suspect this has to do with the
> javascript onsubmit function but I am not sure.
Strange, rhino usually throws the most unhelpful of errors ....
As an after thought - have you actually checked to see if the alert box
is
present? WebClient.popNextAltert() ??
--
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
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
-------------------------------------------------------
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&kid0944&bid$1720&dat1642