watir-classic 3.7.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +0,0 @@
1
- require 'watir-classic'
2
- require 'watir-classic/core'
3
- require 'watir-classic/ie-process'
4
- require 'watir-classic/screenshot'
5
- require 'multi_json'
@@ -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