Module: Selenium::WebDriver::ProfileHelper Private
- Included in:
- Chromium::Profile, Firefox::Profile
- Defined in:
- rb/lib/selenium/webdriver/common/profile_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Common methods for Chrome::Profile and Firefox::Profile Includers must implement #layout_on_disk
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
- .decoded(json) ⇒ Object private
- .included(base) ⇒ Object private
Instance Method Summary collapse
- #as_json ⇒ Object private
- #encoded ⇒ Object private
- #to_json ⇒ Object private
Class Method Details
.decoded(json) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
34 35 36 |
# File 'rb/lib/selenium/webdriver/common/profile_helper.rb', line 34 def self.decoded(json) JSON.parse(json).fetch('zip') end |
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'rb/lib/selenium/webdriver/common/profile_helper.rb', line 30 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#as_json ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
42 43 44 |
# File 'rb/lib/selenium/webdriver/common/profile_helper.rb', line 42 def as_json(*) {'zip' => encoded} end |
#encoded ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
38 39 40 |
# File 'rb/lib/selenium/webdriver/common/profile_helper.rb', line 38 def encoded Zipper.zip(layout_on_disk) end |
#to_json ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
46 47 48 |
# File 'rb/lib/selenium/webdriver/common/profile_helper.rb', line 46 def to_json(*) JSON.generate as_json end |