Hi,

what about

<storeXPath xpath="substring-after(//[EMAIL PROTECTED]'Liberar']]/@href, '=')"
property="yourprop"/>

(if the img's alt is a good criteria to identify the link).

Yes, please open the Jira issue.

Marc.

Francisco Javier Martin Gutierrez wrote:
> 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

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

Reply via email to