Running a search query at google
#call the website
get_html | http://www.google.de
# check the title
check_title | Google
# select the first form
select_form | 0
# now insert text into the textfield
set_textfield | q = jConfig
# submit the form
submit_form | btnG
# check if the text is found
check_text | jConfig
Simple test on javablogs
# get the starting page
get_html | http://www.javablogs.com/
# check if we are there
check_text | java.blogs
# click on popular entries
click_link | Hot Entries (last 24 hours)
# did we get the page?
check_text | Popular Entries in the Last 24 Hours
Form demo on the slimdog website
This is a little demo showing a form with several elements.
get_html | http://slimdog.jzonic.org/test/form.html
check_title | Slimdog form test
select_form | 0
set_textfield | name = My NAME
set_option | role = user
set_checkbox | newsletter = true
set_textfield | comment = This is a stupid demo
submit_form | save
check_text | Name: My NAME
check_text | Role: user
check_text | Newsletter: send_newsletter
check_text | Comment: This is a stupid demo