Are there any suggestions to get around this?  Are there ways other than
xpath to get the applet in a page?  I'm guessing I'll need to see about
having the developer change the code.


Rich


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul King
Sent: Tuesday, May 22, 2007 1:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [Webtest] Xpath Not Finding Applet Tag


I wonder if the MAYSCRIPT is throwing it off.

Paul.

Rich Toulouse wrote:
> Hi there,
>  
> I'm having a bit of a problem trying to get webtest to find the applet

> in the page.  I've tried the following:
> /html/body/div/[EMAIL PROTECTED]'Launcher']
> /html/body/[EMAIL PROTECTED]'appletdiv']/[EMAIL PROTECTED]"'Launcher']
> //[EMAIL PROTECTED]'appletdiv']/[EMAIL PROTECTED]'Launcher"]
> //[EMAIL PROTECTED]'appletdiv']/applet[1]
>  
> None of those work.  I keep getting an error like this:
>  
> Running with: Canoo Webtest: R_1562.
> Exception thrown from this class: 
> com.canoo.webtest.engine.StepFailedException
> Message was: The specified element <//[EMAIL PROTECTED]'appletdiv']/applet[1]>
> was not found.
> Running with: Canoo Webtest: R_1562.
>  
> Does anyone see what I might be doing wrong?
>  
> Thanks!
>  
> Rich
>  
> Here's the HTML.
>  
> 
> <html>
> <head>
> <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <meta 
> HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta HTTP-EQUIV="Expires" 
> CONTENT="0"> <script language="JavaScript" type="text/javascript"> 
> </script> <script language="JavaScript" type="text/javascript"
> src="/rweb/gm/writeapplets.js"></script>
>  
> <title>Reflection</title>
> <style type="text/css">
> </style>
> </head>
> <body onload="testForJava();">
>  
> <IMG src="./RWeb_M.gif" alt="Reflection"><BR> <div id="appletdiv">
>  
> 
> <applet name="tester" code="com.wrq.util.browser.JavaTest" codebase=""

> height=0 width=0 archive="JavaTestApplet.jar"> </applet> <applet 
> MAYSCRIPT name="Launcher" code="Launcher.class" archive=""
>         codebase=""
>         width="500"
>         height="440">
>     <param name="cabbase" value="Launcher.cab">  <param 
> name="launcher.id" value="1">  <param name="ServletURL" value=">  
> <param name="jsessionid" value="">  <param name="launcher.sessionurl" 
> value="">
>    <param name="smartcardDllNames" value="">
>    <param name="cache_archive" value="">
>  
>  
>  
>    <param name="cache_version" value="9.6.10.016"> </applet>
>  
> </div>
> <div id="msg">
>  
> </div>
> </body>
> </html>

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to