*/
protected final void doSelect(final int index)
{
if (formComponent instanceof RadioGroup)
{
Radio foundRadio = (Radio)formComponent.visitChildren(Radio.class,
new SearchOptionByIndexVisitor(index));
if (foundRadio == null)
{
fail("RadioGroup " + formComponent.getPath() + " does not have index:" + index);
}
assignValueToFormComponent(formComponent, foundRadio.getValue());
}
else if (formComponent instanceof CheckGroup)
{
Check foundCheck = (Check)formComponent.visitChildren(Check.class,
new SearchOptionByIndexVisitor(index));