123456789_123456789_123456789_123456789_123456789_

Module: Selenium::WebDriver::ProfileHelper::ClassMethods Private

Relationships & Source Files
Defined in: rb/lib/selenium/webdriver/common/profile_helper.rb

Instance Method Summary

Instance Method Details

#from_json(json)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/profile_helper.rb', line 73

def from_json(json)
  data = decoded(json)

  Tempfile.create do |zip_path|
    File.open(zip_path, 'wb') { |zip_file| zip_file << Base64.decode64(data) }

    new Zipper.unzip(zip_path)
  end
end