[tclwebtest] radio button problem
Status: Abandoned
Brought to you by:
tils
From: Vamshi K. K. <vam...@az...> - 2003-12-10 12:15:57
|
i am facing a problem with the selection of the radio button i am using tclwebtest::field select "Yes" This is the error This field has no choice Yes. It's only offerings are: {Y { } orgn_contact_search:elements:alumni:Y} {N { } orgn_contact n_contact_search:elements:alumni:D} the form page here is built by the ad_form, this error occurs because the ad_form templating generates the radio button like <tr><td> <input type="radio" name="alumni" value="Y" id="orgn_contact_search:elements:alumni:Y" checked /> </td> <td><label for="orgn_contact_search:elements:alumni:Y">Yes</label></td></tr> i need a help please did any body used for the test cases for the radio button with the ad_form templating system field_select is the pros internally used by the "field select" call, but the problem with radio button is, that the program has to guess, what the name of each option is. With a select box it is clear, because it is included in the option-tag. If the radio buttons and their captions are located in separate table cells (as it is in the default standard.adp form template), the caption is empty, so there is no way of determining the right option to choose. As you can see, in that list of choices given above, the second element (the caption) is always { }. Does anyone know if it possible to select a radio button by its id? Or maybe it would be a good idea to extend the search for the caption on the whole tr the radio button is in. |