Hello Xiaomei Li:

I have a link similar to yours: 
<a href="javascript:lista();"><img src="imagenes/boton_list_favoritas.gif"
alt="Anadir" name="lista" width="120" height="23" hspace="10" border="0"
id="lista"></a></td> 

Perhaps you can try this: 
<clickLink      description="Click link: click boton Lista favoritas"
        href="javascript:lista();" />

It works for me. Good luck.

Francisco Javier Martín 
Desarrollo de Proyectos - Valladolid
Security Solutions & Services Division  
         
Edif. Solar, Of. 13, 14, 15
Parque Tecnológico Boecillo. 47151 Valladolid. España
Tel.: 983 54 65 55   Fax: 983 54 66 09   
         
-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En
nombre de [EMAIL PROTECTED]
Enviado el: sábado, 18 de agosto de 2007 12:01
Para: [email protected]
Asunto: WebTest digest, Vol 1 #1940 - 1 msg

Send WebTest mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.canoo.com/mailman/listinfo/webtest
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of WebTest digest..."


Today's Topics:

   1. Problem with clickLink and clickElement (Xiaomei Li)

--__--__--

Message: 1
Date: Fri, 17 Aug 2007 06:42:39 -0700 (PDT)
From: Xiaomei Li <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Webtest] Problem with clickLink and clickElement
Reply-To: [email protected]
Reply-To: Xiaomei Li <[EMAIL PROTECTED]>

Hi,
  I have a html doc with the following code:
<p><span id="viewCaption">&nbsp;</span><br />
Click <a href="javascript:history.back()"><span
style="font-weight: bold;">Here</span></a> to go back
to Search Result
</p>.

In my webtest script, I have a step to click "Here",
and it should direct the page back to the search
result.  
I have tried:
  <clickLink
           label="Here" />
and
  <clickElement
        description="click link back to search result
        xpath="//a/span[text()='Here']" />
But when it runs, it didn't go to the right page.  Any
ideas?

Thanks,
Karen



       
____________________________________________________________________________
________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car
Finder tool.
http://autos.yahoo.com/carfinder/


--__--__--

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


End of WebTest Digest


AVISO LEGAL: La informacion contenida en este mensaje y cualquier documento 
adjunto en el mismo es confidencial, puede estar legalmente protegida y esta 
dirigida solamente al destinatario. La publicacion, uso, distribucion, 
impresion o copia no autorizada del contenido de este mensaje, esta 
estrictamente prohibida y puede ser ilegal. Si Vd. ha recibido este mensaje por 
error, le rogamos destruya el mensaje y lo notifique al remitente o llame al 
telefono (+34) 91 556 92 62.

DISCLAIMER: The information contained in this message and any attached document 
is confidential, covered by law and intended solely for the recipient. The 
distribution, print, publication, unauthorised copy and / or use of the message 
content is strictly forbidden and could be deemed illegal. If you are not the 
intended recipient of this message, we request that you destroy it and notify 
the sender either in writing or by calling ++34 91 556 92 62.

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

Reply via email to