Module: Selenium::WebDriver::ProfileHelper Private
- Included in:
- Chrome::Profile, Firefox::Profile
- Defined in:
- 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
- .included(base) ⇒ Object private
Instance Method Summary collapse
- #as_json ⇒ Object private
- #to_json ⇒ Object private
Class Method Details
.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.
28 29 30 |
# File 'lib/selenium/webdriver/common/profile_helper.rb', line 28 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.
32 33 34 |
# File 'lib/selenium/webdriver/common/profile_helper.rb', line 32 def as_json(*) {"zip" => 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.
36 37 38 |
# File 'lib/selenium/webdriver/common/profile_helper.rb', line 36 def to_json(*) JSON.generate as_json end |