Sha256: 9fa2bedecc0e54bffaced09ce8cea1a824c3c09c565271362a0df282985d6593
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
require "active_support/concern" module CapybaraObjects module ConvenienceMethods extend ActiveSupport::Concern delegate :find, :within, to: :page # The capybara current session # @return [Capybara::Session] The current session def page Capybara.current_session end # Hovers over the root node of this component def hover root_node.hover end # Clicks on the root node of this component def click root_node.click end end end
Version data entries
3 entries across 3 versions & 1 rubygems