[EMAIL PROTECTED] wrote on 23/07/2005 09:07:52 AM:
> The code generated by JSF is this:

...snip...
>  
> <table id="body:fn:wm"><tr>
> <td><label><input type="radio" name="body:fn:wm" value="4"
> > > </tr><tr><td><label><input type="radio" name="body:fn:wm" value="1"
> > > </tr><tr><td><label><input type="radio" name="body:fn:wm" value="2"
> > > <tr><td><label><input type="radio" name="body:fn:wm" checked="checked"
> value="3" > > </tr></table>

>  
> This is how I try to test with selenium:
>  | clickAndWait | document.forms['body:fn'].body:fn:wm[0]| invalid label
>  
> The invalid label I get when the test is exected,

I managed to get the following to work:

 | clickAndWait | document.forms['body:fn']['body:fn:wm'][0]|


Generally with _javascript_, anytime you can write a.b, you can also write a['b'], and you will have to do this when the identifier is not a simple alphanumeric.

Cheers,
David

David Kemp
ThoughtWorks Australia Pty Ltd
http://www.thoughtworks.com

_______________________________________________
Selenium-users mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to