lib/capybara-extensions.rb in capybara-extensions-0.1.0 vs lib/capybara-extensions.rb in capybara-extensions-0.2.0
- old
+ new
@@ -1,11 +1,23 @@
\ No newline at end of file
+require 'rubygems'
+require 'capybara'
+
+module Capybara
+ module Node
+ module Finders
+ def parent
+ find(:xpath, '..')
+ end
+ end
+ end
+end