Problem with clicking an image to continue

"Ortega, Ben M - Wilkes-Barre, PA - Contractor" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <C1934BA5809E9F4096644BE1E6BE4F2FA37380@SAMTCASXM21>
Hi,

 

I have a situation in which an image that looks like a button (Go>) is
clicked to continue to the next page.  How can I test this with
httpunit?  

 

I have included code snippets below.  The web page is available at 
https://sss-web.usps.com/cns/landing.do

 

Thanks,

 

Ben

 

Snippets:

 

<script language="JavaScript">

            function submitGo(form) {

                        form.action =
"/cns/enterLabelInfo.do?landing=true&countryID="+form.country.options[fo
rm.country.selectedIndex].value ;

//                      var c =
form.country.options[form.country.selectedIndex].value;

//                      if(c == "1") {

//                                  form.action =
"/cns/enterLabelInfo.do?countryID="+c ;

//                      }else{

//                                  form.action =
"/cns/p_enterLabelInfo.do?countryID="+c ;

//                      }

                        form.submit();

            }

            

            function submitSignIn(form) {

                        form.action =
"/cns/p_enterLabelInfo.do?pageName=landing&countryID="+form.country.opti
ons[form.country.selectedIndex].value ;

                        form.submit();

            }

</script>

 

<form name="landingPageForm" method="post" action="/cns/landing.do"
id="landingPageForm">

.

.

.

<input type="image" name="" src="/cns/images/button_go.gif" border="0"
tabindex="16" onclick="submitGo(landingPageForm);" alt="Go to Shipping
Labels">
header.htm (text/html, 3.1 KB)
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link id=Main-File rel=Main-File href="cid:[email protected]">
</head>

<body lang=EN-US link=blue vlink=purple>

<div style='mso-element:header' id=h1>

<p class=MsoHeader><!--[if supportFields]><font size=4 face=Arial><span 
style='font-size:14.0pt;font-family:Arial'><span style='mso-element:field-begin'></span><span 
style='mso-spacerun:yes'> </span>FILENAME <span style='mso-element:field-separator'></span></span></font><![endif]--><font
size=4 face=Arial><span style='font-size:14.0pt;font-family:Arial'><span
style='mso-no-proof:yes'>Normal.dot</span></span></font><!--[if supportFields]><font 
size=4 face=Arial><span style='font-size:14.0pt;font-family:Arial'><span 
style='mso-element:field-end'></span></span></font><![endif]--><font size=4
face=Arial><span style='font-size:14.0pt;font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div style='mso-element:footer' id=f1>

<p class=MsoFooter><!--[if supportFields]><span style='mso-element:field-begin'></span><span 
style='mso-spacerun:yes'> </span>DATE \@ &quot;M/d/yyyy&quot; <span 
style='mso-element:field-separator'></span><![endif]--><span style='mso-no-proof:
yes'>5/19/2006</span><!--[if supportFields]><span style='mso-element:field-end'></span><![endif]-->
<!--[if supportFields]><span style='mso-element:field-begin'></span><span 
style='mso-spacerun:yes'> </span>TIME \@ &quot;h:mm am/pm&quot; <span 
style='mso-element:field-separator'></span><![endif]--><span style='mso-no-proof:
yes'>6:47 AM</span><!--[if supportFields]><span style='mso-element:field-end'></span><![endif]-->
<span style='mso-tab-count:1'>                                    </span><!--[if supportFields]><span 
class=MsoPageNumber><font face="Times New Roman"><span style='mso-element:field-begin'></span><span 
style='mso-spacerun:yes'> </span>PAGE <span style='mso-element:field-separator'></span></font></span><![endif]--><span
class=MsoPageNumber><font face="Times New Roman"><span style='mso-no-proof:
yes'>1</span></font></span><!--[if supportFields]><span class=MsoPageNumber><font 
face="Times New Roman"><span style='mso-element:field-end'></span></font></span><![endif]--><span
class=MsoPageNumber><font face="Times New Roman"> of </font></span><!--[if supportFields]><span 
class=MsoPageNumber><font face="Times New Roman"><span style='mso-element:field-begin'></span><span 
style='mso-spacerun:yes'> </span>NUMPAGES <span style='mso-element:field-separator'></span></font></span><![endif]--><span
class=MsoPageNumber><font face="Times New Roman"><span style='mso-no-proof:
yes'>1</span></font></span><!--[if supportFields]><span class=MsoPageNumber><font 
face="Times New Roman"><span style='mso-element:field-end'></span></font></span><![endif]--></p>

</div>

</body>

</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.