Problem with nested <html> tags

View: New views
3 Messages — Rating Filter:   Alert me  

Problem with nested <html> tags

by rinkesh_bansal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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

rinkesh_bansal@...  | Cell: +91 93261 76376 | Tel: +91 (20) 3023 6792

Innovation in software product design, development and delivery- 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.


Re: Problem with nested <html> tags

by geojohn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I can verify that this is a problem. I ran into it as well. I believe I was able to get around this issue by specifying an xpath for the elements I wanted to interact with, but I'm not entirely sure about that.

George

Re: Problem with nested <html> tags

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

your first priority should surely be to fixed the generated html code to
avoid such a mess

Nevertheless I don't think that this is the cause of your problem as it
gets parsed to following:

<html>
  <head/>
  <body>
    <form name="form1" method="post">
      <input type="button" name="submit1"/>
    </form>
    <form name="form2" method="post">
      <input type="button" name="submit2"/>
    </form>
  </body>
</html>

just like in a "normal" browser.

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com

Rinkesh Bansal wrote:

> 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*
>
> *rinkesh_bansal@...*
> <mailto:rinkesh_bansal@...>*  **| **Cell: +91 93261 76376
> **| **Tel: +91 (20) 3023 6792*
>
> *Innovation in software product design, development and delivery-
> **www.persistentsys.com* <http://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.
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
LightInTheBox - Buy quality products at wholesale price