Top Level Namespace

Defined Under Namespace

Modules: BasePage, LeapSalesforce, LeapSalesforceUi Classes: CreatePage, LoginPage, UpdatePage, ViewPage

Instance Method Summary collapse

Instance Method Details

#zalenium_args(feature_name, scenario) ⇒ Hash

Returns:

  • (Hash)


18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/leap_salesforce_ui.rb', line 18

def zalenium_args(feature_name, scenario)
  args = { timeout: 120, url: ENV["WEBDRIVER_URL"], name: "Scenario: #{scenario} #{Time.now}",
           'zal:build': "Feature: #{feature_name}" }
  case ENV["BROWSER"]
  when "chrome"
    args.merge!('goog:chromeOptions': {
                  args: ENV["WEBDRIVER_CHROMEOPTIONS"]&.split(" ") || %w[]
                })
  when "firefox"
    args.merge!(timeouts: 120)
  end
  args
end