module Prickle::Capybara::Actions

Constants

ALIASES

Private Class Methods

for(properties) click to toggle source
# File lib/prickle/capybara/actions.rb, line 29
def self.for properties
  element = Element::extract_method_missing properties
  method = ALIASES[element[:method]] || element[:method].to_sym
  [ method, element[:args] ].compact
end

Public Instance Methods

click() click to toggle source
# File lib/prickle/capybara/actions.rb, line 5
def click
  find_element.click
end
contains_text?(text) click to toggle source
# File lib/prickle/capybara/actions.rb, line 9
def contains_text? text
  @text = text
  @identifier[:"text()".like] = text
  find_element
end
exists?() click to toggle source
# File lib/prickle/capybara/actions.rb, line 21
def exists?
  find_element
end
has_text?(text) click to toggle source
# File lib/prickle/capybara/actions.rb, line 15
def has_text? text
  @text = text
  @identifier[:"text()"] = text
  find_element
end