1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Add note about within to // section of README

This commit is contained in:
Jonas Nicklas 2010-07-11 13:10:57 +02:00
parent 083e580aa8
commit 0d76d064e9

View file

@ -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