class Capybara::Node::Element

def click(*keys, **offset)

Returns:
  • (Capybara::Node::Element) - The element

Options Hash: (**offset)
  • y (Integer) -- Y coordinate to offset the click location from the top left corner of the element
  • x (Integer) -- X coordinate to offset the click location from the top left corner of the element

Parameters:
  • *modifier_keys (:alt, :control, :meta, :shift) -- ([]) Keys to be held down when clicking

Overloads:
  • click(*modifier_keys, **offset)
def click(*keys, **offset)
  synchronize { base.click(keys, offset) }
  self
end