And finally:
See http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000315

In many instances, radio buttons on an html page have the same name,
but are identified by different values.

<input type="radio" name="email_frequency" value="daily">Daily Email</
input>
<input type="radio" name="email_frequency" value="weekly">Weekly
Email</input>
<input type="radio" name="email_frequency" value="monthly">Monthly
Email</input>

Watir can access these using the following:

browser.radio(:id, 'day_to_send', 'monday')         # access the radio
button with an id of day_to_send and a value of monday
browser.radio(:name,'email_frequency', 'weekly')     # access the
radio button with a name of email_frequency and a value of 'weekly'
browser.radio(:xpath, "//inp...@name='email_frequency' and
@value='daily']/")     # access the radio button with a name of
email_frequency and a value of 'daily'

I'm curious is the POC for a test tool or the application?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to