[Webtest] Xpath Not Finding Applet Tag

Rich Toulouse Rich Toulouse" <Rich.Toulouse@Attachmate.com
Wed, 23 May 2007 08:50:45 -0700


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: webtest-admin@gate2.canoo.com
[mailto:webtest-admin@gate2.canoo.com] On Behalf Of Paul King
Sent: Tuesday, May 22, 2007 1:25 PM
To: webtest@gate2.canoo.com
Subject: Re: [Webtest] Xpath Not Finding Applet Tag


I wonder if the MAYSCRIPT is throwing it off.

Paul.

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

> height=3D0 width=3D0 archive=3D"JavaTestApplet.jar"> </applet> <applet =

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

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest