Sha256: fe998f658ae5f23898aa09db21c77c8ed1402c120a1f5406af328a534038e43b
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
<% if automation == 'selenium' %> def new_driver(caps = {}) @config = YAML.load_file('config/config.yml') browser = @config['browser'].to_sym caps = caps.nil? ? @config['browser_options'] : caps @driver = Selenium::WebDriver.for(browser, desired_capabilities: caps) end <% else %> def new_driver appium_file = File.join(Dir.pwd, 'appium.txt') caps = Appium.load_appium_txt(file: appium_file) @driver = Appium::Driver.new(caps) end <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_raider-0.3.5 | lib/generators/templates/helpers/partials/new_driver.tt |
ruby_raider-0.3.4 | lib/generators/templates/helpers/partials/new_driver.tt |