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 482 def initialize(keys, options) @keys = keys @options = options end
Public Instance Methods
center_offset?()
click to toggle source
# File lib/capybara/selenium/node.rb, line 495 def center_offset? options[:offset] == :center end
coords()
click to toggle source
# File lib/capybara/selenium/node.rb, line 491 def coords [options[:x], options[:y]] end
coords?()
click to toggle source
# File lib/capybara/selenium/node.rb, line 487 def coords? options[:x] && options[:y] end
empty?()
click to toggle source
# File lib/capybara/selenium/node.rb, line 499 def empty? keys.empty? && !coords? end