New Test
open http://cda.morris.umn.edu/~elenam/4657_spring11/examples/forms_selenium.html
assertTextPresent An XHTML form
verifyTitle XHTML form
verifyTextPresent exact:What is your name? What is your favorite food? What is your favorite season? Check all that applies. Winter
Spring
Summer
Fall
Tell us about yourself This survey was: Interesting
Boring
verifyValue name Joe
verifyValue food apples
verifyNotChecked name=winter
verifyNotChecked name=spring
verifyNotChecked name=summer
verifyChecked name=survey value=interesting
verifyNotChecked name=survey value=boring
type name
type about I am the coolest!
click //input[@name='survey' and @value='boring']
click fall
click summer
click spring
click winter
click //input[@value='submit']
verifyText errors Name is a required field
verifyAttribute nameQ@style color: red;
verifyAttribute name@style *yellow*
verifyElementPresent //div[@id='errors']/br

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.