Module: Selenium::WebDriver::ProfileHelper
- Included in:
- Chrome::Profile, Firefox::Profile
- Defined in:
- lib/selenium/webdriver/common/profile_helper.rb
Overview
Common methods for Chrome::Profile and Firefox::Profile Includers must implement #layout_on_disk
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/selenium/webdriver/common/profile_helper.rb', line 13 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#as_json(opts = nil) ⇒ Object
17 18 19 |
# File 'lib/selenium/webdriver/common/profile_helper.rb', line 17 def as_json(opts = nil) {'zip' => Zipper.zip(layout_on_disk)} end |
#to_json(*args) ⇒ Object
21 22 23 |
# File 'lib/selenium/webdriver/common/profile_helper.rb', line 21 def to_json(*args) as_json.to_json(*args) end |