Hello:
Perhaps the code is not very nice but it works. I only can say that
developer do they want and can. The web application is very big and has a
lot of details.
Anyway, the link is available and can be pressed by clickLink:
<clickLink description="Reserva de HS Nº= #{codigoTitular}"
href="BuzonesTareas.do?codProcesoRes=" label="Reservar"/>
(It is true that I could not select the link I click on but I know how to
obtain that only this kind of link appears on the page. So, if I can store
previously this value I could later use it to make other tests).
Then the page is reloaded and the link changes to:
<a
href="BuzonesTareas.do?codProcesoLib=06782352FBA37F4DAB94C63AD72D5811"><img
src="imagenes/mesa_trabajo/ico_candado_abierto.gif" alt="Liberar" width="16"
height="15"></a>
It can be reached by XPath but the number is different for each item so I
need to store it to test it later.
<verifyXPath
xpath="//[EMAIL
PROTECTED]'BuzonesTareas.do?codProcesoLib=06782352FBA37F4DAB94C63AD72
D5811']" />
I thought that I could store only the number doing something seemed to
storeRegEx example but it does not work. I looked for a special Perl
character to replace the number that has to be stored but these characters
like '\w' or '.' do not work properly with verifyXPath command. There is not
possibility to replace characters using special Perl characters so, what can
I do?
<verifyXPath
xpath="//[EMAIL
PROTECTED]'BuzonesTareas.do?codProcesoLib=...........................
....." />
I would be very pleased if you can open a Jira issue about (or should I do
it?)
Thank you again Marc.
-------
Today's Topics:
1. Re: store link parameter (Marc Guillemot)
Message: 1
Date: Wed, 22 Aug 2007 10:05:12 +0200
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [Webtest] store link parameter
Reply-To: [email protected]
Reply-To: Marc Guillemot <[EMAIL PROTECTED]>
Hi Francisco,
storeLinkParameter doesn't have the link identification possibilities
that clickLink has. I don't know if this would help in your case but
this is surely worth a Jira issue.
Link included in link?!? What a nice html code! ;-(
In the mean time there is surely a workaround with a script step. How
would you identify this link?
Marc.
--
Blog: http://mguillem.wordpress.com
Francisco Javier Martin Gutierrez wrote:
> Hello:
>
>
>
> I need to store a link parameter but html id is not available and there
> is more than one link similar on the page. The link is:
>
> <a
>
href="BuzonesTareas.do?codProcesoRes=164678CAA147834AA284A08444B1F77E"><img
> src="imagenes/mesa_trabajo/ico_reserva.gif" alt="Reservar" width="9"
> height="9"></a>
>
>
>
> And it is included into other link:
>
>
>
> <a
>
href="EditarHistoriaSocial.do?codHistoria=0009033&codPrestacion=10101A&secPr
estacion=2&estadoPrestacion=11"
> target="0009033">
>
> <tr class="mesaTxtTabla">
>
> <td style="cursor:hand"><a
>
href="BuzonesTareas.do?codProcesoRes=164678CAA147834AA284A08444B1F77E"><img
> src="imagenes/mesa_trabajo/ico_reserva.gif" alt="Reservar" width="9"
> height="9"></a></td>
>
> <td style="cursor:hand">0009033</td>
>
> <td style="cursor:hand">
>
> 11 - EN ESTUDIO
>
> </td>
>
> <td style="cursor:hand">
>
> Inf. Teléfono del Alzheimer
>
> </td>
>
> <td style="cursor:hand">
>
> AUTOMATICA 017
>
> </td>
>
> <td style="cursor:hand">
>
> PRUEBAPC013 SC
>
> </td>
>
> </tr>
>
> </a>
>
> The number to store is after codProcesoRes
> (164678CAA147834AA284A08444B1F77E).
>
>
>
> There is any other way to do this? Could it be a jira issue? Thank you.
>
>
>
> *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*
>
--__--__--
_______________________________________________
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