watir 6.17.0 → 7.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/actions/enable-safari/action.yml +11 -0
- data/.github/actions/install-chrome/action.yml +12 -0
- data/.github/actions/setup-linux/action.yml +8 -0
- data/.github/workflows/tests.yml +104 -0
- data/.rubocop.yml +2 -7
- data/.rubocop_todo.yml +36 -0
- data/CHANGES.md +59 -0
- data/LICENSE +2 -2
- data/README.md +6 -10
- data/Rakefile +2 -2
- data/lib/watir.rb +4 -45
- data/lib/watir/adjacent.rb +1 -1
- data/lib/watir/alert.rb +4 -8
- data/lib/watir/attribute_helper.rb +2 -0
- data/lib/watir/browser.rb +20 -6
- data/lib/watir/capabilities.rb +79 -110
- data/lib/watir/cell_container.rb +4 -4
- data/lib/watir/container.rb +4 -26
- data/lib/watir/cookies.rb +2 -0
- data/lib/watir/element_collection.rb +21 -6
- data/lib/watir/elements/checkbox.rb +4 -4
- data/lib/watir/elements/date_field.rb +4 -4
- data/lib/watir/elements/date_time_field.rb +4 -4
- data/lib/watir/elements/element.rb +51 -59
- data/lib/watir/elements/file_field.rb +4 -4
- data/lib/watir/elements/font.rb +5 -4
- data/lib/watir/elements/hidden.rb +4 -4
- data/lib/watir/elements/html_elements.rb +444 -446
- data/lib/watir/elements/iframe.rb +6 -6
- data/lib/watir/elements/radio.rb +6 -6
- data/lib/watir/elements/select.rb +62 -90
- data/lib/watir/elements/svg_elements.rb +96 -96
- data/lib/watir/elements/text_field.rb +4 -4
- data/lib/watir/generator/base/generator.rb +4 -4
- data/lib/watir/generator/base/visitor.rb +0 -29
- data/lib/watir/generator/html/generator.rb +2 -1
- data/lib/watir/has_window.rb +22 -18
- data/lib/watir/http_client.rb +9 -0
- data/lib/watir/js_execution.rb +2 -2
- data/lib/watir/js_snippets.rb +2 -2
- data/lib/watir/locators.rb +6 -8
- data/lib/watir/locators/button/matcher.rb +0 -23
- data/lib/watir/locators/button/selector_builder/xpath.rb +4 -15
- data/lib/watir/locators/element/matcher.rb +4 -19
- data/lib/watir/locators/element/selector_builder.rb +3 -41
- data/lib/watir/locators/element/selector_builder/xpath.rb +34 -41
- data/lib/watir/locators/option/matcher.rb +24 -0
- data/lib/watir/locators/option/selector_builder.rb +8 -0
- data/lib/watir/locators/option/selector_builder/xpath.rb +37 -0
- data/lib/watir/logger.rb +4 -91
- data/lib/watir/radio_set.rb +5 -4
- data/lib/watir/row_container.rb +4 -4
- data/lib/watir/screenshot.rb +2 -8
- data/lib/watir/user_editable.rb +13 -2
- data/lib/watir/version.rb +1 -1
- data/lib/watir/wait.rb +6 -74
- data/lib/watir/wait/timer.rb +1 -1
- data/lib/watir/window.rb +24 -25
- data/lib/watir/window_collection.rb +79 -0
- data/lib/watirspec.rb +5 -2
- data/lib/watirspec/guards.rb +1 -1
- data/lib/watirspec/implementation.rb +7 -5
- data/lib/watirspec/runner.rb +2 -2
- data/lib/watirspec/server.rb +2 -2
- data/spec/spec_helper.rb +1 -21
- data/spec/unit/capabilities_spec.rb +504 -21
- data/spec/unit/match_elements/button_spec.rb +0 -13
- data/spec/unit/match_elements/element_spec.rb +55 -51
- data/spec/unit/match_elements/text_field_spec.rb +6 -6
- data/spec/unit/selector_builder/element_spec.rb +6 -23
- data/spec/unit/selector_builder/text_field_spec.rb +6 -7
- data/spec/unit/unit_helper.rb +2 -4
- data/spec/watirspec/after_hooks_spec.rb +23 -42
- data/spec/watirspec/alert_spec.rb +4 -21
- data/spec/watirspec/browser_spec.rb +186 -206
- data/spec/watirspec/cookies_spec.rb +47 -52
- data/spec/watirspec/drag_and_drop_spec.rb +5 -7
- data/spec/watirspec/elements/area_spec.rb +1 -5
- data/spec/watirspec/elements/button_spec.rb +4 -18
- data/spec/watirspec/elements/checkbox_spec.rb +10 -24
- data/spec/watirspec/elements/date_field_spec.rb +13 -16
- data/spec/watirspec/elements/date_time_field_spec.rb +14 -13
- data/spec/watirspec/elements/dd_spec.rb +3 -4
- data/spec/watirspec/elements/del_spec.rb +10 -12
- data/spec/watirspec/elements/div_spec.rb +45 -84
- data/spec/watirspec/elements/divs_spec.rb +2 -2
- data/spec/watirspec/elements/dl_spec.rb +4 -12
- data/spec/watirspec/elements/element_spec.rb +204 -181
- data/spec/watirspec/elements/elements_spec.rb +8 -9
- data/spec/watirspec/elements/filefield_spec.rb +5 -7
- data/spec/watirspec/elements/form_spec.rb +3 -5
- data/spec/watirspec/elements/forms_spec.rb +3 -5
- data/spec/watirspec/elements/frame_spec.rb +17 -22
- data/spec/watirspec/elements/iframe_spec.rb +25 -33
- data/spec/watirspec/elements/ins_spec.rb +10 -12
- data/spec/watirspec/elements/link_spec.rb +23 -23
- data/spec/watirspec/elements/links_spec.rb +8 -9
- data/spec/watirspec/elements/radio_spec.rb +11 -14
- data/spec/watirspec/elements/select_list_spec.rb +358 -209
- data/spec/watirspec/elements/span_spec.rb +12 -14
- data/spec/watirspec/elements/spans_spec.rb +1 -1
- data/spec/watirspec/elements/strong_spec.rb +1 -1
- data/spec/watirspec/elements/table_nesting_spec.rb +31 -34
- data/spec/watirspec/elements/table_spec.rb +11 -13
- data/spec/watirspec/elements/tbody_spec.rb +10 -12
- data/spec/watirspec/elements/td_spec.rb +4 -6
- data/spec/watirspec/elements/text_field_spec.rb +10 -12
- data/spec/watirspec/elements/tr_spec.rb +5 -7
- data/spec/watirspec/html/non_control_elements.html +8 -3
- data/spec/watirspec/html/special_chars.html +3 -0
- data/spec/watirspec/html/wait.html +5 -5
- data/spec/watirspec/html/window_switching.html +10 -0
- data/spec/watirspec/special_chars_spec.rb +10 -0
- data/spec/watirspec/support/rspec_matchers.rb +11 -24
- data/spec/watirspec/user_editable_spec.rb +26 -28
- data/spec/watirspec/wait_spec.rb +154 -201
- data/spec/watirspec/window_switching_spec.rb +359 -270
- data/spec/watirspec_helper.rb +52 -49
- data/support/doctest_helper.rb +0 -2
- data/watir.gemspec +4 -5
- metadata +30 -39
- data/.travis.yml +0 -87
- data/appveyor.yml +0 -13
- data/lib/watir/legacy_wait.rb +0 -123
- data/spec/implementation_spec.rb +0 -24
- data/spec/unit/container_spec.rb +0 -35
- data/spec/unit/logger_spec.rb +0 -81
- data/spec/watirspec/relaxed_locate_spec.rb +0 -109
data/spec/watirspec_helper.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'watirspec'
|
2
2
|
require 'spec_helper'
|
3
|
+
require 'webdrivers'
|
4
|
+
require 'selenium/webdriver/support/guards'
|
3
5
|
|
4
|
-
Watir.default_timeout =
|
6
|
+
Watir.default_timeout = 5
|
5
7
|
|
6
8
|
if ENV['SELENIUM_STATS'] == 'true'
|
7
9
|
require 'selenium_statistics'
|
@@ -20,21 +22,26 @@ class LocalConfig
|
|
20
22
|
def configure
|
21
23
|
set_webdriver
|
22
24
|
set_browser_args
|
23
|
-
set_guard_proc
|
24
25
|
load_webdrivers
|
25
26
|
end
|
26
27
|
|
27
28
|
private
|
28
29
|
|
29
30
|
def load_webdrivers
|
30
|
-
case browser
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
31
|
+
@imp.driver_info = case browser
|
32
|
+
when :chrome
|
33
|
+
Webdrivers::Chromedriver.update
|
34
|
+
"chromedriver version: #{Webdrivers::Chromedriver.current_version.version}"
|
35
|
+
when :edge
|
36
|
+
Webdrivers::Edgedriver.update
|
37
|
+
"edgedriver version: #{Webdrivers::Edgedriver.current_version.version}"
|
38
|
+
when :firefox
|
39
|
+
Webdrivers::Geckodriver.update
|
40
|
+
"geckodriver version: #{Webdrivers::Geckodriver.current_version.version}"
|
41
|
+
when :ie
|
42
|
+
Webdrivers::IEdriver.update
|
43
|
+
"iedriver version: #{Webdrivers::IEdriver.current_version.version}"
|
44
|
+
end
|
38
45
|
end
|
39
46
|
|
40
47
|
def set_webdriver
|
@@ -64,54 +71,18 @@ class LocalConfig
|
|
64
71
|
args
|
65
72
|
end
|
66
73
|
|
67
|
-
def set_guard_proc
|
68
|
-
matching_guards = add_guards
|
69
|
-
|
70
|
-
@imp.guard_proc = lambda { |args|
|
71
|
-
args.any? { |arg| matching_guards.include?(arg) }
|
72
|
-
}
|
73
|
-
end
|
74
|
-
|
75
|
-
def add_guards
|
76
|
-
matching_guards = common_guards
|
77
|
-
matching_guards << :local
|
78
|
-
matching_guards << [:local, browser]
|
79
|
-
matching_guards
|
80
|
-
end
|
81
|
-
|
82
|
-
def common_guards
|
83
|
-
matching_guards = [browser]
|
84
|
-
matching_guards << [browser, Selenium::WebDriver::Platform.os]
|
85
|
-
matching_guards << :relaxed_locate if Watir.relaxed_locate?
|
86
|
-
matching_guards << :headless if @imp.browser_args.last[:headless]
|
87
|
-
matching_guards << :w3c if ENV['W3C']
|
88
|
-
|
89
|
-
# TODO: Replace this with Selenium::WebDriver::Platform.ci after next Selenium Release
|
90
|
-
if ENV['APPVEYOR']
|
91
|
-
matching_guards << :appveyor
|
92
|
-
matching_guards << [browser, :appveyor]
|
93
|
-
end
|
94
|
-
|
95
|
-
if !Selenium::WebDriver::Platform.linux? || ENV['DESKTOP_SESSION']
|
96
|
-
# some specs (i.e. Window#maximize) needs a window manager on linux
|
97
|
-
matching_guards << :window_manager
|
98
|
-
end
|
99
|
-
matching_guards
|
100
|
-
end
|
101
|
-
|
102
74
|
def firefox_args
|
103
75
|
ENV['FIREFOX_BINARY'] ? {options: {binary: ENV['FIREFOX_BINARY']}} : {}
|
104
76
|
end
|
105
77
|
|
106
|
-
def
|
78
|
+
def safari_preview_args
|
107
79
|
{technology_preview: true}
|
108
80
|
end
|
109
81
|
|
110
82
|
def chrome_args
|
111
|
-
opts = {args: ['--disable-translate']}
|
83
|
+
opts = {options: {args: ['--disable-translate']}}
|
112
84
|
opts[:headless] = true if ENV['HEADLESS'] == 'true'
|
113
|
-
opts[:options] =
|
114
|
-
opts[:options] = {options: {w3c: true}} if ENV['W3C'] == 'true'
|
85
|
+
opts[:options][:binary] = ENV['CHROME_BINARY'] if ENV['CHROME_BINARY']
|
115
86
|
opts
|
116
87
|
end
|
117
88
|
|
@@ -172,3 +143,35 @@ else
|
|
172
143
|
end
|
173
144
|
|
174
145
|
WatirSpec.run!
|
146
|
+
|
147
|
+
RSpec.configure do |config|
|
148
|
+
config.before do |example|
|
149
|
+
guards = Selenium::WebDriver::Support::Guards.new(example,
|
150
|
+
bug_tracker: 'https://github.com/watir/watir/issues')
|
151
|
+
|
152
|
+
guards.add_condition(:browser, WatirSpec.implementation.browser_args.first)
|
153
|
+
guards.add_condition(:platform, Selenium::WebDriver::Platform.os)
|
154
|
+
|
155
|
+
headless = WatirSpec.implementation.browser_args.last[:headless]
|
156
|
+
guards.add_condition(:headless, headless)
|
157
|
+
|
158
|
+
window_manager = !Selenium::WebDriver::Platform.linux? || !ENV['DESKTOP_SESSION'].nil?
|
159
|
+
guards.add_condition(:window_manager, window_manager)
|
160
|
+
|
161
|
+
remote = ENV['USE_REMOTE'] == 'true'
|
162
|
+
guards.add_condition(:remote, remote)
|
163
|
+
|
164
|
+
results = guards.disposition
|
165
|
+
send(*results) if results
|
166
|
+
|
167
|
+
$browser = WatirSpec.new_browser if $browser.nil? || $browser.closed?
|
168
|
+
end
|
169
|
+
|
170
|
+
if ENV['AUTOMATIC_RETRY']
|
171
|
+
require 'rspec/retry'
|
172
|
+
config.verbose_retry = true
|
173
|
+
config.display_try_failure_messages = true
|
174
|
+
config.default_retry_count = 3
|
175
|
+
config.exceptions_to_retry = [IOError, Net::ReadTimeout]
|
176
|
+
end
|
177
|
+
end
|
data/support/doctest_helper.rb
CHANGED
data/watir.gemspec
CHANGED
@@ -25,11 +25,11 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
26
26
|
s.require_paths = ['lib']
|
27
27
|
|
28
|
-
s.add_dependency 'selenium-webdriver', '
|
29
|
-
s.add_runtime_dependency 'regexp_parser', '
|
28
|
+
s.add_dependency 'selenium-webdriver', '>= 4.0.0.beta2'
|
29
|
+
s.add_runtime_dependency 'regexp_parser', '>= 1.2', '< 3'
|
30
30
|
|
31
31
|
s.add_development_dependency 'activesupport', '~> 4.0', '>= 4.1.11' # for pluralization during code generation
|
32
|
-
s.add_development_dependency '
|
32
|
+
s.add_development_dependency 'coveralls_reborn'
|
33
33
|
s.add_development_dependency 'fuubar'
|
34
34
|
s.add_development_dependency 'nokogiri'
|
35
35
|
s.add_development_dependency 'pry'
|
@@ -38,9 +38,8 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.add_development_dependency 'rspec-retry'
|
39
39
|
s.add_development_dependency 'rubocop', '~> 0.59'
|
40
40
|
s.add_development_dependency 'selenium_statistics'
|
41
|
-
s.add_development_dependency 'simplecov'
|
42
41
|
s.add_development_dependency 'simplecov-console'
|
43
|
-
s.add_development_dependency 'webdrivers', '~> 4.
|
42
|
+
s.add_development_dependency 'webdrivers', '~> 4.6'
|
44
43
|
s.add_development_dependency 'webidl', '>= 0.2.2'
|
45
44
|
s.add_development_dependency 'yard', '> 0.8.2.1'
|
46
45
|
s.add_development_dependency 'yard-doctest', '~> 0.1.14'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rodionov
|
@@ -10,36 +10,42 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: selenium-webdriver
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 4.0.0.beta2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 4.0.0.beta2
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: regexp_parser
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - "
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '1.2'
|
36
|
+
- - "<"
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '3'
|
36
39
|
type: :runtime
|
37
40
|
prerelease: false
|
38
41
|
version_requirements: !ruby/object:Gem::Requirement
|
39
42
|
requirements:
|
40
|
-
- - "
|
43
|
+
- - ">="
|
41
44
|
- !ruby/object:Gem::Version
|
42
45
|
version: '1.2'
|
46
|
+
- - "<"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3'
|
43
49
|
- !ruby/object:Gem::Dependency
|
44
50
|
name: activesupport
|
45
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +67,7 @@ dependencies:
|
|
61
67
|
- !ruby/object:Gem::Version
|
62
68
|
version: 4.1.11
|
63
69
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
70
|
+
name: coveralls_reborn
|
65
71
|
requirement: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
73
|
- - ">="
|
@@ -186,20 +192,6 @@ dependencies:
|
|
186
192
|
- - ">="
|
187
193
|
- !ruby/object:Gem::Version
|
188
194
|
version: '0'
|
189
|
-
- !ruby/object:Gem::Dependency
|
190
|
-
name: simplecov
|
191
|
-
requirement: !ruby/object:Gem::Requirement
|
192
|
-
requirements:
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '0'
|
196
|
-
type: :development
|
197
|
-
prerelease: false
|
198
|
-
version_requirements: !ruby/object:Gem::Requirement
|
199
|
-
requirements:
|
200
|
-
- - ">="
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
version: '0'
|
203
195
|
- !ruby/object:Gem::Dependency
|
204
196
|
name: simplecov-console
|
205
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,14 +212,14 @@ dependencies:
|
|
220
212
|
requirements:
|
221
213
|
- - "~>"
|
222
214
|
- !ruby/object:Gem::Version
|
223
|
-
version: '4.
|
215
|
+
version: '4.6'
|
224
216
|
type: :development
|
225
217
|
prerelease: false
|
226
218
|
version_requirements: !ruby/object:Gem::Requirement
|
227
219
|
requirements:
|
228
220
|
- - "~>"
|
229
221
|
- !ruby/object:Gem::Version
|
230
|
-
version: '4.
|
222
|
+
version: '4.6'
|
231
223
|
- !ruby/object:Gem::Dependency
|
232
224
|
name: webidl
|
233
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -283,15 +275,18 @@ extra_rdoc_files: []
|
|
283
275
|
files:
|
284
276
|
- ".document"
|
285
277
|
- ".github/ISSUE_TEMPLATE.md"
|
278
|
+
- ".github/actions/enable-safari/action.yml"
|
279
|
+
- ".github/actions/install-chrome/action.yml"
|
280
|
+
- ".github/actions/setup-linux/action.yml"
|
281
|
+
- ".github/workflows/tests.yml"
|
286
282
|
- ".gitignore"
|
287
283
|
- ".rubocop.yml"
|
288
|
-
- ".
|
284
|
+
- ".rubocop_todo.yml"
|
289
285
|
- CHANGES.md
|
290
286
|
- Gemfile
|
291
287
|
- LICENSE
|
292
288
|
- README.md
|
293
289
|
- Rakefile
|
294
|
-
- appveyor.yml
|
295
290
|
- lib/watir-webdriver.rb
|
296
291
|
- lib/watir.rb
|
297
292
|
- lib/watir/adjacent.rb
|
@@ -351,6 +346,7 @@ files:
|
|
351
346
|
- lib/watir/generator/svg/spec_extractor.rb
|
352
347
|
- lib/watir/generator/svg/visitor.rb
|
353
348
|
- lib/watir/has_window.rb
|
349
|
+
- lib/watir/http_client.rb
|
354
350
|
- lib/watir/js_execution.rb
|
355
351
|
- lib/watir/js_snippets.rb
|
356
352
|
- lib/watir/js_snippets/attributeValues.js
|
@@ -372,7 +368,6 @@ files:
|
|
372
368
|
- lib/watir/js_snippets/selectedText.js
|
373
369
|
- lib/watir/js_snippets/setText.js
|
374
370
|
- lib/watir/js_snippets/setValue.js
|
375
|
-
- lib/watir/legacy_wait.rb
|
376
371
|
- lib/watir/locators.rb
|
377
372
|
- lib/watir/locators/anchor/selector_builder.rb
|
378
373
|
- lib/watir/locators/button/matcher.rb
|
@@ -386,6 +381,9 @@ files:
|
|
386
381
|
- lib/watir/locators/element/selector_builder/regexp_disassembler.rb
|
387
382
|
- lib/watir/locators/element/selector_builder/xpath.rb
|
388
383
|
- lib/watir/locators/element/selector_builder/xpath_support.rb
|
384
|
+
- lib/watir/locators/option/matcher.rb
|
385
|
+
- lib/watir/locators/option/selector_builder.rb
|
386
|
+
- lib/watir/locators/option/selector_builder/xpath.rb
|
389
387
|
- lib/watir/locators/row/selector_builder.rb
|
390
388
|
- lib/watir/locators/row/selector_builder/xpath.rb
|
391
389
|
- lib/watir/locators/text_area/selector_builder.rb
|
@@ -404,6 +402,7 @@ files:
|
|
404
402
|
- lib/watir/wait.rb
|
405
403
|
- lib/watir/wait/timer.rb
|
406
404
|
- lib/watir/window.rb
|
405
|
+
- lib/watir/window_collection.rb
|
407
406
|
- lib/watirspec.rb
|
408
407
|
- lib/watirspec/guards.rb
|
409
408
|
- lib/watirspec/implementation.rb
|
@@ -412,13 +411,10 @@ files:
|
|
412
411
|
- lib/watirspec/runner.rb
|
413
412
|
- lib/watirspec/server.rb
|
414
413
|
- lib/watirspec/server/app.rb
|
415
|
-
- spec/implementation_spec.rb
|
416
414
|
- spec/locator_spec_helper.rb
|
417
415
|
- spec/spec_helper.rb
|
418
416
|
- spec/unit/capabilities_spec.rb
|
419
|
-
- spec/unit/container_spec.rb
|
420
417
|
- spec/unit/element_locator_spec.rb
|
421
|
-
- spec/unit/logger_spec.rb
|
422
418
|
- spec/unit/match_elements/button_spec.rb
|
423
419
|
- spec/unit/match_elements/element_spec.rb
|
424
420
|
- spec/unit/match_elements/text_field_spec.rb
|
@@ -587,7 +583,6 @@ files:
|
|
587
583
|
- spec/watirspec/html/watirspec.css
|
588
584
|
- spec/watirspec/html/window_switching.html
|
589
585
|
- spec/watirspec/radio_set_spec.rb
|
590
|
-
- spec/watirspec/relaxed_locate_spec.rb
|
591
586
|
- spec/watirspec/screenshot_spec.rb
|
592
587
|
- spec/watirspec/scroll_spec.rb
|
593
588
|
- spec/watirspec/special_chars_spec.rb
|
@@ -615,22 +610,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
615
610
|
version: 2.5.0
|
616
611
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
617
612
|
requirements:
|
618
|
-
- - "
|
613
|
+
- - ">"
|
619
614
|
- !ruby/object:Gem::Version
|
620
|
-
version:
|
615
|
+
version: 1.3.1
|
621
616
|
requirements: []
|
622
|
-
rubygems_version: 3.1.
|
617
|
+
rubygems_version: 3.1.4
|
623
618
|
signing_key:
|
624
619
|
specification_version: 4
|
625
620
|
summary: Watir powered by Selenium
|
626
621
|
test_files:
|
627
|
-
- spec/implementation_spec.rb
|
628
622
|
- spec/locator_spec_helper.rb
|
629
623
|
- spec/spec_helper.rb
|
630
624
|
- spec/unit/capabilities_spec.rb
|
631
|
-
- spec/unit/container_spec.rb
|
632
625
|
- spec/unit/element_locator_spec.rb
|
633
|
-
- spec/unit/logger_spec.rb
|
634
626
|
- spec/unit/match_elements/button_spec.rb
|
635
627
|
- spec/unit/match_elements/element_spec.rb
|
636
628
|
- spec/unit/match_elements/text_field_spec.rb
|
@@ -799,7 +791,6 @@ test_files:
|
|
799
791
|
- spec/watirspec/html/watirspec.css
|
800
792
|
- spec/watirspec/html/window_switching.html
|
801
793
|
- spec/watirspec/radio_set_spec.rb
|
802
|
-
- spec/watirspec/relaxed_locate_spec.rb
|
803
794
|
- spec/watirspec/screenshot_spec.rb
|
804
795
|
- spec/watirspec/scroll_spec.rb
|
805
796
|
- spec/watirspec/special_chars_spec.rb
|
data/.travis.yml
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
# Please note that we should not be using container-based infrastructure
|
2
|
-
# because Chrome requires a lot of shared memory and Travis does not allow
|
3
|
-
# use host's /dev/shm.
|
4
|
-
sudo: required
|
5
|
-
dist: trusty
|
6
|
-
cache: bundler
|
7
|
-
notifications:
|
8
|
-
slack:
|
9
|
-
secure: BLsBCm33R32VNRccrLx9F0P24X6BVpVHj1OWaN4Kyn6g9qXteIwC2VKVMnKNbifpojfMkrn0OeFQFK1O1DSOsC3mgzn/udoB+DnUGcSemFUn04xhbYF5SI+3zGPKPo0JLvjjdEKSSma84YwKdrj88pGUK34p01gL8hiaqjFzWdk=
|
10
|
-
before_install:
|
11
|
-
- gem update --system
|
12
|
-
- gem install bundler
|
13
|
-
|
14
|
-
before_script:
|
15
|
-
- support/travis.sh
|
16
|
-
- export PATH=~/.webdrivers:$PATH
|
17
|
-
|
18
|
-
script: bundle exec rake $RAKE_TASK
|
19
|
-
|
20
|
-
_version:
|
21
|
-
five: &five
|
22
|
-
language: ruby
|
23
|
-
rvm: 2.5.8
|
24
|
-
six: &six
|
25
|
-
language: ruby
|
26
|
-
rvm: 2.6.6
|
27
|
-
seven: &seven
|
28
|
-
language: ruby
|
29
|
-
rvm: 2.7.1
|
30
|
-
|
31
|
-
_browsers:
|
32
|
-
firefox: &firefox-latest
|
33
|
-
addons:
|
34
|
-
firefox: latest
|
35
|
-
chrome: &chrome
|
36
|
-
addons:
|
37
|
-
chrome: stable
|
38
|
-
|
39
|
-
matrix:
|
40
|
-
include:
|
41
|
-
- env: RAKE_TASK=spec:remote_firefox
|
42
|
-
<<: *seven
|
43
|
-
<<: *firefox-latest
|
44
|
-
- env: RAKE_TASK=spec:remote_chrome
|
45
|
-
<<: *seven
|
46
|
-
<<: *chrome
|
47
|
-
- env: RAKE_TASK=spec:firefox RELAXED_LOCATE=false
|
48
|
-
<<: *seven
|
49
|
-
<<: *firefox-latest
|
50
|
-
- env: RAKE_TASK=spec:firefox
|
51
|
-
<<: *seven
|
52
|
-
<<: *firefox-latest
|
53
|
-
- env: RAKE_TASK=spec:firefox
|
54
|
-
<<: *six
|
55
|
-
<<: *firefox-latest
|
56
|
-
- env: RAKE_TASK=spec:firefox
|
57
|
-
<<: *five
|
58
|
-
<<: *firefox-latest
|
59
|
-
- env: RAKE_TASK=spec:chrome
|
60
|
-
<<: *seven
|
61
|
-
<<: *chrome
|
62
|
-
- env: RAKE_TASK=spec:chrome
|
63
|
-
<<: *six
|
64
|
-
<<: *chrome
|
65
|
-
- env: RAKE_TASK=spec:chrome
|
66
|
-
<<: *five
|
67
|
-
<<: *chrome
|
68
|
-
- env: RAKE_TASK=spec:chrome RELAXED_LOCATE=false
|
69
|
-
<<: *seven
|
70
|
-
<<: *chrome
|
71
|
-
- env: RAKE_TASK=spec:chrome W3C=true
|
72
|
-
<<: *seven
|
73
|
-
<<: *chrome
|
74
|
-
- env: RAKE_TASK=spec:chrome HEADLESS=true
|
75
|
-
<<: *seven
|
76
|
-
<<: *chrome
|
77
|
-
- env: RAKE_TASK=spec:unit
|
78
|
-
<<: *seven
|
79
|
-
- env: RAKE_TASK=spec:stats
|
80
|
-
<<: *seven
|
81
|
-
<<: *chrome
|
82
|
-
- env: RAKE_TASK=yard:doctest
|
83
|
-
<<: *seven
|
84
|
-
<<: *chrome
|
85
|
-
- env: RAKE_TASK=rubocop
|
86
|
-
<<: *five
|
87
|
-
<<: *chrome
|