From 0d76d064e9d5682da9c8ed98c7abdeae27bfc4cb Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Sun, 11 Jul 2010 13:10:57 +0200 Subject: [PATCH] Add note about within to // section of README --- README.rdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rdoc b/README.rdoc index 83d1fba6..ea4cff0a 100644 --- a/README.rdoc +++ b/README.rdoc @@ -393,6 +393,12 @@ for is the .// expression which means "any descendant of the current node": page.find('//body').all('.//script') +The same thing goes for within: + + within('//body') do + page.find('.//script') + end + == Gotchas: * Domain names (including subdomains) don't work under rack-test. Since it's a