Method: Capybara::DSL#page
- Defined in:
- lib/capybara/dsl.rb
#page ⇒ Capybara::Session
Shortcut to accessing the current session.
class MyClass
include ::DSL
def has_header?
page.has_css?('h1')
end
end
45 46 47 |
# File 'lib/capybara/dsl.rb', line 45 def page .current_session end |