Module: CapybaraObjects::ConvenienceMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- ComponentObject, PageObject
- Defined in:
- lib/capybara_objects/convenience_methods.rb
Instance Method Summary collapse
-
#click ⇒ Object
Clicks on the root node of this component.
-
#hover ⇒ Object
Hovers over the root node of this component.
-
#page ⇒ Capybara::Session
The capybara current session.
Instance Method Details
#click ⇒ Object
Clicks on the root node of this component
17 18 19 |
# File 'lib/capybara_objects/convenience_methods.rb', line 17 def click root_node.click end |
#hover ⇒ Object
Hovers over the root node of this component
13 14 15 |
# File 'lib/capybara_objects/convenience_methods.rb', line 13 def hover root_node.hover end |
#page ⇒ Capybara::Session
The capybara current session
9 10 11 |
# File 'lib/capybara_objects/convenience_methods.rb', line 9 def page Capybara.current_session end |