Method: Capybara::Server::AnimationDisabler#initialize
- Defined in:
- lib/capybara/server/animation_disabler.rb
#initialize(app) ⇒ AnimationDisabler
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.
Returns a new instance of AnimationDisabler.
17 18 19 20 21 22 |
# File 'lib/capybara/server/animation_disabler.rb', line 17 def initialize(app) @app = app @disable_css_markup = format(DISABLE_CSS_MARKUP_TEMPLATE, selector: self.class.selector_for(Capybara.disable_animation)) @disable_js_markup = +DISABLE_JS_MARKUP_TEMPLATE end |