<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>
This is html which contains the string "Test". Yes i can access through an id.But it is not going to be same all the time.It is always going to be changed. But one thing i know is that my poll title i.e. "Test".So i want to access the radio button which contains the title "Test". GUI appearance is as follows: POLL Status Actions Test Unpublished Here contains 2 radio buttons i.e. Update and Delete On Oct 21, 1:19 pm, Željko Filipin <[email protected]> wrote: > On Wed, Oct 21, 2009 at 9:26 AM, Amit <[email protected]> wrote: > > Now here i want to click on Delete radio button beside "Test" poll. > > Can you post html that includes radio button and "Test" text? We could help > more if we had that. > > > input id="act2_165_delete" type="radio" value="delete" name="act2 > > [165]"/> > > I think you said you do not know id, but if you know it, this should work: > > browser.radio(:id, "act2_165_delete").set > > More information: > > http://wiki.openqa.org/display/WTR/Radio+Buttons > > Željko > --http://watirpodcast.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
