Module: CucumberSteps::Browser::Defaults
- Included in:
- CucumberSteps::Browser
- Defined in:
- lib/cucumber_steps/browser/defaults.rb
Constant Summary collapse
- BROWSER_ARGUMENTS =
{ 'phantomjs' => { # --load-plugins=[yes|no] Load all plugins (i.e. 'Flash', 'Silverlight', ...) (default is 'no'). # --ignore-ssl-errors=[yes|no] Ignore SSL errors (i.e. expired or self-signed certificate errors). # --ssl-protocol=any # --config=/path/to/config # # javascriptCanCloseWindows: true # # javascriptCanOpenWindows: true # # javascriptEnabled: true args: ['--ssl-protocol=any'] } }
Instance Method Summary collapse
Instance Method Details
#args_with_default_options(browser_name, *args) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cucumber_steps/browser/defaults.rb', line 17 def (browser_name, *args) unless args.any? { |e| e.is_a?(Hash) } args.unshift({}) end = args.find { |e| e.is_a?(Hash) } = ::CucumberSteps::Browser::Defaults::BROWSER_ARGUMENTS[browser_name.to_s] || {} .merge!() if .is_a?(Hash) return args end |