class Selenium::WebDriver::Firefox::Extension

def create_root

def create_root
  if File.directory? @path
    @path
  else
    unless Zipper::EXTENSIONS.include? File.extname(@path)
      raise Error::WebDriverError, "expected #{Zipper::EXTENSIONS.join(' or ')}, got #{@path.inspect}"
    end
    @should_reap_root = true
    Zipper.unzip(@path)
  end
end