module Selenium::WebDriver::PointerActions

def click(element = nil, button: nil, device: nil)

def click(element = nil, button: nil, device: nil)
  move_to(element, device: device) if element
  pointer_down(button || :left, device: device)
  pointer_up(button || :left, device: device)
  self
end