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 388 def initialize(keys, options) @keys = keys @options = options end
Public Instance Methods
coords()
click to toggle source
# File lib/capybara/selenium/node.rb, line 397 def coords [options[:x], options[:y]] end
coords?()
click to toggle source
# File lib/capybara/selenium/node.rb, line 393 def coords? options[:x] && options[:y] end
empty?()
click to toggle source
# File lib/capybara/selenium/node.rb, line 401 def empty? keys.empty? && !coords? end