Module: RunParameters
- Defined in:
- lib/test_utils/browser_tests/run_parameters.rb
Instance Method Summary collapse
-
#bs ⇒ Object
Browser Stack.
-
#headless ⇒ Object
Run headless.
- #platform ⇒ Object
Instance Method Details
#bs ⇒ Object
Browser Stack
12 13 14 |
# File 'lib/test_utils/browser_tests/run_parameters.rb', line 12 def bs ENV['BS'] end |
#headless ⇒ Object
Run headless
17 18 19 20 21 |
# File 'lib/test_utils/browser_tests/run_parameters.rb', line 17 def headless h = (ENV['HEADLESS'] ||= 'false').downcase.to_sym raise ArgumentError, 'Set HEADLESS to true or false' unless [:true, :false].include? h h end |
#platform ⇒ Object
5 6 7 8 9 |
# File 'lib/test_utils/browser_tests/run_parameters.rb', line 5 def platform p = (ENV['BROWSER'] ||= 'chrome').downcase.to_sym raise ArgumentError, 'Set BROWSER to Chrome, Firefox or Mobile' unless [:chrome, :firefox, :mobile].include? p p end |