watir 6.0.0.beta5 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/CHANGES.md +10 -1
- data/Gemfile +4 -0
- data/README.md +37 -23
- data/Rakefile +6 -10
- data/appveyor.yml +13 -0
- data/lib/watir.rb +20 -21
- data/lib/watir/alert.rb +21 -5
- data/lib/watir/browser.rb +9 -3
- data/lib/watir/elements/checkbox.rb +0 -1
- data/lib/watir/elements/element.rb +92 -50
- data/lib/watir/elements/form.rb +1 -2
- data/lib/watir/elements/iframe.rb +6 -2
- data/lib/watir/elements/image.rb +1 -1
- data/lib/watir/elements/option.rb +0 -1
- data/lib/watir/elements/radio.rb +0 -1
- data/lib/watir/elements/select.rb +1 -10
- data/lib/watir/extensions/select_text.rb +1 -1
- data/lib/watir/legacy_wait.rb +126 -0
- data/lib/watir/locators/text_field/locator.rb +0 -3
- data/lib/watir/locators/text_field/selector_builder.rb +1 -4
- data/lib/watir/locators/text_field/selector_builder/xpath.rb +0 -2
- data/lib/watir/locators/text_field/validator.rb +1 -9
- data/lib/watir/row_container.rb +1 -1
- data/lib/watir/user_editable.rb +7 -5
- data/lib/watir/wait.rb +56 -135
- data/lib/watir/wait/timer.rb +29 -2
- data/lib/watir/window.rb +11 -1
- data/lib/watirspec.rb +81 -0
- data/lib/watirspec/guards.rb +58 -0
- data/lib/watirspec/implementation.rb +33 -0
- data/lib/watirspec/rake_tasks.rb +115 -0
- data/lib/watirspec/runner.rb +53 -0
- data/lib/watirspec/server.rb +99 -0
- data/lib/watirspec/server/app.rb +62 -0
- data/spec/browser_spec.rb +5 -5
- data/spec/click_spec.rb +1 -1
- data/spec/container_spec.rb +1 -1
- data/spec/element_locator_spec.rb +1 -1
- data/spec/element_spec.rb +20 -34
- data/spec/implementation_spec.rb +24 -0
- data/spec/input_spec.rb +1 -1
- data/spec/spec_helper.rb +35 -3
- data/spec/special_chars_spec.rb +1 -1
- data/spec/watirspec/.gitignore +2 -0
- data/spec/watirspec/after_hooks_spec.rb +179 -0
- data/spec/watirspec/alert_spec.rb +101 -0
- data/spec/watirspec/browser_spec.rb +291 -0
- data/spec/watirspec/cookies_spec.rb +147 -0
- data/spec/watirspec/drag_and_drop_spec.rb +49 -0
- data/spec/watirspec/element_hidden_spec.rb +65 -0
- data/spec/watirspec/elements/area_spec.rb +76 -0
- data/spec/watirspec/elements/areas_spec.rb +42 -0
- data/spec/watirspec/elements/button_spec.rb +270 -0
- data/spec/watirspec/elements/buttons_spec.rb +55 -0
- data/spec/watirspec/elements/checkbox_spec.rb +279 -0
- data/spec/watirspec/elements/checkboxes_spec.rb +44 -0
- data/spec/watirspec/elements/collections_spec.rb +16 -0
- data/spec/watirspec/elements/dd_spec.rb +126 -0
- data/spec/watirspec/elements/dds_spec.rb +42 -0
- data/spec/watirspec/elements/del_spec.rb +128 -0
- data/spec/watirspec/elements/dels_spec.rb +40 -0
- data/spec/watirspec/elements/div_spec.rb +199 -0
- data/spec/watirspec/elements/divs_spec.rb +42 -0
- data/spec/watirspec/elements/dl_spec.rb +144 -0
- data/spec/watirspec/elements/dls_spec.rb +43 -0
- data/spec/watirspec/elements/dt_spec.rb +126 -0
- data/spec/watirspec/elements/dts_spec.rb +42 -0
- data/spec/watirspec/elements/element_spec.rb +361 -0
- data/spec/watirspec/elements/elements_spec.rb +15 -0
- data/spec/watirspec/elements/em_spec.rb +100 -0
- data/spec/watirspec/elements/ems_spec.rb +43 -0
- data/spec/watirspec/elements/filefield_spec.rb +181 -0
- data/spec/watirspec/elements/filefields_spec.rb +43 -0
- data/spec/watirspec/elements/font_spec.rb +29 -0
- data/spec/watirspec/elements/form_spec.rb +70 -0
- data/spec/watirspec/elements/forms_spec.rb +44 -0
- data/spec/watirspec/elements/frame_spec.rb +121 -0
- data/spec/watirspec/elements/frames_spec.rb +41 -0
- data/spec/watirspec/elements/hidden_spec.rb +102 -0
- data/spec/watirspec/elements/hiddens_spec.rb +43 -0
- data/spec/watirspec/elements/hn_spec.rb +96 -0
- data/spec/watirspec/elements/hns_spec.rb +38 -0
- data/spec/watirspec/elements/iframe_spec.rb +174 -0
- data/spec/watirspec/elements/iframes_spec.rb +47 -0
- data/spec/watirspec/elements/image_spec.rb +164 -0
- data/spec/watirspec/elements/images_spec.rb +40 -0
- data/spec/watirspec/elements/ins_spec.rb +129 -0
- data/spec/watirspec/elements/inses_spec.rb +40 -0
- data/spec/watirspec/elements/label_spec.rb +79 -0
- data/spec/watirspec/elements/labels_spec.rb +40 -0
- data/spec/watirspec/elements/li_spec.rb +115 -0
- data/spec/watirspec/elements/link_spec.rb +174 -0
- data/spec/watirspec/elements/links_spec.rb +44 -0
- data/spec/watirspec/elements/lis_spec.rb +42 -0
- data/spec/watirspec/elements/map_spec.rb +79 -0
- data/spec/watirspec/elements/maps_spec.rb +41 -0
- data/spec/watirspec/elements/meta_spec.rb +23 -0
- data/spec/watirspec/elements/metas_spec.rb +40 -0
- data/spec/watirspec/elements/ol_spec.rb +89 -0
- data/spec/watirspec/elements/ols_spec.rb +40 -0
- data/spec/watirspec/elements/option_spec.rb +152 -0
- data/spec/watirspec/elements/p_spec.rb +115 -0
- data/spec/watirspec/elements/pre_spec.rb +115 -0
- data/spec/watirspec/elements/pres_spec.rb +40 -0
- data/spec/watirspec/elements/ps_spec.rb +40 -0
- data/spec/watirspec/elements/radio_spec.rb +263 -0
- data/spec/watirspec/elements/radios_spec.rb +43 -0
- data/spec/watirspec/elements/select_list_spec.rb +379 -0
- data/spec/watirspec/elements/select_lists_spec.rb +46 -0
- data/spec/watirspec/elements/span_spec.rb +129 -0
- data/spec/watirspec/elements/spans_spec.rb +40 -0
- data/spec/watirspec/elements/strong_spec.rb +92 -0
- data/spec/watirspec/elements/strongs_spec.rb +43 -0
- data/spec/watirspec/elements/table_nesting_spec.rb +51 -0
- data/spec/watirspec/elements/table_spec.rb +146 -0
- data/spec/watirspec/elements/tables_spec.rb +42 -0
- data/spec/watirspec/elements/tbody_spec.rb +96 -0
- data/spec/watirspec/elements/tbodys_spec.rb +62 -0
- data/spec/watirspec/elements/td_spec.rb +71 -0
- data/spec/watirspec/elements/tds_spec.rb +53 -0
- data/spec/watirspec/elements/text_field_spec.rb +302 -0
- data/spec/watirspec/elements/text_fields_spec.rb +44 -0
- data/spec/watirspec/elements/textarea_spec.rb +26 -0
- data/spec/watirspec/elements/textareas_spec.rb +24 -0
- data/spec/watirspec/elements/tfoot_spec.rb +91 -0
- data/spec/watirspec/elements/tfoots_spec.rb +68 -0
- data/spec/watirspec/elements/thead_spec.rb +91 -0
- data/spec/watirspec/elements/theads_spec.rb +68 -0
- data/spec/watirspec/elements/tr_spec.rb +80 -0
- data/spec/watirspec/elements/trs_spec.rb +61 -0
- data/spec/watirspec/elements/ul_spec.rb +79 -0
- data/spec/watirspec/elements/uls_spec.rb +39 -0
- data/spec/watirspec/html/alerts.html +12 -0
- data/spec/watirspec/html/aria_attributes.html +9 -0
- data/spec/watirspec/html/class_locator.html +8 -0
- data/spec/watirspec/html/clicks.html +19 -0
- data/spec/watirspec/html/closeable.html +13 -0
- data/spec/watirspec/html/collections.html +15 -0
- data/spec/watirspec/html/css/jquery-ui-1.8.17.custom.css +287 -0
- data/spec/watirspec/html/data_attributes.html +9 -0
- data/spec/watirspec/html/definition_lists.html +48 -0
- data/spec/watirspec/html/drag_and_drop.html +106 -0
- data/spec/watirspec/html/font.html +10 -0
- data/spec/watirspec/html/forms_with_input_elements.html +170 -0
- data/spec/watirspec/html/frame_1.html +22 -0
- data/spec/watirspec/html/frame_2.html +16 -0
- data/spec/watirspec/html/frames.html +11 -0
- data/spec/watirspec/html/hover.html +12 -0
- data/spec/watirspec/html/iframe_1.html +22 -0
- data/spec/watirspec/html/iframes.html +12 -0
- data/spec/watirspec/html/images.html +28 -0
- data/spec/watirspec/html/images/1.gif +0 -0
- data/spec/watirspec/html/images/2.gif +0 -0
- data/spec/watirspec/html/images/3.gif +0 -0
- data/spec/watirspec/html/images/button.png +0 -0
- data/spec/watirspec/html/images/circle.png +0 -0
- data/spec/watirspec/html/images/map.gif +0 -0
- data/spec/watirspec/html/images/map2.gif +0 -0
- data/spec/watirspec/html/images/minus.gif +0 -0
- data/spec/watirspec/html/images/originaltriangle.png +0 -0
- data/spec/watirspec/html/images/plus.gif +0 -0
- data/spec/watirspec/html/images/square.png +0 -0
- data/spec/watirspec/html/images/triangle.png +0 -0
- data/spec/watirspec/html/inner_outer.html +5 -0
- data/spec/watirspec/html/javascript/helpers.js +16 -0
- data/spec/watirspec/html/javascript/jquery-1.7.1.min.js +4 -0
- data/spec/watirspec/html/javascript/jquery-ui-1.8.17.custom.min.js +68 -0
- data/spec/watirspec/html/keylogger.html +15 -0
- data/spec/watirspec/html/modal_dialog.html +9 -0
- data/spec/watirspec/html/multiple_ids.html +14 -0
- data/spec/watirspec/html/nested_frame_1.html +1 -0
- data/spec/watirspec/html/nested_frame_2.html +9 -0
- data/spec/watirspec/html/nested_frame_3.html +14 -0
- data/spec/watirspec/html/nested_frames.html +10 -0
- data/spec/watirspec/html/nested_iframe_2.html +12 -0
- data/spec/watirspec/html/nested_iframes.html +9 -0
- data/spec/watirspec/html/nested_tables.html +203 -0
- data/spec/watirspec/html/non_control_elements.html +135 -0
- data/spec/watirspec/html/removed_element.html +24 -0
- data/spec/watirspec/html/right_click.html +11 -0
- data/spec/watirspec/html/special_chars.html +12 -0
- data/spec/watirspec/html/tables.html +121 -0
- data/spec/watirspec/html/timeout_window_location.html +19 -0
- data/spec/watirspec/html/uneven_table.html +20 -0
- data/spec/watirspec/html/wait.html +65 -0
- data/spec/watirspec/html/watirspec.css +0 -0
- data/spec/watirspec/html/window_switching.html +12 -0
- data/spec/watirspec/relaxed_locate_spec.rb +214 -0
- data/spec/watirspec/screenshot_spec.rb +29 -0
- data/spec/watirspec/wait_spec.rb +304 -0
- data/spec/watirspec/window_switching_spec.rb +411 -0
- data/spec/{implementation.rb → watirspec_helper.rb} +13 -13
- data/support/appveyor.cmd +9 -0
- data/support/doctest_helper.rb +5 -1
- data/support/travis.sh +0 -1
- data/watir.gemspec +3 -4
- metadata +323 -30
- data/.gitmodules +0 -3
@@ -1,4 +1,5 @@
|
|
1
|
-
require
|
1
|
+
require 'watirspec'
|
2
|
+
require 'spec_helper'
|
2
3
|
|
3
4
|
class ImplementationConfig
|
4
5
|
def initialize(imp)
|
@@ -18,9 +19,6 @@ class ImplementationConfig
|
|
18
19
|
start_remote_server if remote? && !ENV["REMOTE_SERVER_URL"]
|
19
20
|
set_browser_args
|
20
21
|
set_guard_proc
|
21
|
-
add_html_routes
|
22
|
-
|
23
|
-
WatirSpec.always_use_server = ie? || safari? || phantomjs? || remote?
|
24
22
|
end
|
25
23
|
|
26
24
|
private
|
@@ -39,10 +37,16 @@ class ImplementationConfig
|
|
39
37
|
end
|
40
38
|
|
41
39
|
def remote_server_jar
|
40
|
+
if ENV['LOCAL_SELENIUM']
|
41
|
+
local = File.expand_path('../selenium/buck-out/gen/java/server/src/org/openqa/grid/selenium/selenium.jar')
|
42
|
+
end
|
43
|
+
|
42
44
|
if File.exist?(ENV['REMOTE_SERVER_BINARY'] || '')
|
43
45
|
ENV['REMOTE_SERVER_BINARY']
|
44
|
-
elsif
|
45
|
-
|
46
|
+
elsif ENV['LOCAL_SELENIUM'] && File.exists?(local)
|
47
|
+
local
|
48
|
+
elsif !Dir.glob('*selenium*.jar').empty?
|
49
|
+
Dir.glob('*selenium*.jar').first
|
46
50
|
else
|
47
51
|
Selenium::Server.download :latest
|
48
52
|
end
|
@@ -117,6 +121,8 @@ class ImplementationConfig
|
|
117
121
|
|
118
122
|
matching_guards << matching_browser
|
119
123
|
matching_guards << [matching_browser, Selenium::WebDriver::Platform.os]
|
124
|
+
matching_guards << :relaxed_locate if Watir.relaxed_locate?
|
125
|
+
matching_guards << :not_relaxed_locate unless Watir.relaxed_locate?
|
120
126
|
|
121
127
|
if !Selenium::WebDriver::Platform.linux? || ENV['DESKTOP_SESSION']
|
122
128
|
# some specs (i.e. Window#maximize) needs a window manager on linux
|
@@ -186,13 +192,6 @@ class ImplementationConfig
|
|
186
192
|
{url: url, desired_capabilities: caps}
|
187
193
|
end
|
188
194
|
|
189
|
-
def add_html_routes
|
190
|
-
glob = File.expand_path("../html/*.html", __FILE__)
|
191
|
-
Dir[glob].each do |path|
|
192
|
-
WatirSpec::Server.get("/#{File.basename path}") { File.read(path) }
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
195
|
class SelectorListener < Selenium::WebDriver::Support::AbstractEventListener
|
197
196
|
def initialize
|
198
197
|
@counts = Hash.new(0)
|
@@ -214,3 +213,4 @@ class ImplementationConfig
|
|
214
213
|
end
|
215
214
|
|
216
215
|
ImplementationConfig.new(WatirSpec.implementation).configure
|
216
|
+
WatirSpec.run!
|
@@ -0,0 +1,9 @@
|
|
1
|
+
if "%RAKE_TASK%"=="spec:firefox" (
|
2
|
+
choco install -y curl
|
3
|
+
choco install -y 7zip.commandline
|
4
|
+
curl -L -O --insecure https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-win32.zip
|
5
|
+
7za e geckodriver-v0.11.1-win32.zip
|
6
|
+
move geckodriver.exe C:\Tools\WebDriver
|
7
|
+
|
8
|
+
geckodriver.exe --version
|
9
|
+
)
|
data/support/doctest_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'watir'
|
2
|
-
require '
|
2
|
+
require 'watirspec'
|
3
3
|
|
4
4
|
#
|
5
5
|
# 1. If example does not start browser, start new one, reuse until example
|
@@ -64,6 +64,10 @@ YARD::Doctest.configure do |doctest|
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
doctest.before do
|
68
|
+
WatirSpec.run!
|
69
|
+
end
|
70
|
+
|
67
71
|
doctest.after do
|
68
72
|
browser.quit
|
69
73
|
@browser = nil
|
data/support/travis.sh
CHANGED
data/watir.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'watir'
|
5
|
-
s.version = '6.0.0
|
5
|
+
s.version = '6.0.0'
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Alex Rodionov', 'Titus Fortner']
|
8
8
|
s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com']
|
@@ -21,17 +21,16 @@ It facilitates the writing of automated tests by mimicing the behavior of a user
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
22
|
s.require_paths = ['lib']
|
23
23
|
|
24
|
-
s.add_dependency "selenium-webdriver", "
|
24
|
+
s.add_dependency "selenium-webdriver", "~> 3.0"
|
25
25
|
|
26
26
|
s.add_development_dependency 'rspec', '~> 3.0'
|
27
27
|
s.add_development_dependency 'yard', '> 0.8.2.1'
|
28
28
|
s.add_development_dependency 'webidl', '>= 0.1.5'
|
29
|
-
s.add_development_dependency 'sinatra', '~> 1.0'
|
30
29
|
s.add_development_dependency 'rake', '~> 0.9.2'
|
31
30
|
s.add_development_dependency 'fuubar'
|
32
31
|
s.add_development_dependency 'nokogiri'
|
33
32
|
s.add_development_dependency 'activesupport', '~> 3.0' # for pluralization during code generation
|
34
33
|
s.add_development_dependency 'pry'
|
35
34
|
s.add_development_dependency 'coveralls'
|
36
|
-
s.add_development_dependency 'yard-doctest', '
|
35
|
+
s.add_development_dependency 'yard-doctest', '>= 0.1.8'
|
37
36
|
end
|
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: 6.0.0
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rodionov
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-09
|
12
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 3.0
|
20
|
+
version: '3.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 3.0
|
27
|
+
version: '3.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,20 +67,6 @@ dependencies:
|
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 0.1.5
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: sinatra
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - "~>"
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '1.0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '1.0'
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
71
|
name: rake
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,16 +155,16 @@ dependencies:
|
|
169
155
|
name: yard-doctest
|
170
156
|
requirement: !ruby/object:Gem::Requirement
|
171
157
|
requirements:
|
172
|
-
- - "
|
158
|
+
- - ">="
|
173
159
|
- !ruby/object:Gem::Version
|
174
|
-
version: 0.1.
|
160
|
+
version: 0.1.8
|
175
161
|
type: :development
|
176
162
|
prerelease: false
|
177
163
|
version_requirements: !ruby/object:Gem::Requirement
|
178
164
|
requirements:
|
179
|
-
- - "
|
165
|
+
- - ">="
|
180
166
|
- !ruby/object:Gem::Version
|
181
|
-
version: 0.1.
|
167
|
+
version: 0.1.8
|
182
168
|
description: |
|
183
169
|
Watir stands for Web Application Testing In Ruby
|
184
170
|
It facilitates the writing of automated tests by mimicing the behavior of a user interacting with a website.
|
@@ -191,13 +177,13 @@ extra_rdoc_files: []
|
|
191
177
|
files:
|
192
178
|
- ".document"
|
193
179
|
- ".gitignore"
|
194
|
-
- ".gitmodules"
|
195
180
|
- ".travis.yml"
|
196
181
|
- CHANGES.md
|
197
182
|
- Gemfile
|
198
183
|
- LICENSE
|
199
184
|
- README.md
|
200
185
|
- Rakefile
|
186
|
+
- appveyor.yml
|
201
187
|
- lib/watir-webdriver.rb
|
202
188
|
- lib/watir.rb
|
203
189
|
- lib/watir/after_hooks.rb
|
@@ -261,6 +247,7 @@ files:
|
|
261
247
|
- lib/watir/generator/svg/spec_extractor.rb
|
262
248
|
- lib/watir/generator/svg/visitor.rb
|
263
249
|
- lib/watir/has_window.rb
|
250
|
+
- lib/watir/legacy_wait.rb
|
264
251
|
- lib/watir/locators.rb
|
265
252
|
- lib/watir/locators/button/locator.rb
|
266
253
|
- lib/watir/locators/button/selector_builder.rb
|
@@ -287,16 +274,173 @@ files:
|
|
287
274
|
- lib/watir/wait/timer.rb
|
288
275
|
- lib/watir/window.rb
|
289
276
|
- lib/watir/xpath_support.rb
|
277
|
+
- lib/watirspec.rb
|
278
|
+
- lib/watirspec/guards.rb
|
279
|
+
- lib/watirspec/implementation.rb
|
280
|
+
- lib/watirspec/rake_tasks.rb
|
281
|
+
- lib/watirspec/runner.rb
|
282
|
+
- lib/watirspec/server.rb
|
283
|
+
- lib/watirspec/server/app.rb
|
290
284
|
- spec/browser_spec.rb
|
291
285
|
- spec/click_spec.rb
|
292
286
|
- spec/container_spec.rb
|
293
287
|
- spec/element_locator_spec.rb
|
294
288
|
- spec/element_spec.rb
|
295
|
-
- spec/
|
289
|
+
- spec/implementation_spec.rb
|
296
290
|
- spec/input_spec.rb
|
297
291
|
- spec/locator_spec_helper.rb
|
298
292
|
- spec/spec_helper.rb
|
299
293
|
- spec/special_chars_spec.rb
|
294
|
+
- spec/watirspec/.gitignore
|
295
|
+
- spec/watirspec/after_hooks_spec.rb
|
296
|
+
- spec/watirspec/alert_spec.rb
|
297
|
+
- spec/watirspec/browser_spec.rb
|
298
|
+
- spec/watirspec/cookies_spec.rb
|
299
|
+
- spec/watirspec/drag_and_drop_spec.rb
|
300
|
+
- spec/watirspec/element_hidden_spec.rb
|
301
|
+
- spec/watirspec/elements/area_spec.rb
|
302
|
+
- spec/watirspec/elements/areas_spec.rb
|
303
|
+
- spec/watirspec/elements/button_spec.rb
|
304
|
+
- spec/watirspec/elements/buttons_spec.rb
|
305
|
+
- spec/watirspec/elements/checkbox_spec.rb
|
306
|
+
- spec/watirspec/elements/checkboxes_spec.rb
|
307
|
+
- spec/watirspec/elements/collections_spec.rb
|
308
|
+
- spec/watirspec/elements/dd_spec.rb
|
309
|
+
- spec/watirspec/elements/dds_spec.rb
|
310
|
+
- spec/watirspec/elements/del_spec.rb
|
311
|
+
- spec/watirspec/elements/dels_spec.rb
|
312
|
+
- spec/watirspec/elements/div_spec.rb
|
313
|
+
- spec/watirspec/elements/divs_spec.rb
|
314
|
+
- spec/watirspec/elements/dl_spec.rb
|
315
|
+
- spec/watirspec/elements/dls_spec.rb
|
316
|
+
- spec/watirspec/elements/dt_spec.rb
|
317
|
+
- spec/watirspec/elements/dts_spec.rb
|
318
|
+
- spec/watirspec/elements/element_spec.rb
|
319
|
+
- spec/watirspec/elements/elements_spec.rb
|
320
|
+
- spec/watirspec/elements/em_spec.rb
|
321
|
+
- spec/watirspec/elements/ems_spec.rb
|
322
|
+
- spec/watirspec/elements/filefield_spec.rb
|
323
|
+
- spec/watirspec/elements/filefields_spec.rb
|
324
|
+
- spec/watirspec/elements/font_spec.rb
|
325
|
+
- spec/watirspec/elements/form_spec.rb
|
326
|
+
- spec/watirspec/elements/forms_spec.rb
|
327
|
+
- spec/watirspec/elements/frame_spec.rb
|
328
|
+
- spec/watirspec/elements/frames_spec.rb
|
329
|
+
- spec/watirspec/elements/hidden_spec.rb
|
330
|
+
- spec/watirspec/elements/hiddens_spec.rb
|
331
|
+
- spec/watirspec/elements/hn_spec.rb
|
332
|
+
- spec/watirspec/elements/hns_spec.rb
|
333
|
+
- spec/watirspec/elements/iframe_spec.rb
|
334
|
+
- spec/watirspec/elements/iframes_spec.rb
|
335
|
+
- spec/watirspec/elements/image_spec.rb
|
336
|
+
- spec/watirspec/elements/images_spec.rb
|
337
|
+
- spec/watirspec/elements/ins_spec.rb
|
338
|
+
- spec/watirspec/elements/inses_spec.rb
|
339
|
+
- spec/watirspec/elements/label_spec.rb
|
340
|
+
- spec/watirspec/elements/labels_spec.rb
|
341
|
+
- spec/watirspec/elements/li_spec.rb
|
342
|
+
- spec/watirspec/elements/link_spec.rb
|
343
|
+
- spec/watirspec/elements/links_spec.rb
|
344
|
+
- spec/watirspec/elements/lis_spec.rb
|
345
|
+
- spec/watirspec/elements/map_spec.rb
|
346
|
+
- spec/watirspec/elements/maps_spec.rb
|
347
|
+
- spec/watirspec/elements/meta_spec.rb
|
348
|
+
- spec/watirspec/elements/metas_spec.rb
|
349
|
+
- spec/watirspec/elements/ol_spec.rb
|
350
|
+
- spec/watirspec/elements/ols_spec.rb
|
351
|
+
- spec/watirspec/elements/option_spec.rb
|
352
|
+
- spec/watirspec/elements/p_spec.rb
|
353
|
+
- spec/watirspec/elements/pre_spec.rb
|
354
|
+
- spec/watirspec/elements/pres_spec.rb
|
355
|
+
- spec/watirspec/elements/ps_spec.rb
|
356
|
+
- spec/watirspec/elements/radio_spec.rb
|
357
|
+
- spec/watirspec/elements/radios_spec.rb
|
358
|
+
- spec/watirspec/elements/select_list_spec.rb
|
359
|
+
- spec/watirspec/elements/select_lists_spec.rb
|
360
|
+
- spec/watirspec/elements/span_spec.rb
|
361
|
+
- spec/watirspec/elements/spans_spec.rb
|
362
|
+
- spec/watirspec/elements/strong_spec.rb
|
363
|
+
- spec/watirspec/elements/strongs_spec.rb
|
364
|
+
- spec/watirspec/elements/table_nesting_spec.rb
|
365
|
+
- spec/watirspec/elements/table_spec.rb
|
366
|
+
- spec/watirspec/elements/tables_spec.rb
|
367
|
+
- spec/watirspec/elements/tbody_spec.rb
|
368
|
+
- spec/watirspec/elements/tbodys_spec.rb
|
369
|
+
- spec/watirspec/elements/td_spec.rb
|
370
|
+
- spec/watirspec/elements/tds_spec.rb
|
371
|
+
- spec/watirspec/elements/text_field_spec.rb
|
372
|
+
- spec/watirspec/elements/text_fields_spec.rb
|
373
|
+
- spec/watirspec/elements/textarea_spec.rb
|
374
|
+
- spec/watirspec/elements/textareas_spec.rb
|
375
|
+
- spec/watirspec/elements/tfoot_spec.rb
|
376
|
+
- spec/watirspec/elements/tfoots_spec.rb
|
377
|
+
- spec/watirspec/elements/thead_spec.rb
|
378
|
+
- spec/watirspec/elements/theads_spec.rb
|
379
|
+
- spec/watirspec/elements/tr_spec.rb
|
380
|
+
- spec/watirspec/elements/trs_spec.rb
|
381
|
+
- spec/watirspec/elements/ul_spec.rb
|
382
|
+
- spec/watirspec/elements/uls_spec.rb
|
383
|
+
- spec/watirspec/html/alerts.html
|
384
|
+
- spec/watirspec/html/aria_attributes.html
|
385
|
+
- spec/watirspec/html/class_locator.html
|
386
|
+
- spec/watirspec/html/clicks.html
|
387
|
+
- spec/watirspec/html/closeable.html
|
388
|
+
- spec/watirspec/html/collections.html
|
389
|
+
- spec/watirspec/html/css/jquery-ui-1.8.17.custom.css
|
390
|
+
- spec/watirspec/html/data_attributes.html
|
391
|
+
- spec/watirspec/html/definition_lists.html
|
392
|
+
- spec/watirspec/html/drag_and_drop.html
|
393
|
+
- spec/watirspec/html/font.html
|
394
|
+
- spec/watirspec/html/forms_with_input_elements.html
|
395
|
+
- spec/watirspec/html/frame_1.html
|
396
|
+
- spec/watirspec/html/frame_2.html
|
397
|
+
- spec/watirspec/html/frames.html
|
398
|
+
- spec/watirspec/html/hover.html
|
399
|
+
- spec/watirspec/html/iframe_1.html
|
400
|
+
- spec/watirspec/html/iframes.html
|
401
|
+
- spec/watirspec/html/images.html
|
402
|
+
- spec/watirspec/html/images/1.gif
|
403
|
+
- spec/watirspec/html/images/2.gif
|
404
|
+
- spec/watirspec/html/images/3.gif
|
405
|
+
- spec/watirspec/html/images/button.png
|
406
|
+
- spec/watirspec/html/images/circle.png
|
407
|
+
- spec/watirspec/html/images/map.gif
|
408
|
+
- spec/watirspec/html/images/map2.gif
|
409
|
+
- spec/watirspec/html/images/minus.gif
|
410
|
+
- spec/watirspec/html/images/originaltriangle.png
|
411
|
+
- spec/watirspec/html/images/plus.gif
|
412
|
+
- spec/watirspec/html/images/square.png
|
413
|
+
- spec/watirspec/html/images/triangle.png
|
414
|
+
- spec/watirspec/html/inner_outer.html
|
415
|
+
- spec/watirspec/html/javascript/helpers.js
|
416
|
+
- spec/watirspec/html/javascript/jquery-1.7.1.min.js
|
417
|
+
- spec/watirspec/html/javascript/jquery-ui-1.8.17.custom.min.js
|
418
|
+
- spec/watirspec/html/keylogger.html
|
419
|
+
- spec/watirspec/html/modal_dialog.html
|
420
|
+
- spec/watirspec/html/multiple_ids.html
|
421
|
+
- spec/watirspec/html/nested_frame_1.html
|
422
|
+
- spec/watirspec/html/nested_frame_2.html
|
423
|
+
- spec/watirspec/html/nested_frame_3.html
|
424
|
+
- spec/watirspec/html/nested_frames.html
|
425
|
+
- spec/watirspec/html/nested_iframe_2.html
|
426
|
+
- spec/watirspec/html/nested_iframes.html
|
427
|
+
- spec/watirspec/html/nested_tables.html
|
428
|
+
- spec/watirspec/html/non_control_elements.html
|
429
|
+
- spec/watirspec/html/removed_element.html
|
430
|
+
- spec/watirspec/html/right_click.html
|
431
|
+
- spec/watirspec/html/special_chars.html
|
432
|
+
- spec/watirspec/html/tables.html
|
433
|
+
- spec/watirspec/html/timeout_window_location.html
|
434
|
+
- spec/watirspec/html/uneven_table.html
|
435
|
+
- spec/watirspec/html/wait.html
|
436
|
+
- spec/watirspec/html/watirspec.css
|
437
|
+
- spec/watirspec/html/window_switching.html
|
438
|
+
- spec/watirspec/relaxed_locate_spec.rb
|
439
|
+
- spec/watirspec/screenshot_spec.rb
|
440
|
+
- spec/watirspec/wait_spec.rb
|
441
|
+
- spec/watirspec/window_switching_spec.rb
|
442
|
+
- spec/watirspec_helper.rb
|
443
|
+
- support/appveyor.cmd
|
300
444
|
- support/doctest_helper.rb
|
301
445
|
- support/travis.sh
|
302
446
|
- support/version_differ.rb
|
@@ -316,12 +460,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
316
460
|
version: '0'
|
317
461
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
462
|
requirements:
|
319
|
-
- - "
|
463
|
+
- - ">="
|
320
464
|
- !ruby/object:Gem::Version
|
321
|
-
version:
|
465
|
+
version: '0'
|
322
466
|
requirements: []
|
323
467
|
rubyforge_project: watir
|
324
|
-
rubygems_version: 2.4.
|
468
|
+
rubygems_version: 2.4.8
|
325
469
|
signing_key:
|
326
470
|
specification_version: 4
|
327
471
|
summary: Watir powered by Selenium
|
@@ -331,8 +475,157 @@ test_files:
|
|
331
475
|
- spec/container_spec.rb
|
332
476
|
- spec/element_locator_spec.rb
|
333
477
|
- spec/element_spec.rb
|
334
|
-
- spec/
|
478
|
+
- spec/implementation_spec.rb
|
335
479
|
- spec/input_spec.rb
|
336
480
|
- spec/locator_spec_helper.rb
|
337
481
|
- spec/spec_helper.rb
|
338
482
|
- spec/special_chars_spec.rb
|
483
|
+
- spec/watirspec/.gitignore
|
484
|
+
- spec/watirspec/after_hooks_spec.rb
|
485
|
+
- spec/watirspec/alert_spec.rb
|
486
|
+
- spec/watirspec/browser_spec.rb
|
487
|
+
- spec/watirspec/cookies_spec.rb
|
488
|
+
- spec/watirspec/drag_and_drop_spec.rb
|
489
|
+
- spec/watirspec/element_hidden_spec.rb
|
490
|
+
- spec/watirspec/elements/area_spec.rb
|
491
|
+
- spec/watirspec/elements/areas_spec.rb
|
492
|
+
- spec/watirspec/elements/button_spec.rb
|
493
|
+
- spec/watirspec/elements/buttons_spec.rb
|
494
|
+
- spec/watirspec/elements/checkbox_spec.rb
|
495
|
+
- spec/watirspec/elements/checkboxes_spec.rb
|
496
|
+
- spec/watirspec/elements/collections_spec.rb
|
497
|
+
- spec/watirspec/elements/dd_spec.rb
|
498
|
+
- spec/watirspec/elements/dds_spec.rb
|
499
|
+
- spec/watirspec/elements/del_spec.rb
|
500
|
+
- spec/watirspec/elements/dels_spec.rb
|
501
|
+
- spec/watirspec/elements/div_spec.rb
|
502
|
+
- spec/watirspec/elements/divs_spec.rb
|
503
|
+
- spec/watirspec/elements/dl_spec.rb
|
504
|
+
- spec/watirspec/elements/dls_spec.rb
|
505
|
+
- spec/watirspec/elements/dt_spec.rb
|
506
|
+
- spec/watirspec/elements/dts_spec.rb
|
507
|
+
- spec/watirspec/elements/element_spec.rb
|
508
|
+
- spec/watirspec/elements/elements_spec.rb
|
509
|
+
- spec/watirspec/elements/em_spec.rb
|
510
|
+
- spec/watirspec/elements/ems_spec.rb
|
511
|
+
- spec/watirspec/elements/filefield_spec.rb
|
512
|
+
- spec/watirspec/elements/filefields_spec.rb
|
513
|
+
- spec/watirspec/elements/font_spec.rb
|
514
|
+
- spec/watirspec/elements/form_spec.rb
|
515
|
+
- spec/watirspec/elements/forms_spec.rb
|
516
|
+
- spec/watirspec/elements/frame_spec.rb
|
517
|
+
- spec/watirspec/elements/frames_spec.rb
|
518
|
+
- spec/watirspec/elements/hidden_spec.rb
|
519
|
+
- spec/watirspec/elements/hiddens_spec.rb
|
520
|
+
- spec/watirspec/elements/hn_spec.rb
|
521
|
+
- spec/watirspec/elements/hns_spec.rb
|
522
|
+
- spec/watirspec/elements/iframe_spec.rb
|
523
|
+
- spec/watirspec/elements/iframes_spec.rb
|
524
|
+
- spec/watirspec/elements/image_spec.rb
|
525
|
+
- spec/watirspec/elements/images_spec.rb
|
526
|
+
- spec/watirspec/elements/ins_spec.rb
|
527
|
+
- spec/watirspec/elements/inses_spec.rb
|
528
|
+
- spec/watirspec/elements/label_spec.rb
|
529
|
+
- spec/watirspec/elements/labels_spec.rb
|
530
|
+
- spec/watirspec/elements/li_spec.rb
|
531
|
+
- spec/watirspec/elements/link_spec.rb
|
532
|
+
- spec/watirspec/elements/links_spec.rb
|
533
|
+
- spec/watirspec/elements/lis_spec.rb
|
534
|
+
- spec/watirspec/elements/map_spec.rb
|
535
|
+
- spec/watirspec/elements/maps_spec.rb
|
536
|
+
- spec/watirspec/elements/meta_spec.rb
|
537
|
+
- spec/watirspec/elements/metas_spec.rb
|
538
|
+
- spec/watirspec/elements/ol_spec.rb
|
539
|
+
- spec/watirspec/elements/ols_spec.rb
|
540
|
+
- spec/watirspec/elements/option_spec.rb
|
541
|
+
- spec/watirspec/elements/p_spec.rb
|
542
|
+
- spec/watirspec/elements/pre_spec.rb
|
543
|
+
- spec/watirspec/elements/pres_spec.rb
|
544
|
+
- spec/watirspec/elements/ps_spec.rb
|
545
|
+
- spec/watirspec/elements/radio_spec.rb
|
546
|
+
- spec/watirspec/elements/radios_spec.rb
|
547
|
+
- spec/watirspec/elements/select_list_spec.rb
|
548
|
+
- spec/watirspec/elements/select_lists_spec.rb
|
549
|
+
- spec/watirspec/elements/span_spec.rb
|
550
|
+
- spec/watirspec/elements/spans_spec.rb
|
551
|
+
- spec/watirspec/elements/strong_spec.rb
|
552
|
+
- spec/watirspec/elements/strongs_spec.rb
|
553
|
+
- spec/watirspec/elements/table_nesting_spec.rb
|
554
|
+
- spec/watirspec/elements/table_spec.rb
|
555
|
+
- spec/watirspec/elements/tables_spec.rb
|
556
|
+
- spec/watirspec/elements/tbody_spec.rb
|
557
|
+
- spec/watirspec/elements/tbodys_spec.rb
|
558
|
+
- spec/watirspec/elements/td_spec.rb
|
559
|
+
- spec/watirspec/elements/tds_spec.rb
|
560
|
+
- spec/watirspec/elements/text_field_spec.rb
|
561
|
+
- spec/watirspec/elements/text_fields_spec.rb
|
562
|
+
- spec/watirspec/elements/textarea_spec.rb
|
563
|
+
- spec/watirspec/elements/textareas_spec.rb
|
564
|
+
- spec/watirspec/elements/tfoot_spec.rb
|
565
|
+
- spec/watirspec/elements/tfoots_spec.rb
|
566
|
+
- spec/watirspec/elements/thead_spec.rb
|
567
|
+
- spec/watirspec/elements/theads_spec.rb
|
568
|
+
- spec/watirspec/elements/tr_spec.rb
|
569
|
+
- spec/watirspec/elements/trs_spec.rb
|
570
|
+
- spec/watirspec/elements/ul_spec.rb
|
571
|
+
- spec/watirspec/elements/uls_spec.rb
|
572
|
+
- spec/watirspec/html/alerts.html
|
573
|
+
- spec/watirspec/html/aria_attributes.html
|
574
|
+
- spec/watirspec/html/class_locator.html
|
575
|
+
- spec/watirspec/html/clicks.html
|
576
|
+
- spec/watirspec/html/closeable.html
|
577
|
+
- spec/watirspec/html/collections.html
|
578
|
+
- spec/watirspec/html/css/jquery-ui-1.8.17.custom.css
|
579
|
+
- spec/watirspec/html/data_attributes.html
|
580
|
+
- spec/watirspec/html/definition_lists.html
|
581
|
+
- spec/watirspec/html/drag_and_drop.html
|
582
|
+
- spec/watirspec/html/font.html
|
583
|
+
- spec/watirspec/html/forms_with_input_elements.html
|
584
|
+
- spec/watirspec/html/frame_1.html
|
585
|
+
- spec/watirspec/html/frame_2.html
|
586
|
+
- spec/watirspec/html/frames.html
|
587
|
+
- spec/watirspec/html/hover.html
|
588
|
+
- spec/watirspec/html/iframe_1.html
|
589
|
+
- spec/watirspec/html/iframes.html
|
590
|
+
- spec/watirspec/html/images.html
|
591
|
+
- spec/watirspec/html/images/1.gif
|
592
|
+
- spec/watirspec/html/images/2.gif
|
593
|
+
- spec/watirspec/html/images/3.gif
|
594
|
+
- spec/watirspec/html/images/button.png
|
595
|
+
- spec/watirspec/html/images/circle.png
|
596
|
+
- spec/watirspec/html/images/map.gif
|
597
|
+
- spec/watirspec/html/images/map2.gif
|
598
|
+
- spec/watirspec/html/images/minus.gif
|
599
|
+
- spec/watirspec/html/images/originaltriangle.png
|
600
|
+
- spec/watirspec/html/images/plus.gif
|
601
|
+
- spec/watirspec/html/images/square.png
|
602
|
+
- spec/watirspec/html/images/triangle.png
|
603
|
+
- spec/watirspec/html/inner_outer.html
|
604
|
+
- spec/watirspec/html/javascript/helpers.js
|
605
|
+
- spec/watirspec/html/javascript/jquery-1.7.1.min.js
|
606
|
+
- spec/watirspec/html/javascript/jquery-ui-1.8.17.custom.min.js
|
607
|
+
- spec/watirspec/html/keylogger.html
|
608
|
+
- spec/watirspec/html/modal_dialog.html
|
609
|
+
- spec/watirspec/html/multiple_ids.html
|
610
|
+
- spec/watirspec/html/nested_frame_1.html
|
611
|
+
- spec/watirspec/html/nested_frame_2.html
|
612
|
+
- spec/watirspec/html/nested_frame_3.html
|
613
|
+
- spec/watirspec/html/nested_frames.html
|
614
|
+
- spec/watirspec/html/nested_iframe_2.html
|
615
|
+
- spec/watirspec/html/nested_iframes.html
|
616
|
+
- spec/watirspec/html/nested_tables.html
|
617
|
+
- spec/watirspec/html/non_control_elements.html
|
618
|
+
- spec/watirspec/html/removed_element.html
|
619
|
+
- spec/watirspec/html/right_click.html
|
620
|
+
- spec/watirspec/html/special_chars.html
|
621
|
+
- spec/watirspec/html/tables.html
|
622
|
+
- spec/watirspec/html/timeout_window_location.html
|
623
|
+
- spec/watirspec/html/uneven_table.html
|
624
|
+
- spec/watirspec/html/wait.html
|
625
|
+
- spec/watirspec/html/watirspec.css
|
626
|
+
- spec/watirspec/html/window_switching.html
|
627
|
+
- spec/watirspec/relaxed_locate_spec.rb
|
628
|
+
- spec/watirspec/screenshot_spec.rb
|
629
|
+
- spec/watirspec/wait_spec.rb
|
630
|
+
- spec/watirspec/window_switching_spec.rb
|
631
|
+
- spec/watirspec_helper.rb
|