rspec - capybara within :css syntax meaning -
i'm working on fixing specs, , have found piece of syntax nobody seems know represents.
in capybara suite there multiple occurrences of:
within(:css, '#foo') do
by removing :css
have found functionally identical within('#foo') do
is there difference? other symbols can passed in first parameter within?
after following @andrey botalov's link, have found explains kind of selector being input within block.
in case, capybara.default_selector
set :css
, :css
default. other option listed :xpath
Comments
Post a Comment