lib/vapir-ie.rb in vapir-ie-1.7.2 vs lib/vapir-ie.rb in vapir-ie-1.8.0

- old
+ new

@@ -4,41 +4,17 @@ require 'vapir-common/browser' module Vapir IE= Class.new(Vapir::Browser) end -# these switches need to be deleted from ARGV to enable the Test::Unit -# functionality that grabs -# the remaining ARGV as a filter on what tests to run. -# Note: this means that watir must be require'd BEFORE test/unit. -# (Alternatively, you could require test/unit first and then put the Vapir::IE -# arguments after the '--'.) - -# Make Internet Explorer invisible. -b stands for background -$HIDE_IE ||= ARGV.delete('-b') - -# Run fast -$FAST_SPEED = ARGV.delete('-f') - -# Eat the -s command line switch (deprecated) -ARGV.delete('-s') - -require 'vapir-ie/ie-class' +require 'vapir-ie/config' +require 'vapir-ie/browser' require 'vapir-ie/elements' require 'vapir-ie/version' require 'vapir-common/waiter' module Vapir include Vapir::Exception - # Directory containing the watir.rb file - @@dir = File.expand_path(File.dirname(__FILE__)) - ATTACHER = Waiter.new - # Like regular Ruby "until", except that a TimeOutException is raised - # if the timeout is exceeded. Timeout is IE.attach_timeout. - def self.until_with_timeout # block - ATTACHER.timeout = IE.attach_timeout - ATTACHER.wait_until { yield } - end end