Sha256: 8b5e8f70a9ac6be9a9709922cc6a2860e3f84905540102304298f5efcace166c
Contents?: true
Size: 802 Bytes
Versions: 7
Compression:
Stored size: 802 Bytes
Contents
require 'pry' def awetestlib_driver_setup current_dir = Dir.pwd drivers_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "drivers")) # binding.pry 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 "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
7 entries across 7 versions & 1 rubygems