Thanks a lot.But the name "act2[165]" is not going to be same all the time. I have my poll title as Test.So i want to set my focus on delete radio button whose title is Test. Is it possible to do this?
This is my html script <tr> <td>Test</td> <td>Unpublished</td> <td class="actions"> <label for="Update"> <input id="act2_165_update" type="radio" value="update" name="act2 [165]"/> Update </label> <label for="del2"> input id="act2_165_delete" type="radio" value="delete" name="act2 [165]"/> Delete </label> </td> Now here <td>Test</td> is the title of the poll. So i want to click on delete radio button which has a title named Test :-) On Thu, Oct 22, 2009 at 6:51 PM, Super Kevy <[email protected]>wrote: > > Try something like this where value="delete" or "update" > ie.radio(:name,'act2[165]',value).focus > ie.radio(:name,'act2[165]'',value).set > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
