Q. How do I click a radio button?

A. Use the .radio in conjunction with .set
Example html:

<html>
   <body>
      <input type="radio" name="group1" value="Watir"> Watir<br />
  </body>
</html>

Example watir:

@b.radio(:name,"group1").set
Read More

Q. How do I check/uncheck a checkbox?

A. Use a the .checkbox in conjunction with .set(true/false)
Example html:

<form>
   <input name="checkbox" type="checkbox" />I love just_add_watir !
</form>

Example watir to activate:

@b.checkbox(:name, "checkbox").set(true)

Example watir to deactivate:

@b.checkbox(:name, "checkbox").set(false)
Read More

Q. How do I enter text in a text box?

A. Use the text_field in conjunction with the .set command
Example html:

<html>
    <body>
      <form method="post" action="">
         <textarea name="comments" cols="20" rows="1">
            Enter your comments here...
         </textarea><br />
         <input type="submit" value="Submit" />
      </form>
    </body>
</html>

Example watir:

@b.text_field(:name, "comments").set("just_add_watir rocks!")
Read More