class Capybara::Selenium::MarionetteNode

def click(keys = [], **options)

def click(keys = [], **options)
  super
rescue ::Selenium::WebDriver::Error::ElementNotInteractableError
  if tag_name == 'tr'
    warn 'You are attempting to click a table row which has issues in geckodriver/marionette - see https://github.com/mozilla/geckodriver/issues/1228. ' \
         'Your test should probably be clicking on a table cell like a user would. Clicking the first cell in the row instead.'
    return find_css('th:first-child,td:first-child')[0].click(keys, options)
  end
  raise
end