Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.564 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
RUBY_PLATFORM =~ /mswin/ ? history_file = '\.irb_history' : history_file ='~/.irb_history'
IRB.conf[:EVAL_HISTORY] = 1000
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = File::expand_path(history_file)

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')

title = ENV['window_title'] || '.'
require 'watir/ie'
@ie = Watir::IE.attach :title, /#{title}/
puts "Attached to: #{@ie.title}"
puts "Your browser instance is: ie, browser"

def ie
 @ie
end
alias :browser :ie
Something went wrong with that request. Please try again.