Module: Howitzer::Web::CapybaraContextHolder

Included in:
ElementDsl, IframeDsl, SectionDsl
Defined in:
lib/howitzer/web/capybara_context_holder.rb

Overview

This module mixin capybara context methods

Instance Method Summary collapse

Instance Method Details

#capybara_contextObject

Returns capybara context. For example, capybara session, parent element, etc.



7
8
9
# File 'lib/howitzer/web/capybara_context_holder.rb', line 7

def capybara_context
  capybara_scopes.last
end