Httunit and navaigation bar

s e <[email protected]> Fri, 9 Oct 2009 15:06:50 +0200
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
--===============1273339600176244513==
Content-Type: multipart/alternative; boundary=0015175dd9ceca5709047580401e

--0015175dd9ceca5709047580401e
Content-Type: text/plain; charset=ISO-8859-1

Hi All,
I want to use HTTPUNIT for  webtesting.
The problem is that the site has no submitButton or any button at all and no
links.
everythis is build with tables see this example ;
The problem is that the site also has a navigation bar to  example :  File
and after click on FIle then new menu appears with  Save or Save As etc etc
The qeustion how i can navigate thru this site with HTTPUNIT
resume: no buttons no links and no submitbutton.
to log in i use:
            resp.getForms()[0].setParameter("LOGON_USER_NAME", "aaa");
            resp.getForms()[0].setParameter("LOGON_PASSWORD", "bbb");
            form.submit();

this works !!!!!!!!!!
can some one help please.
<tr style="padding:2px;"><td class="IE-NS6-CF_R-left-bottom">&nbsp;</td><td
class="IE-NS6-CF_Lowerbar"><table border="0" align="left" cellspacing="0"
cellpadding="0" class="IE-NS6-CF_BTN"><tr><td class="IE-NS6-CF_BTN-en-left"
width="8">&nbsp;</td><td class="IE-NS6-CF_BTN-en-center" style="cursor:
pointer; cursor: hand;" onclick="document.forms[0].submit();" width="40">
Log-in</td><td class="IE-NS6-CF_BTN-en-right" width="8">&nbsp;</td></tr>
</table>








Thanks
greetings Said

--0015175dd9ceca5709047580401e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,<div><br></div><div>I want to use HTTPUNIT for =A0webtesting.</div><=
div>The problem is that the site has no submitButton or any button at all a=
nd no links.</div><div>everythis is build with tables see this example ;</d=
iv>
<div>The problem is that the site also has a navigation bar to =A0example :=
 =A0File=A0</div><div>and after click on FIle then new menu appears with =
=A0Save or Save As etc etc</div><div>The qeustion how i can navigate thru t=
his site with HTTPUNIT</div>
<div>resume: no buttons no links and no submitbutton.</div><div>to log in i=
 use:</div><div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0resp.getForms()[0].setParame=
ter(&quot;LOGON_USER_NAME&quot;, &quot;aaa&quot;);</div><div>=A0=A0 =A0 =A0=
 =A0 =A0 =A0resp.getForms()[0].setParameter(&quot;LOGON_PASSWORD&quot;, &qu=
ot;bbb&quot;);</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0form.submit();</div><div><br></div><div>this=
 works !!!!!!!!!!</div><div>can some one help please.</div><div><span class=
=3D"Apple-style-span" style=3D"font-family: &#39;Times New Roman&#39;; font=
-size: medium; "><table>
<tbody><tr><td class=3D"webkit-line-content"><span class=3D"webkit-html-tag=
">&lt;tr=A0<span class=3D"webkit-html-attribute-name">style</span>=3D&quot;=
<span class=3D"webkit-html-attribute-value">padding:2px;</span>&quot;&gt;</=
span></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;td=A0<span class=3D"webkit-html-a=
ttribute-name">class</span>=3D&quot;<span class=3D"webkit-html-attribute-va=
lue">IE-NS6-CF_R-left-bottom</span>&quot;&gt;</span>&amp;nbsp;<span class=
=3D"webkit-html-tag">&lt;/td&gt;</span></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;td=A0<span class=3D"webkit-html-a=
ttribute-name">class</span>=3D&quot;<span class=3D"webkit-html-attribute-va=
lue">IE-NS6-CF_Lowerbar</span>&quot;&gt;</span></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;table=A0<span class=3D"webkit-htm=
l-attribute-name">border</span>=3D&quot;<span class=3D"webkit-html-attribut=
e-value">0</span>&quot;=A0<span class=3D"webkit-html-attribute-name">align<=
/span>=3D&quot;<span class=3D"webkit-html-attribute-value">left</span>&quot=
;=A0<span class=3D"webkit-html-attribute-name">cellspacing</span>=3D&quot;<=
span class=3D"webkit-html-attribute-value">0</span>&quot;=A0<span class=3D"=
webkit-html-attribute-name">cellpadding</span>=3D&quot;<span class=3D"webki=
t-html-attribute-value">0</span>&quot;=A0<span class=3D"webkit-html-attribu=
te-name">class</span>=3D&quot;<span class=3D"webkit-html-attribute-value">I=
E-NS6-CF_BTN</span>&quot;&gt;</span></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;tr&gt;</span></td></tr><tr><td cl=
ass=3D"webkit-line-number"></td><td class=3D"webkit-line-content"><span cla=
ss=3D"webkit-html-tag">&lt;td=A0<span class=3D"webkit-html-attribute-name">=
class</span>=3D&quot;<span class=3D"webkit-html-attribute-value">IE-NS6-CF_=
BTN-en-left</span>&quot;=A0<span class=3D"webkit-html-attribute-name">width=
</span>=3D&quot;<span class=3D"webkit-html-attribute-value">8</span>&quot;&=
gt;</span>&amp;nbsp;<span class=3D"webkit-html-tag">&lt;/td&gt;</span></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;td=A0<span class=3D"webkit-html-a=
ttribute-name">class</span>=3D&quot;<span class=3D"webkit-html-attribute-va=
lue">IE-NS6-CF_BTN-en-center</span>&quot;=A0<span class=3D"webkit-html-attr=
ibute-name">style</span>=3D&quot;<span class=3D"webkit-html-attribute-value=
">cursor: pointer; cursor: hand;</span>&quot;=A0<span class=3D"webkit-html-=
attribute-name">onclick</span>=3D&quot;<span class=3D"webkit-html-attribute=
-value">document.forms[0].submit();</span>&quot;=A0<span class=3D"webkit-ht=
ml-attribute-name">width</span>=3D&quot;<span class=3D"webkit-html-attribut=
e-value">40</span>&quot;&gt;</span><font class=3D"Apple-style-span" color=
=3D"#FF6666">Log-in</font><span class=3D"webkit-html-tag">&lt;/td&gt;</span=
></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;td=A0<span class=3D"webkit-html-a=
ttribute-name">class</span>=3D&quot;<span class=3D"webkit-html-attribute-va=
lue">IE-NS6-CF_BTN-en-right</span>&quot;=A0<span class=3D"webkit-html-attri=
bute-name">width</span>=3D&quot;<span class=3D"webkit-html-attribute-value"=
>8</span>&quot;&gt;</span>&amp;nbsp;<span class=3D"webkit-html-tag">&lt;/td=
&gt;</span></td>
</tr><tr><td class=3D"webkit-line-number"></td><td class=3D"webkit-line-con=
tent"><span class=3D"webkit-html-tag">&lt;/tr&gt;</span></td></tr><tr><td c=
lass=3D"webkit-line-number"></td><td class=3D"webkit-line-content"><span cl=
ass=3D"webkit-html-tag">&lt;/table&gt;</span></td>
</tr></tbody></table></span></div></div><div><br></div><div><span class=3D"=
Apple-style-span" style=3D"font-family: &#39;Times New Roman&#39;; font-siz=
e: medium; "><table><tbody><tr><td class=3D"webkit-line-content"></td></tr>=
<tr>
<td class=3D"webkit-line-number"><br></td><td class=3D"webkit-line-content"=
><span class=3D"webkit-html-tag"><br><br><br><br><br><br>Thanks=A0<br>greet=
ings Said<br><br><br></span> </td></tr></tbody></table></span></div>

--0015175dd9ceca5709047580401e--


--===============1273339600176244513==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
--===============1273339600176244513==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop

--===============1273339600176244513==--