[Webtest] Problem with nested <html> tags

Rinkesh Bansal Rinkesh Bansal" <rinkesh_bansal@persistent.co.in
Fri, 20 Jun 2008 18:30:37 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C8D303.BC94A540
Content-Type: text/plain;
	charset="us-ascii"
content-transfer-encoding: 7bit

Hello,

 

I am having a JSP, struts based application.  On one of my JSP is having 3-4
JSP files included, each having its own HTML tag.  So in my webpage I am
having nested html, body and form tags.  

 

Problem:  Canoo is able to read all the elements between the last accessed
<html> </html> tags only, and could recognize form element of this html tag
only.  I wanted to work with elements of other html tags also.  So, is there
any mechanism in Canoo Webtest using which I can switch between multiple
html tags.  Please see the below example which shows the structure.

 

For example:

<HTML>

            <BODY>

                        <HTML>

                                    <BODY>

            <form name="form1" method="post" ..>

                        <Input type="button" name="submit1" />

            </form>

                                    </BODY>

                        </HTML>

            <form name="form2" method="post" ..>

                        <Input type="button" name="submit2" />

            </form>

</BODY>

</HTML>

 

In above example, Canoo is able to detect only form1 and submit1, but cannot
parse form2 and its elements.

 

Please let me know if anyone is having idea to solve this problem.

 

Thanks & Regards,

Rinkesh Bansal | Module Lead | Persistent Systems Ltd

 <mailto:rinkesh_bansal@persistent.co.in> rinkesh_bansal@persistent.co.in  |
Cell: +91 93261 76376 | Tel: +91 (20) 3023 6792

Innovation in software product design, development and delivery-
<http://www.persistentsys.com/> www.persistentsys.com

 

 

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

------=_NextPart_000_0001_01C8D303.BC94A540
Content-Type: text/html;
	charset="us-ascii"
content-transfer-encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sch=
emas-microsoft-com:office:word" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>I am having a JSP, struts based application.&nbsp; On one=
 of
my JSP is having 3-4 JSP files included, each having its own HTML tag.&nbsp;=
 So
in my webpage I am having nested html, body and form tags.&nbsp; <o:p></o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><b><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial;font-weight:bold'>Problem:</span></font></b><font size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>&nbsp; Canoo=
 is
able to read all the elements between the last accessed &lt;html&gt; &lt;/ht=
ml&gt;
tags only, and could recognize form element of this html tag only.&nbsp; I
wanted to work with elements of other html tags also.&nbsp; So, is there any
mechanism in Canoo Webtest using which I can switch between multiple html ta=
gs.&nbsp;
Please see the below example which shows the structure.<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>For example:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&lt;HTML&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; &lt;BODY&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; &lt;HTML&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; &lt;BODY&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><font size=3D2 face=3DArial=
><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form
name=3D&#8221;form1&#8221; method=3D&#8221;post&#8221; &#8230;&#8230;&gt;<o:=
p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><font size=3D2 face=3DArial=
><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Input
type=3D&#8221;button&#8221; name=3D&#8221;submit1&#8221; /&gt;<o:p></o:p></s=
pan></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><font size=3D2 face=3DArial=
><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; &lt;/BODY&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; &lt;/HTML&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial>=
<span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form
name=3D&#8221;form2&#8221; method=3D&#8221;post&#8221; &#8230;&#8230;&gt;<o:=
p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial>=
<span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Input
type=3D&#8221;button&#8221; name=3D&#8221;submit2&#8221; /&gt;<o:p></o:p></s=
pan></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial>=
<span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal style=3D'text-indent:.5in'><font size=3D2 face=3DArial>=
<span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;/BODY&gt;<o:p></o:p></span>=
</font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>&lt;/HTML&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>In above example, Canoo is able to detect only form1 and
submit1, but cannot parse form2 and its elements.<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'>Please let me know if anyone is having idea to solve this
problem.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><b><font size=3D1 color=3D"#333399" face=3DCalibri><spa=
n
style=3D'font-size:9.0pt;font-family:Calibri;color:#333399;font-weight:bold'=
>Thanks
&amp; Regards,</span></font></b><o:p></o:p></p>

<p class=3DMsoNormal><b><font size=3D1 color=3D"#1f497d" face=3DCalibri><spa=
n
style=3D'font-size:9.0pt;font-family:Calibri;color:#1F497D;font-weight:bold'=
>Rinkesh
Bansal </span></font></b><b><font size=3D1 color=3Dblack face=3DCalibri><spa=
n
style=3D'font-size:9.0pt;font-family:Calibri;color:black;font-weight:bold'>|=
</span></font></b><b><font
size=3D1 color=3D"#1f497d" face=3DCalibri><span style=3D'font-size:9.0pt;fon=
t-family:
Calibri;color:#1F497D;font-weight:bold'> Module Lead </span></font></b><b><f=
ont
size=3D1 color=3Dblack face=3DCalibri><span style=3D'font-size:9.0pt;font-fa=
mily:Calibri;
color:black;font-weight:bold'>|</span></font></b><b><font size=3D1 color=3D"=
#1f497d"
face=3DCalibri><span style=3D'font-size:9.0pt;font-family:Calibri;color:#1F4=
97D;
font-weight:bold'> Persistent Systems Ltd<o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D'=
font-size:
12.0pt'><a href=3D"mailto:rinkesh_bansal@persistent.co.in"><b><font size=3D1=
><span
style=3D'font-size:9.0pt;font-weight:bold'>rinkesh_bansal@persistent.co.in</=
span></font></b></a></span></font><b><font
size=3D1 color=3D"#1f497d" face=3DCalibri><span style=3D'font-size:9.0pt;fon=
t-family:
Calibri;color:#1F497D;font-weight:bold'>&nbsp; </span></font></b><b><font
size=3D1 color=3Dblack face=3DCalibri><span style=3D'font-size:9.0pt;font-fa=
mily:Calibri;
color:black;font-weight:bold'>| </span></font></b><b><font size=3D1
color=3D"#1f497d" face=3DCalibri><span style=3D'font-size:9.0pt;font-family:=
Calibri;
color:#1F497D;font-weight:bold'>Cell: +91 93261 76376 </span></font></b><b><=
font
size=3D1 color=3Dblack face=3DCalibri><span style=3D'font-size:9.0pt;font-fa=
mily:Calibri;
color:black;font-weight:bold'>| </span></font></b><b><font size=3D1
color=3D"#1f497d" face=3DCalibri><span style=3D'font-size:9.0pt;font-family:=
Calibri;
color:#1F497D;font-weight:bold'>Tel: +91 (20) 3023 6792<o:p></o:p></span></f=
ont></b></p>

<p class=3DMsoNormal><b><font size=3D1 color=3Dblack face=3DCalibri><span
style=3D'font-size:9.0pt;font-family:Calibri;color:black;font-weight:bold'>I=
nnovation
in software product design, development and delivery- </span></font></b><a
href=3D"http://www.persistentsys.com/"><b><font size=3D1><span style=3D'font=
-size:
9.0pt;font-weight:bold'>www.persistentsys.com</span></font></b></a><b><font
size=3D1 color=3Dblack><span style=3D'font-size:9.0pt;color:black;font-weigh=
t:bold'><o:p></o:p></span></font></b></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D'=
font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D'=
font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=
.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p>DISCLAIMER=0A=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
This e-mail may contain privileged and confidential information which is the=
 property of Persistent Systems Ltd. It is intended only for the use of the=
 individual or entity to which it is addressed. If you are not the intended=
 recipient, you are not authorized to read, retain, copy, print, distribute=
 or use this message. If you have received this communication in error, plea=
se notify the sender and delete all copies of this message. Persistent Syste=
ms Ltd. does not accept any liability for virus infected mails.</p>
</body>

</html>

------=_NextPart_000_0001_01C8D303.BC94A540--