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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -