Thanks a lot Thiago!

I will try something like this, I was hoping I didn't need to use IDs, but if 
there is no other solution, it is better than nothing.

Thanks again! Greetings!

Matias.


--- El mar 25-ene-11, Thiago H. de Paula Figueiredo <thiag...@gmail.com> 
escribió:

> De: Thiago H. de Paula Figueiredo <thiag...@gmail.com>
> Asunto: Re: Testing Tapestry webapps with Selenium
> Para: "Tapestry users" <users@tapestry.apache.org>
> Fecha: martes, 25 de enero de 2011, 17:57
> On Tue, 25 Jan 2011 17:51:53 -0200,
> Matias Moran <matiasmo...@yahoo.com.ar>
> wrote:
> 
> > The code generated by Selenium is something like
> this:
> >
> selenium.click("//a[@id='modifyUserLink']/div");selenium.waitForPageToLoad("30000");
> 
> When inside a loop, if you don't provide the id for your
> ActionLinks, they'll generate different ids for them.
> 
> Try something like this:
> 
> <t:actionLink t:id="modifyUserLink" context="user.id"
> id="actionLink-${user.id}"/>
> selenium.click("actionLink-1"); // or some valid user id
> instead of 1
> 
> --Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate
> consultant, developer, and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 


 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to