Sha256: 895a5e5df3dcf7b065f05fdb172004acd3381a0dc2ddad0329445393e055b394

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

require 'selenium-webdriver'
require 'testnow/chrome'
require 'testnow/opera'
require 'testnow/firefox'

module TestNow

	def init
		ENV['BROWSER'] = "firefox" if ENV['BROWSER'].nil?
		case ENV['BROWSER'].downcase
    		when "chrome"
      			TestNow.launch_driver_chrome
    		when "android"
      			launch_driver_android
    		when "opera"
      			TestNow.launch_driver_opera
    		when "androidchrome"
      			launch_driver_android_chrome  
    		when "ie"
      			launch_driver_ie
    		else
      			TestNow.launch_driver_firefox
  		end
	end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
testnow-0.0.5 lib/testnow.rb
testnow-0.0.4 lib/testnow.rb
testnow-0.0.3 lib/testnow.rb