class Capybara::Selenium::FirefoxNode

def focused?

def focused?
  driver.evaluate_script('arguments[0] == document.activeElement', self)
end