Skip to content

Instantly share code, notes, and snippets.

@pfleidi
Created October 23, 2013 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfleidi/7118528 to your computer and use it in GitHub Desktop.
Save pfleidi/7118528 to your computer and use it in GitHub Desktop.
# Instead of globally disabling ignoring hidden elements like this
Capybara.configure do |config|
config.ignore_hidden_elements = false
end
# You can choose to selectively disable it on a per-call basis
Capybara.select 'Foo', :from => 'Bar Selection', :visible => :all
Capybara.find :css, 'select#my_id', :visible => :all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment