class Capybara::Selenium::Node::ClickOptions

ClickOptions encapsulates click option logic

def center_offset?

def center_offset?
  options[:offset] == :center
end

def coords

def coords
  [options[:x], options[:y]]
end

def coords?

def coords?
  options[:x] && options[:y]
end

def delay

def delay
  options[:delay] || 0
end

def empty?

def empty?
  keys.empty? && !coords? && delay.zero?
end

def initialize(keys, options)

def initialize(keys, options)
  @keys = keys
  @options = options
end