Module: Capybara::Flow
- Defined in:
- lib/capybara/flow.rb,
lib/capybara/flow/gif_animator.rb,
lib/capybara/flow/gif_recorder.rb,
lib/capybara/flow/configuration.rb,
lib/capybara/flow/empty_recorder.rb
Defined Under Namespace
Modules: UserActions
Classes: Configuration, EmptyRecorder, GifAnimator, GifRecorder
Constant Summary
collapse
- VERSION =
File.read(File.join(File.dirname(__FILE__), "..", "..", "VERSION")).freeze
- MATCHERS =
[
:have_content
]
- USER_ACTIONS =
[
:attach_file,
:check,
:uncheck,
:choose,
:click_button,
:click_link,
:click_link_or_button,
:click_on,
:execute_script,
:fill_in,
:go_back,
:go_forward,
:select,
:unselect,
:visit
].freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
11
12
13
|
# File 'lib/capybara/flow.rb', line 11
def self.configuration
@configuration ||= Configuration.new
end
|
Class Method Details
15
16
17
|
# File 'lib/capybara/flow.rb', line 15
def self.configure
yield(configuration)
end
|
.included(base) ⇒ Object
19
20
21
|
# File 'lib/capybara/flow.rb', line 19
def self.included(base)
base.send(:prepend, UserActions)
end
|
Instance Method Details
#recorder ⇒ Object
23
24
25
|
# File 'lib/capybara/flow.rb', line 23
def recorder
@recorder ||= EmptyRecorder.new
end
|
#recorder=(other) ⇒ Object
27
28
29
|
# File 'lib/capybara/flow.rb', line 27
def recorder=(other)
@recorder = other
end
|