class Selenium::WebDriver::Element

def as_json(*)

def as_json(*)
  @id.is_a?(Hash) ? @id : {ELEMENT_KEY => @id}
end