added xpath test to selenium

This commit is contained in:
Amos King 2009-01-13 22:45:26 -06:00
parent 647eb4cb6f
commit a32ec70d7f

View File

@ -35,4 +35,9 @@ class WebratTest < ActionController::IntegrationTest
click_link "link_id"
assert_contain("Webrat Form")
end
test "should be able to assert xpath" do
visit root_path
assert_have_xpath "//h1"
end
end