[wtr-general] Re: Selecting radiobutton issue with Safariwatir
Thanks for the assist. :) On Jan 6, 4:43 pm, Tiffany Fodor wrote: > Oops, there's a typo in my two-argument example, it should be: > > browser.radio(:class => 'radio_button', :index => 1).set > > On Jan 6, 2:42 pm, Tiffany Fodor wrote: > > > 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 wrote: > > > > I am working with the following code: > > > > > > > > > > > > > > > > This video is > > > > > > Protected, > > > > > > which means only Contacts of the video owner are permitted to view it. > > > Your recipients may have to request permission to watch this video. > > > > > > > > > > > > Privacy: > > > > > > > > class="privacy_icon tooltip_mouseover tooltip_mouseout" > > > alt="Protected"/> > > > Protected > > > (change) > > > > > > > > action="/video/inplace_set_video_privacy_redirect/649dd2bf1c10e9"> > > > > > > Privacy & Permissions > > > > > > > > for="privacy_public" class="radio_button">Open Access > > > > (Anyone can view) > > > > > checked="checked"/> > > class="radio_button">Protected (Only Contacts can view) > > label> > > > > > for="privacy_private" class="radio_button">Private (Only > > > > you can view) > > > > > name="mixing_policy" id="mixing_policy" class="check_box" > > > disabled=""/> > > class="check_box">Mixable? > > > > > > > > > > > > > > > > > > > > > > > SAVE > > > > > > > > > > > > > > > > > > > > > CANCEL > > > > > > > > > > > > > > > > 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Selecting radiobutton issue with Safariwatir
Oops, there's a typo in my two-argument example, it should be: browser.radio(:class => 'radio_button', :index => 1).set On Jan 6, 2:42 pm, Tiffany Fodor wrote: > 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 wrote: > > > I am working with the following code: > > > > > > > > > > > This video is > > > > Protected, > > > > which means only Contacts of the video owner are permitted to view it. > > Your recipients may have to request permission to watch this video. > > > > > > > > Privacy: > > > > > class="privacy_icon tooltip_mouseover tooltip_mouseout" > > alt="Protected"/> > > Protected > > (change) > > > > > action="/video/inplace_set_video_privacy_redirect/649dd2bf1c10e9"> > > > > Privacy & Permissions > > > > > for="privacy_public" class="radio_button">Open Access > > > (Anyone can view) > > > checked="checked"/> > class="radio_button">Protected (Only Contacts can view) > label> > > > for="privacy_private" class="radio_button">Private (Only > > > you can view) > > > name="mixing_policy" id="mixing_policy" class="check_box" > > disabled=""/> > class="check_box">Mixable? > > > > > > > > > > > > > > > > SAVE > > > > > > > > > > > > > > CANCEL > > > > > > > > > > > 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Selecting radiobutton issue with Safariwatir
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 wrote: > I am working with the following code: > > > > > > This video is > > Protected, > > which means only Contacts of the video owner are permitted to view it. > Your recipients may have to request permission to watch this video. > > > > Privacy: > > class="privacy_icon tooltip_mouseover tooltip_mouseout" > alt="Protected"/> > Protected > (change) > > action="/video/inplace_set_video_privacy_redirect/649dd2bf1c10e9"> > > Privacy & Permissions > > for="privacy_public" class="radio_button">Open Access > > (Anyone can view) > checked="checked"/> class="radio_button">Protected (Only Contacts can view) label> > for="privacy_private" class="radio_button">Private (Only > > you can view) > name="mixing_policy" id="mixing_policy" class="check_box" disabled=""/> for="mixing_policy" class="check_box">Mixable? > > > > > > > > > SAVE > > > > > > > CANCEL > > > > > > 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 watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general