Sha256: d3a13c15d3e30050a1b2f18e5f38e6c7d543e7e2120c6db6575e63029fd4e8ec
Contents?: true
Size: 880 Bytes
Versions: 4
Compression:
Stored size: 880 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 "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
4 entries across 4 versions & 1 rubygems