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:
parent
083e580aa8
commit
0d76d064e9
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue