Sha256: 5ee1b8867bf0925ee17f23c01413a1302ae5e6864e87313a15879431345b1a73

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

require 'yaml'
require 'selenium-webdriver'
require 'watir'
require 'webdrivers'

module Raider
  module BrowserHelper
    class << self
      attr_reader :browser

      def new_browser(options = {})
        browser = YAML.load_file('config/config.yml')['browser'].to_sym
        @browser = Watir::Browser.new(browser, options: options)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_raider-0.3.3 lib/generators/templates/helpers/browser_helper.tt
ruby_raider-0.3.2 lib/generators/templates/helpers/browser_helper.tt
ruby_raider-0.3.1 lib/generators/templates/helpers/browser_helper.tt
ruby_raider-0.3.0 lib/generators/templates/helpers/browser_helper.tt
ruby_raider-0.2.9 lib/generators/templates/helpers/browser_helper.tt