Hi! Here's the wiki page on radio buttons:
http://wiki.openqa.org/display/WTR/Radio+Buttons You're specifying arguments incorrectly, it should look something like this: browser.radio(:class, 'radio_button').set if you need to specify more than one argument: browser.radio(:class => 'radio_button', :index, 1).set Hope this helps! -Tiffany On Jan 6, 2:33 pm, QAguy <[email protected]> wrote: > I am working with the following code: > > <div class="privacy_and_permissions hidden_form"> > <div id="permissions_info" style="display: none;"> > <div style="display: none;" class="privacy_tooltip tooltip"> > <p> > This video is > <strong> > Protected, > </strong> > which means only Contacts of the video owner are permitted to view it. > Your recipients may have to request permission to watch this video. > </p> > </div> > <strong> > Privacy: > </strong> > <img title="Protected" src="/images/privacy/protected.gif?1246941735" > class="privacy_icon tooltip_mouseover tooltip_mouseout" > alt="Protected"/> > Protected > <a title="Edit Privacy & Permissions" class="edit_link > toggle_element_up_next" href="#">(change)</a> > </div> > <form style="" method="post" id="permissions_form" class="toggle" > action="/video/inplace_set_video_privacy_redirect/649dd2bf1c10e9"> > <h5> > Privacy & Permissions > </h5> > <div class="item"><input type="radio" value="public" onclick="$ > ('mixing_policy').checked = true; $('mixing_policy').disabled = > false;" name="privacy" id="privacy_public" class="radio_button"/><label > for="privacy_public" class="radio_button">Open Access <span> > > (Anyone can view)</span></label></div> > <div class="item"><input type="radio" value="all_contacts" onclick="$ > ('mixing_policy').checked = false; $('mixing_policy').disabled = > true;" name="privacy" id="privacy_all_contacts" class="radio_button" > checked="checked"/><label for="privacy_all_contacts" > class="radio_button">Protected <span>(Only Contacts can view)</span></ > label></div> > <div class="item"><input type="radio" value="private" onclick="$ > ('mixing_policy').checked = false; $('mixing_policy').disabled = > true;" name="privacy" id="privacy_private" class="radio_button"/><label > for="privacy_private" class="radio_button">Private <span>(Only > > you can view)</span></label></div> > <div class="item"><input type="checkbox" value="all" > name="mixing_policy" id="mixing_policy" class="check_box" disabled=""/><label > for="mixing_policy" class="check_box">Mixable?</label></div> > > <ul class="form_buttons"> > <li> > > <button value="" type="submit" name="submit_button" class="tool > tool_button submit"> > <span class="left"> > </span> > <span class="button"> > SAVE > </span> > <span class="right"> > </span> > </button> > </li> > <li class="text_link"> > <a class="toggle_element_up" href="#">CANCEL</a> > </li> > </ul> > <input type="text" name="leyndo" value="ruslarakki" style="display: > none;"/></form> > </div> > > I am trying to select one of the radiobuttons the submit the form to > update the items privacy value. I have tried the following but none > seem to work: > > browser.radio(:class, "radio_button", "all_contacts").click > browser.button(:class, "tool tool_button submit").click > > and > > browser.radio(:class, "radio_button", "all_contacts").set > browser.button(:class, "tool tool_button submit").click > > and > > browser.radio(:id, "privacy_all_contacts", "all_contacts").click > browser.button(:class, "tool tool_button submit").click > > Any help would be appericated. > > Thanks. > QAguy
-- 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
