From b056efbfa5ef3762e51c366903f6306bcea6b47d Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Fri, 12 Aug 2011 14:38:52 +0200 Subject: [PATCH] Fix simple nodes to work with new async stuff --- lib/capybara/node/simple.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/node/simple.rb b/lib/capybara/node/simple.rb index bf5e2d4f..a3b1cdb1 100644 --- a/lib/capybara/node/simple.rb +++ b/lib/capybara/node/simple.rb @@ -124,8 +124,8 @@ module Capybara native.xpath(xpath).map { |node| self.class.new(node) } end - def wait? - false + def wait_until + yield # simple nodes don't need to wait end end end