class Capybara::Selenium::Node::ClickOptions

ClickOptions encapsulates click option logic

Attributes

keys[R]
options[R]

Public Class Methods

new(keys, options) click to toggle source
# File lib/capybara/selenium/node.rb, line 387
def initialize(keys, options)
  @keys = keys
  @options = options
end

Public Instance Methods

coords() click to toggle source
# File lib/capybara/selenium/node.rb, line 396
def coords
  [options[:x], options[:y]]
end
coords?() click to toggle source
# File lib/capybara/selenium/node.rb, line 392
def coords?
  options[:x] && options[:y]
end
empty?() click to toggle source
# File lib/capybara/selenium/node.rb, line 400
def empty?
  keys.empty? && !coords?
end