watir-classic 3.7.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGES +6 -0
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/lib/watir-classic.rb +36 -3
- data/lib/watir-classic/browser.rb +613 -115
- data/lib/watir-classic/{ie-process.rb → browser_process.rb} +4 -4
- data/lib/watir-classic/cookies.rb +1 -1
- data/lib/watir-classic/element.rb +2 -2
- data/lib/watir-classic/frame.rb +1 -1
- data/lib/watir-classic/ie_deprecated.rb +5 -0
- data/lib/watir-classic/modal_dialog.rb +1 -1
- data/lib/watir-classic/process.rb +1 -1
- data/lib/watir-classic/screenshot.rb +1 -1
- data/lib/watir-classic/window.rb +3 -3
- data/lib/watir-classic/xpath_locator.rb +2 -2
- data/spec/implementation.rb +1 -1
- data/watir-classic.gemspec +1 -1
- metadata +19 -24
- data/Gemfile.lock +0 -79
- data/lib/watir-classic/browsers.rb +0 -7
- data/lib/watir-classic/core.rb +0 -40
- data/lib/watir-classic/ie-class.rb +0 -664
- data/lib/watir-classic/ie.rb +0 -5
- data/lib/watir-classic/options.rb +0 -51
data/lib/watir-classic/ie.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
#--
|
2
|
-
# watir/options
|
3
|
-
require 'rubygems'
|
4
|
-
|
5
|
-
require 'user-choices'
|
6
|
-
|
7
|
-
module Watir
|
8
|
-
class << self
|
9
|
-
# Specify the location of a yaml file containing Watir options. Must be
|
10
|
-
# specified before the options are parsed.
|
11
|
-
attr_accessor :options_file
|
12
|
-
|
13
|
-
attr_writer :options
|
14
|
-
|
15
|
-
# Return the Watir options, as a hash. If they haven't been parsed yet,
|
16
|
-
# they will be now.
|
17
|
-
def options
|
18
|
-
@options ||= Watir::WatirOptions.new.execute
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
# @private
|
23
|
-
class WatirOptions < UserChoices::Command
|
24
|
-
include UserChoices
|
25
|
-
|
26
|
-
def add_sources builder
|
27
|
-
builder.add_source EnvironmentSource, :with_prefix, 'watir_'
|
28
|
-
if Watir.options_file
|
29
|
-
builder.add_source YamlConfigFileSource, :from_complete_path,
|
30
|
-
Watir.options_file
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def add_choices builder
|
35
|
-
builder.add_choice :browser,
|
36
|
-
:type => Watir::Browser.browser_names,
|
37
|
-
:default => Watir::Browser.default
|
38
|
-
builder.add_choice :speed,
|
39
|
-
:type => ['slow', 'fast', 'zippy'],
|
40
|
-
:default => 'fast'
|
41
|
-
builder.add_choice :visible,
|
42
|
-
:type => :boolean
|
43
|
-
end
|
44
|
-
|
45
|
-
def execute
|
46
|
-
@user_choices[:speed] = @user_choices[:speed].to_sym
|
47
|
-
@user_choices
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
51
|
-
end
|