Sha256: cc974dbcd91144c09fadd7feca60e6d89be2969caa4b03daf3781ed11f7d863e

Contents?: true

Size: 849 Bytes

Versions: 1

Compression:

Stored size: 849 Bytes

Contents

def awetestlib_driver_setup
	current_dir = Dir.pwd
	drivers_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "drivers"))
	ie_driver = File.join(drivers_dir,"IEDriverServer.exe")
	chrome_driver = File.join(drivers_dir,"chromedriver.exe")
	msg("Question") do
    puts "I'm about to put the chromedriver and IEDriverServer in this directory"
    puts "If it already exists, we will overwrite it"
    puts "Please hit return to confirm that's what you want."
    puts "Enter anything else and hit return to abort."
    puts "NOTE: You may need to run this command as an administrator."
  end
  exit 2 unless STDIN.gets.chomp == ''
	FileUtils.cp(ie_driver, current_dir)
	FileUtils.cp(chrome_driver,current_dir)
  msg("Info") do
    puts "Successfully copied chromedriver and IEDriverServer to #{current_dir}"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awetestlib-1.2.4-x86-mingw32 bin/awetestlib-driver-setup.rb