Form test page


Your Name:
E-mail:          

Do you like this website? Yes No Not sure

Your comments:

# You can access the elements in the form directly without
# having to add the form:
browser.text_field(:name, "yourname").set("Test Name")
browser.form(:action, "subradioform.php").text_field(:name, "yourname").set("Test Name")
# They will both work

# enter a name into the name text field
browser.form(:action, "subradioform.php").text_field(:name, "yourname").set("Test Name")

# enter an email address
browser.form(:action, "subradioform.php").text_field(:name, "email").set("Test12345@test12345.com")

# click on a radio button
browser.form(:action, "subradioform.php").radio(:index, 3).set

# enter your comments
browser.form(:action, "subradioform.php").text_field(:name, "comments").set("Test Name")

# click the submit button
browser.form(:action, "subradioform.php").button(:value, "Send it!").click

# when the confirmation page is displayed, check that the correct details are displayed