Class: Capybara::Selenium::Node::ClickOptions
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/capybara/selenium/node.rb |
Overview
ClickOptions encapsulates click option logic
Class Method Summary
- .new(keys, options) ⇒ ClickOptions constructor
Instance Attribute Summary
- #center_offset? ⇒ Boolean readonly
- #coords? ⇒ Boolean readonly
- #empty? ⇒ Boolean readonly
- #keys readonly
- #options readonly
Instance Method Summary
Constructor Details
.new(keys, options) ⇒ ClickOptions
Instance Attribute Details
#center_offset? ⇒ Boolean (readonly)
[ GitHub ]
# File 'lib/capybara/selenium/node.rb', line 623
def center_offset? [:offset] == :center end
#coords? ⇒ Boolean (readonly)
[ GitHub ]
# File 'lib/capybara/selenium/node.rb', line 615
def coords? [:x] && [:y] end
#empty? ⇒ Boolean (readonly)
[ GitHub ]
#keys (readonly)
[ GitHub ]# File 'lib/capybara/selenium/node.rb', line 608
attr_reader :keys, :
#options (readonly)
[ GitHub ]# File 'lib/capybara/selenium/node.rb', line 608
attr_reader :keys, :
Instance Method Details
#coords (readonly)
[ GitHub ]# File 'lib/capybara/selenium/node.rb', line 619
def coords [[:x], [:y]] end
#delay
[ GitHub ]# File 'lib/capybara/selenium/node.rb', line 631
def delay [:delay] || 0 end