Class: Capybara::Playwright::BrowserOptions
- Inherits:
-
Object
- Object
- Capybara::Playwright::BrowserOptions
- Defined in:
- lib/capybara/playwright/browser_options.rb
Constant Summary collapse
- LAUNCH_PARAMS =
{ args: nil, channel: nil, chromiumSandbox: nil, devtools: nil, downloadsPath: nil, env: nil, executablePath: nil, firefoxUserPrefs: nil, handleSIGHUP: nil, handleSIGINT: nil, handleSIGTERM: nil, headless: nil, ignoreDefaultArgs: nil, proxy: nil, slowMo: nil, # timeout: nil, tracesDir: nil, }.keys
Instance Method Summary collapse
-
#initialize(options) ⇒ BrowserOptions
constructor
A new instance of BrowserOptions.
- #value ⇒ Object
Constructor Details
#initialize(options) ⇒ BrowserOptions
Returns a new instance of BrowserOptions.
4 5 6 |
# File 'lib/capybara/playwright/browser_options.rb', line 4 def initialize() @options = end |
Instance Method Details
#value ⇒ Object
28 29 30 |
# File 'lib/capybara/playwright/browser_options.rb', line 28 def value @options.select { |k, _| LAUNCH_PARAMS.include?(k) } end |