Re: Wicket, Selenium and generated id attributes

2007-11-21 Thread Niels van Kampenhout
Timo Rantalaiho wrote: On Tue, 20 Nov 2007, Gerolf Seitz wrote: you can call setMarkupId(String) in the constructor of your components. just make sure that the ids are unique in a single page. This works sometimes, and is a good idea. Having stable HTML ids for unique HTML elements also makes

Re: Wicket, Selenium and generated id attributes

2007-11-20 Thread Timo Rantalaiho
On Tue, 20 Nov 2007, Gerolf Seitz wrote: > you can call setMarkupId(String) in the constructor of your components. > just make sure that the ids are unique in a single page. This works sometimes, and is a good idea. Having stable HTML ids for unique HTML elements also makes facilitates good CSS s

Re: Wicket, Selenium and generated id attributes

2007-11-20 Thread Gerolf Seitz
you can call setMarkupId(String) in the constructor of your components. just make sure that the ids are unique in a single page. Gerolf On Nov 20, 2007 1:42 PM, Niels van Kampenhout <[EMAIL PROTECTED]> wrote: > Hi, > > I am experimenting with Selenium tests for our Wicket application. Many > o

Re: Wicket, Selenium and generated id attributes

2007-11-20 Thread karthik Guru
Does selenium works with names? I mean something like - selenium.click("login"); with the mark up having - Login But yes, this *might* work for links that you know up front but not the ones that are generated through a loop component for e.g. On Nov 20, 2007 6:12 PM, Niels van Kampenhout <[EMAI

Wicket, Selenium and generated id attributes

2007-11-20 Thread Niels van Kampenhout
Hi, I am experimenting with Selenium tests for our Wicket application. Many of my test have code like selenium.click("login_dialog_link22"); Because the id "login_dialog_link22" is generated by Wicket, and changes often as the app is still under heavy development, it's a bit of a PITA to