Method: Capybara::Server::AnimationDisabler.selector_for

Defined in:
lib/capybara/server/animation_disabler.rb

.selector_for(css_or_bool) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



6
7
8
9
10
11
12
13
14
15
# File 'lib/capybara/server/animation_disabler.rb', line 6

def self.selector_for(css_or_bool)
  case css_or_bool
  when String
    css_or_bool
  when true
    '*'
  else
    raise CapybaraError, 'Capybara.disable_animation supports either a String (the css selector to disable) or a boolean'
  end
end