The invalid label I get when the test is exected,

Thanks,
Alin.
Hello,
 
I want to use selenium to test an application developed with JSF. The h:selectOneRadio tag from JSF generates a group of radio boxes without the id attribute for every input html tag. Instead of this, it generates only different values for radio boxes. I need a way to select one of the radio buttons from group in this situation.
 
I saw a solution with DOM traversal here:
but, unfortunately, using it on html code generated by JSF I get the following error:
_javascript_ Log Console (Close Clear)
SyntaxError: invalid label
 
The code generated by JSF is this:
 
<table id="body:fn:wm"><tr>
<td><label><input type="radio" name="body:fn:wm" value="4" />&#160;Search</label></td></tr>
</tr><tr><td><label><input type="radio" name="body:fn:wm" value="1" />&#160;Insert</label></td></tr>
</tr><tr><td><label><input type="radio" name="body:fn:wm" value="2" />&#160;Edit</label></td></tr></tr>
<tr><td><label><input type="radio" name="body:fn:wm" checked="checked" value="3" />&#160;View</label></td></tr>
</tr></table>
 
This is how I try to test with selenium:
 |
clickAndWait | document.forms['body:fn'].body:fn:wm[0]| invalid label
_______________________________________________
Selenium-users mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to