From a32ec70d7ff1773c81f4c7a911d0724269e68446 Mon Sep 17 00:00:00 2001 From: Amos King Date: Tue, 13 Jan 2009 22:45:26 -0600 Subject: [PATCH] added xpath test to selenium --- spec/integration/rails/test/selenium/webrat_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integration/rails/test/selenium/webrat_test.rb b/spec/integration/rails/test/selenium/webrat_test.rb index 7236eb0..81f8f5a 100644 --- a/spec/integration/rails/test/selenium/webrat_test.rb +++ b/spec/integration/rails/test/selenium/webrat_test.rb @@ -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