watir 1.6.5 → 1.6.6.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +461 -326
- data/VERSION +1 -0
- data/bin/watir-console +6 -6
- data/lib/changes.rb +3 -3
- data/lib/license.rb +38 -38
- data/lib/readme.rb +140 -140
- data/lib/watir/WindowHelper.rb +49 -49
- data/lib/watir/camel_case.rb +66 -66
- data/lib/watir/clickJSDialog.rb +19 -19
- data/lib/watir/close_all.rb +37 -37
- data/lib/watir/collections.rb +392 -344
- data/lib/watir/container.rb +857 -815
- data/lib/watir/contrib/enabled_popup.rb +20 -20
- data/lib/watir/contrib/ie-new-process.rb +27 -27
- data/lib/watir/contrib/page_checker.rb +29 -29
- data/lib/watir/cookiemanager.rb +55 -55
- data/lib/watir/core.rb +28 -0
- data/lib/watir/core_ext.rb +17 -17
- data/lib/watir/datahandler.rb +107 -107
- data/lib/watir/dialog.rb +46 -46
- data/lib/watir/element.rb +351 -343
- data/lib/watir/element_collections.rb +97 -97
- data/lib/watir/form.rb +170 -170
- data/lib/watir/frame.rb +59 -59
- data/lib/watir/html_element.rb +22 -0
- data/lib/watir/ie-class.rb +1006 -1009
- data/lib/watir/ie-process.rb +39 -39
- data/lib/watir/ie.rb +70 -133
- data/lib/watir/image.rb +130 -130
- data/lib/watir/input_elements.rb +614 -572
- data/lib/watir/irb-history.rb +30 -30
- data/lib/watir/link.rb +64 -64
- data/lib/watir/locator.rb +200 -176
- data/lib/watir/logger.rb +19 -19
- data/lib/watir/modal_dialog.rb +122 -122
- data/lib/watir/module.rb +37 -0
- data/lib/watir/non_control_elements.rb +145 -145
- data/lib/watir/page-container.rb +116 -107
- data/lib/watir/popup.rb +29 -29
- data/lib/watir/process.rb +19 -19
- data/lib/watir/screen_capture.rb +115 -115
- data/lib/watir/setFileDialog.rb +16 -16
- data/lib/watir/table.rb +395 -362
- data/lib/watir/watir_simple.rb +475 -475
- data/lib/watir/win32.rb +35 -35
- data/lib/watir/win32ole.rb +14 -14
- data/lib/watir/winClicker.rb +496 -496
- data/rakefile.rb +70 -0
- data/unittests/all_tests.rb +10 -10
- data/unittests/buttons_xpath_test.rb +69 -69
- data/unittests/checkbox_test.rb +179 -179
- data/unittests/checkbox_xpath_test.rb +107 -107
- data/unittests/click_no_wait_test.rb +21 -0
- data/unittests/core_tests.rb +17 -17
- data/unittests/css_test.rb +42 -35
- data/unittests/defer_test.rb +46 -46
- data/unittests/dialog_test.rb +77 -77
- data/unittests/div2_xpath_test.rb +21 -21
- data/unittests/div_test.rb +188 -188
- data/unittests/div_xpath_test.rb +96 -96
- data/unittests/element_test.rb +49 -0
- data/unittests/errorchecker_test.rb +32 -22
- data/unittests/filefield_test.rb +39 -39
- data/unittests/filefield_xpath_test.rb +33 -33
- data/unittests/form_test.rb +280 -280
- data/unittests/form_xpath_test.rb +252 -252
- data/unittests/frame_test.rb +155 -155
- data/unittests/google_form_test.rb +15 -15
- data/unittests/html/JavascriptClick.html +39 -39
- data/unittests/html/blankpage.html +11 -11
- data/unittests/html/buttons1.html +40 -40
- data/unittests/html/checkboxes1.html +89 -89
- data/unittests/html/click_no_wait.html +14 -0
- data/unittests/html/complex_table.html +36 -36
- data/unittests/html/cssTest.html +42 -42
- data/unittests/html/depot_store.html +59 -59
- data/unittests/html/div.html +93 -93
- data/unittests/html/div_xml.html +20 -20
- data/unittests/html/fileupload.html +45 -45
- data/unittests/html/formTest1.html +38 -38
- data/unittests/html/forms2.html +44 -44
- data/unittests/html/forms3.html +131 -131
- data/unittests/html/forms4.html +27 -27
- data/unittests/html/frame_buttons.html +3 -3
- data/unittests/html/frame_links.html +3 -3
- data/unittests/html/frame_multi.html +4 -4
- data/unittests/html/google_india.html +119 -119
- data/unittests/html/iframeTest.html +12 -12
- data/unittests/html/iframeTest1.html +6 -6
- data/unittests/html/iframeTest2.html +5 -5
- data/unittests/html/images1.html +66 -66
- data/unittests/html/javascriptevents.html +35 -35
- data/unittests/html/link_pass.html +10 -10
- data/unittests/html/links1.html +38 -38
- data/unittests/html/links2.html +10 -10
- data/unittests/html/links_multi.html +14 -14
- data/unittests/html/list_matters.html +720 -720
- data/unittests/html/lists.html +17 -17
- data/unittests/html/map_test.html +31 -31
- data/unittests/html/modal_dialog.html +10 -10
- data/unittests/html/modal_dialog_launcher.html +11 -11
- data/unittests/html/nestedFrames.html +6 -6
- data/unittests/html/new_browser.html +16 -16
- data/unittests/html/pass.html +12 -12
- data/unittests/html/popups1.html +59 -59
- data/unittests/html/pre.html +27 -27
- data/unittests/html/radioButtons1.html +71 -71
- data/unittests/html/select_tealeaf.html +54 -54
- data/unittests/html/selectboxes1.html +52 -52
- data/unittests/html/simple_table.html +26 -26
- data/unittests/html/simple_table_buttons.html +104 -104
- data/unittests/html/simple_table_columns.html +76 -76
- data/unittests/html/table1.html +181 -181
- data/unittests/html/tableCell_using_xpath.html +19 -19
- data/unittests/html/table_and_tablerow_to_a.html +174 -0
- data/unittests/html/textarea.html +30 -30
- data/unittests/html/textfields1.html +88 -88
- data/unittests/html/textsearch.html +44 -44
- data/unittests/html/wallofcheckboxes.html +1003 -1003
- data/unittests/html/xpath_nbsp.html +12 -12
- data/unittests/ie_exists_test.rb +33 -33
- data/unittests/ie_mock.rb +94 -94
- data/unittests/ie_test.rb +51 -51
- data/unittests/images_test.rb +157 -157
- data/unittests/images_xpath_test.rb +91 -91
- data/unittests/links_multi_test.rb +48 -48
- data/unittests/links_test.rb +175 -175
- data/unittests/links_xpath_test.rb +39 -39
- data/unittests/lists_test.rb +32 -32
- data/unittests/map_test.rb +98 -98
- data/unittests/minmax_test.rb +31 -31
- data/unittests/navigate_test.rb +39 -39
- data/unittests/nbsp_xpath_test.rb +16 -16
- data/unittests/non_core_tests.rb +12 -12
- data/unittests/other/WindowLogonExample.rb +27 -27
- data/unittests/other/WindowLogonExtra.rb +6 -6
- data/unittests/other/all_tests_concurrent.rb +57 -57
- data/unittests/other/jscriptExtraAlert.rb +6 -6
- data/unittests/other/jscriptExtraConfirmCancel.rb +6 -6
- data/unittests/other/jscriptExtraConfirmOk.rb +6 -6
- data/unittests/other/jscriptPushButton.rb +6 -6
- data/unittests/other/jscript_test.rb +63 -63
- data/unittests/other/navigate_exception_test.rb +24 -24
- data/unittests/other/rexml_unit_test.rb +27 -27
- data/unittests/other/screen_capture_test.rb +54 -54
- data/unittests/other/testcase_method_order_test.rb +35 -35
- data/unittests/other/testcase_verify_test.rb +24 -24
- data/unittests/other/wait_until_test.rb +99 -99
- data/unittests/pagecontainstext_test.rb +69 -69
- data/unittests/parent_child_test.rb +43 -43
- data/unittests/perf_test.rb +20 -20
- data/unittests/popups_test.rb +43 -43
- data/unittests/pre_test.rb +53 -53
- data/unittests/radios_test.rb +212 -212
- data/unittests/radios_xpath_test.rb +101 -101
- data/unittests/security_setting_test.rb +23 -23
- data/unittests/selectbox_test.rb +148 -148
- data/unittests/selectbox_xpath_test.rb +113 -113
- data/unittests/setup.rb +87 -77
- data/unittests/speed_settings_test.rb +67 -67
- data/unittests/table_and_tablerow_to_a_test.rb +117 -0
- data/unittests/table_cell_using_xpath_test.rb +35 -35
- data/unittests/table_test.rb +376 -376
- data/unittests/table_xpath_test.rb +110 -110
- data/unittests/test_tests.rb +9 -9
- data/unittests/textarea_test.rb +92 -92
- data/unittests/textarea_xpath_test.rb +78 -78
- data/unittests/textfield_for_ch_char_test.rb +31 -31
- data/unittests/textfields_test.rb +218 -218
- data/unittests/textfields_xpath_test.rb +111 -111
- data/unittests/window_tests.rb +10 -10
- data/unittests/windows/attach_to_existing_window_test.rb +53 -53
- data/unittests/windows/attach_to_new_window_test.rb +83 -83
- data/unittests/windows/close_window_test.rb +20 -20
- data/unittests/windows/frame_links_test.rb +25 -25
- data/unittests/windows/ie-each_test.rb +47 -47
- data/unittests/windows/iedialog_test.rb +54 -54
- data/unittests/windows/js_events_test.rb +42 -55
- data/unittests/windows/modal_dialog_test.rb +128 -128
- data/unittests/windows/new_test.rb +57 -57
- data/unittests/windows/open_close_test.rb +18 -18
- data/unittests/windows/send_keys_test.rb +33 -33
- data/unittests/xpath_tests.rb +10 -10
- metadata +85 -31
- data/lib/watir/utils.rb +0 -20
- data/lib/watir/version.rb +0 -5
data/CHANGES
CHANGED
@@ -1,326 +1,461 @@
|
|
1
|
-
== Version 1.6.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
*
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
*
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
to
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
* FireWatir now
|
73
|
-
*
|
74
|
-
* Added
|
75
|
-
*
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
*
|
80
|
-
|
81
|
-
*
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
*
|
86
|
-
|
87
|
-
*
|
88
|
-
*
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
*
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
http://
|
105
|
-
*
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
*
|
110
|
-
|
111
|
-
*
|
112
|
-
*
|
113
|
-
*
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
*
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
*
|
130
|
-
|
131
|
-
*
|
132
|
-
*
|
133
|
-
|
134
|
-
*
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
*
|
207
|
-
|
208
|
-
*
|
209
|
-
*
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
1
|
+
== Version 1.6.6 - 2010/09/XX
|
2
|
+
|
3
|
+
=== IE improvements
|
4
|
+
|
5
|
+
* #elements_by_xpath uses now Nokogiri's xpath method instead of search (Matt Baker)
|
6
|
+
* Element#style returns now currentStyle. Closes http://jira.openqa.org/browse/WTR-444 (Jarmo Pertman)
|
7
|
+
* Element#visible? doesn't return false anymore for disabled elements (Charley Baker)
|
8
|
+
* TH elements texts are included into Table#to_a results. Closes http://jira.openqa.org/browse/WTR-445 (Jarmo Pertman)
|
9
|
+
* Added TableRow#to_a method which returns an array of the texts of the cells for the table row. Closes http://jira.openqa.org/browse/WTR-445 (Jarmo Pertman)
|
10
|
+
* Added an optional numeric parameter max_depth for Table#to_a and TableRow#to_a for getting text values for nested tables. Closes http://jira.openqa.org/browse/WTR-445 (Jarmo Pertman)
|
11
|
+
* #close will close the browser even if #wait raises an Exception. Closes http://jira.openqa.org/browse/WTR-443 (Jarmo Pertman)
|
12
|
+
* Added #element and #elements methods for locating non-specific elements. Closes http://jira.openqa.org/browse/WTR-103 (Hugh McGowan)
|
13
|
+
* #click_no_wait fixes and improvements. Closes http://jira.openqa.org/browse/WTR-449 (Jarmo Pertman)
|
14
|
+
* #wait will raise a Timeout::Error if page hasn't been loaded within 5 minutes. Closes http://jira.openqa.org/browse/WTR-452 (Bret)
|
15
|
+
* Fixed a problem when #wait blocked forever. Closes http://jira.openqa.org/browse/WTR-446 (Jarmo Pertman)
|
16
|
+
|
17
|
+
=== Firefox improvements
|
18
|
+
|
19
|
+
* Added close_all method to firefox. Closes http://jira.openqa.org/browse/WTR-222 (Angrez)
|
20
|
+
* Fixed status method for firefox. (Angrez)
|
21
|
+
* Fixed url method for firefox. Closes http://jira.openqa.org/browse/WTR-428 (Alister Scott)
|
22
|
+
* Added JRuby support (Ian Dees)
|
23
|
+
* Forcing to use ActiveSupport 2.3.9 due to incompatibilities with newer versions (Jarmo Pertman)
|
24
|
+
|
25
|
+
=== Cleanup & Maintenance
|
26
|
+
|
27
|
+
* Some rdoc cleanup (marekj)
|
28
|
+
* Removed Watir::Utils (Jarmo Pertman)
|
29
|
+
|
30
|
+
== Version 1.6.5
|
31
|
+
|
32
|
+
Charley Baker was release manager for this release of Watir.
|
33
|
+
|
34
|
+
=== New Features (Both IE and Firefox)
|
35
|
+
|
36
|
+
* Browser.attach is now available.
|
37
|
+
* Browser.options and Browser.set_options are now available.
|
38
|
+
* Add support for definition lists, this adds these methods:
|
39
|
+
dd, dt, dl, dds, dts, dls. (Jarib)
|
40
|
+
* Added support for "visible?" method to both IE and Firefox. Closes
|
41
|
+
http://jira.openqa.org/browse/WTR-262 (Tony)
|
42
|
+
* Hidden#visible? should always return false. (Jarib)
|
43
|
+
* New method execute_script.
|
44
|
+
* Add ElementCollections#size as alias of length. (Jarib)
|
45
|
+
* Some camelCase => snake_case renames (with aliasing). (Jarib)
|
46
|
+
Image#fileCreatedDate => file_created_date
|
47
|
+
Image#fileSize => file_size
|
48
|
+
Image#hasLoaded? => loaded?
|
49
|
+
SelectList#getAllContents => options
|
50
|
+
SelectList#getSelectedItems => selected_options
|
51
|
+
SelectList#clearSelection => clear
|
52
|
+
SelectList#includes? => include?
|
53
|
+
TextField#dragContentsTo => drag_contents_to
|
54
|
+
Radio/Checkbox#isSet? => set?
|
55
|
+
* Patch for winclicker fix. http://jira.openqa.org/browse/WTR-279 (Derek Berner)
|
56
|
+
* Add support for using a Regexp as the third argument (value) when locating
|
57
|
+
checkboxes/radio buttons. (Jarib)
|
58
|
+
* Add support for <strong> element. (Jarib)
|
59
|
+
* Add support and tests for <em> element. (Jarib)
|
60
|
+
* SelectList#select now supports Numeric arguments. (Jarib)
|
61
|
+
* Additional inspect implementations for both IE and FF.
|
62
|
+
Closes http://jira.openqa.org/browse/WTR-158 (Jarib)
|
63
|
+
* Add ElementCollections#{first,last}. (Jarib)
|
64
|
+
* Fixes for running on Ruby 1.9. (Jarib)
|
65
|
+
|
66
|
+
=== Firefox Improvements
|
67
|
+
|
68
|
+
* SelectList#set is now defined for Firefox. Like with IE, it is an alias for
|
69
|
+
SelectList#select. Closes http://jira.openqa.org/browse/WTR-271 (Bret)
|
70
|
+
* Element collections are now enumerable. This allows methods such as @select@
|
71
|
+
and @map@ to be used with methods such as @divs@ and @links@.
|
72
|
+
* FireWatir.attach is now available, analogous to IE.attach. Includes http://jira.openqa.org/browse/WTR-296
|
73
|
+
* Some Javascript errors that were being ignored, now raise Ruby exceptions.
|
74
|
+
* Added event handler which resets the context of document
|
75
|
+
* Fix bug that occurred when new page was automatically loaded. (Angrez, 3ef8b6)
|
76
|
+
when page gets loaded automatically (Angrez)
|
77
|
+
* Changed code to use document_var, body_var, window_var, browser_var instead of
|
78
|
+
"document", "body", "window", "browser" variables. (Angrez)
|
79
|
+
* Changed code to replace every quote (") in xpath query with (\") so that it
|
80
|
+
doesn't give error while executing the xpath query (Angrez)
|
81
|
+
* Fire onchange event for FireWatir file fields. Closes http://jira.openqa.org/browse/WTR-286. (Jarib)
|
82
|
+
* Fixes for running and closing Firefox on Mac OS X http://jira.openqa.org/browse/WTR-272 (Jarib)
|
83
|
+
* Added functionality to allow Watir::Browser.attach with no arguments to open
|
84
|
+
a new firefox window rather than taking over the existing focused window (Rob Aldred)
|
85
|
+
* Also modified some setup functions to correctly handle closed browsers,
|
86
|
+
browserless windows and others (Rob Aldred)
|
87
|
+
* Add test and implementation for Firefox#status http://jira.openqa.org/browse/WTR-250 (Jarib)
|
88
|
+
* 2 problems fixed with .click (jubishop)
|
89
|
+
a) When chaining together element calls the @container becomes an
|
90
|
+
HTMLElement, but there's no container_var defined for HTMLElement
|
91
|
+
b) When an <a tag has no href then element_type was returning nil.
|
92
|
+
* Fix bug in Firefox#document. Change creating error class by eval in jssh
|
93
|
+
socket to creating class with ruby. (Ethan)
|
94
|
+
* Add support for Browser#frames. (Ethan)
|
95
|
+
* Make the version dependencies for Watir and FireWatir be the same. (This change
|
96
|
+
will also be backported to 1.6.3.) (Bret)
|
97
|
+
|
98
|
+
=== IE Improvements
|
99
|
+
|
100
|
+
* Allow attach timeout to be accessed as an option. Thus:
|
101
|
+
IE.set_options :attach_timeout => 5.0
|
102
|
+
This was previously available as class method.
|
103
|
+
* Fix for Autoit auto-registration. (Bret)
|
104
|
+
* Fixes http://jira.openqa.org/browse/WTR-290, http://jira.openqa.org/browse/WTR-308, http://jira.openqa.org/browse/WTR-298
|
105
|
+
* Fix for IE6, 7 and 8 file uploads. (Zeljko Filipin & Jarmo Pertman)
|
106
|
+
* Replaced REXML with Nokogiri for xml parsing. Fixes http://jira.openqa.org/browse/WTR-19 (Aidy Lewis)
|
107
|
+
* Option now supports :label attribute http://jira.openqa.org/browse/WTR-297
|
108
|
+
* Patch for IE.close causing WIN32OLE errors http://jira.openqa.org/browse/WTR-304 (Tony)
|
109
|
+
* Watir::IE.inspect issue fixed: http://jira.openqa.org/browse/WTR-180 (Jarib)
|
110
|
+
* Fix for Browser#execute_script on IE7. (Jarib)
|
111
|
+
* Removed ActiveSupport dependency. (Jarib)
|
112
|
+
* Fix Browser#status so it works even when the status bar is not visible. (Bret)
|
113
|
+
* Fix bug when using "each" with nested tables.
|
114
|
+
http://jira.openqa.org/browse/WTR-324 (Alan Baird)
|
115
|
+
* Now uses UTF-8 codepage by default http://jira.openqa.org/browse/WTR-219 (Jarib)
|
116
|
+
|
117
|
+
=== Structure Improvements
|
118
|
+
|
119
|
+
* Lots of rework of the FireWatir code, including removing duplication and
|
120
|
+
dead code, renaming variables, and simplifying code. Also a few performance
|
121
|
+
improvements. (Bret & Charley)
|
122
|
+
* Rename source file names for consistency.
|
123
|
+
|
124
|
+
=== Unit Tests
|
125
|
+
|
126
|
+
* Add tests demonstrating known bugs.
|
127
|
+
* Make the "window" tests run more reliably. (Bret)
|
128
|
+
* Relocate unreliable tests. (Bret)
|
129
|
+
* Tag tests that are known to fail on IE or Firefox.
|
130
|
+
* Fixed one test that was failing on non-English platforms. (Jarib)
|
131
|
+
* New Rake task (:test) runs all tests. (Jim Matthews)
|
132
|
+
* Use ci_reporter to provide more detailed test results for watirbuild.com.
|
133
|
+
Use xls transform to format results. (Jim Matthews)
|
134
|
+
* Add WatirSpec submodule + load it in Rakefile if available. (Jarib)
|
135
|
+
|
136
|
+
== Version 1.6.2
|
137
|
+
|
138
|
+
* Changed the method of setting Watir::Browser.default when the user does not
|
139
|
+
specify a browser option. This fixes the problem where it would be 'ie' on
|
140
|
+
Mac.
|
141
|
+
|
142
|
+
* Fixed FireWatir's "text" method to return the same character's as Watir's
|
143
|
+
method. It had been returning extra spaces and other characters.
|
144
|
+
Fix included contribution from Tony. Closes #266
|
145
|
+
|
146
|
+
* Fixed "activesupport" error. Users no longer need to have the latest version
|
147
|
+
installed.
|
148
|
+
|
149
|
+
== Version 1.6.1
|
150
|
+
|
151
|
+
* Fixed install/load errors reported by Marek J and Tony.
|
152
|
+
|
153
|
+
== Version 1.6.0
|
154
|
+
|
155
|
+
This release merges the Watir and FireWatir projects. It contains many
|
156
|
+
compatibility fixes,
|
157
|
+
as well as a new browser-independent interface your tests can use to allow you
|
158
|
+
to specify the browser at run time.
|
159
|
+
|
160
|
+
We have also updated our existing support for modal dialogs so that it now works
|
161
|
+
with Ruby 1.8.6. Users who have been using Ruby 1.8.2 because of this will now
|
162
|
+
need to upgrade to Ruby 1.8.6.
|
163
|
+
|
164
|
+
This release also contains many other fixes. Details below.
|
165
|
+
|
166
|
+
Watir and FireWatir are still distributed as separate gems. Installing the
|
167
|
+
Watir gem will automatically install FireWatir. Both gems now use common code
|
168
|
+
contained in the "commonwatir" gem.
|
169
|
+
|
170
|
+
This release is fully backwards compatible with previous versions of Watir and
|
171
|
+
FireWatir. Your existing scripts should continue to run without change.
|
172
|
+
|
173
|
+
=== Installation
|
174
|
+
|
175
|
+
To install both Watir and FireWatir:
|
176
|
+
|
177
|
+
gem update --system
|
178
|
+
gem install watir
|
179
|
+
|
180
|
+
To only install FireWatir (e.g. on Mac or Linux)
|
181
|
+
|
182
|
+
gem update --system
|
183
|
+
gem install firewatir
|
184
|
+
|
185
|
+
To enable Firefox to work with Watir, you will also need to install the
|
186
|
+
JSSH plugin. See this page for details.
|
187
|
+
http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-3%29InstalltheJSSHFirefoxExtension
|
188
|
+
|
189
|
+
=== New Features
|
190
|
+
You can now replace references to Watir::IE.new (or FireWatir::Firefox.new)
|
191
|
+
with Watir::Browser.new to allow you to
|
192
|
+
specify which browser to run your tests against at run time. Details:
|
193
|
+
http://wiki.openqa.org/display/WTR/Browser.new
|
194
|
+
|
195
|
+
It takes two lines of code to allow Browser.new to support an additional Watir
|
196
|
+
implementation. The two lines necessary for SafariWatir (on Mac) are provided.
|
197
|
+
(See commonwatir/lib/watir/browsers.rb).
|
198
|
+
|
199
|
+
In addition to 'browser', options supported by Browser.new (on IE only right now)
|
200
|
+
are 'speed' and 'visible'.
|
201
|
+
|
202
|
+
Unit tests no longer run from the gems. You will need to get the source if you
|
203
|
+
want to run the unit tests.
|
204
|
+
|
205
|
+
=== Compatibility Fixes
|
206
|
+
* FireWatir now raises Watir exceptions.
|
207
|
+
* FireWatir now supports multiple attributes for most page elements.
|
208
|
+
* Watir now supports multiple attributes for most page elements.
|
209
|
+
* Added support to FireWatir for many more element types.
|
210
|
+
* Added Radio#checked? and Checkbox#checked? methods to FireWatir.
|
211
|
+
* Now firefox.radio().set will click a radio button (as does IE) even if it
|
212
|
+
is already set. This is important if there is javascript attached to the
|
213
|
+
radio button.
|
214
|
+
* TextField#set now respects the maxlength of the field. Previously, FireWatir
|
215
|
+
could overrun the limit. FireWatir::TextField.maxlength now works correctly.
|
216
|
+
* Watir::SelectList#includes? and #selected now accept regexp arguments.
|
217
|
+
This functionality is still missing from FireWatir, but it is in Celerity.
|
218
|
+
From Jari Bakken. Fixes #261.
|
219
|
+
* FireWatir::Element#disabled is fixed.
|
220
|
+
* Added method Watir::Table#row_count_excluding_nested_tables. This works like
|
221
|
+
FireWatir::Table#row_count.
|
222
|
+
* Watir#wait_until is now available to FireWatir.
|
223
|
+
* Fixed versioning. With FireWatir 1.2.1, FireWatir::Firefox::VERSION
|
224
|
+
actually reported '1.1.1.'.
|
225
|
+
* FireWatir will now automatically starts Firefox on Mac (as it did previously
|
226
|
+
on Windows and Linux).
|
227
|
+
|
228
|
+
=== IE Fixes
|
229
|
+
* Fix for: form field named "submit" causes "submit" method to not work.
|
230
|
+
Closes #223.
|
231
|
+
* Calling ie.radio().set now scrolls the page to the control, as with other
|
232
|
+
controls. Thanks to Jonathan Kohl for the fix. Closes #172.
|
233
|
+
* Fixed ie.speed, which was returning ":fast" when speed was actually ":zippy".
|
234
|
+
* Fix for visible? method not being inherited correctly. From Alan Baird.
|
235
|
+
Closes #253
|
236
|
+
* Added ie.forms method. Thanks to Jarmo P.
|
237
|
+
* Fix for "undefined method 'document'" error that was occuring when loading
|
238
|
+
pages with frames that were slow to load. Reported here:
|
239
|
+
http://groups.google.com/group/watir-general/browse_thread/thread/ddde6251e30588c9
|
240
|
+
* Fixed accessing checkboxes and radio buttons using :ole_object on IE.
|
241
|
+
Closes #217.
|
242
|
+
|
243
|
+
=== Unit Test Improvements
|
244
|
+
* Unit tests no longer can be run from a gem install. Rather, you need to run them
|
245
|
+
from a complete source tree.
|
246
|
+
* New rake targets for Watir: test and cruise, each of which runs the core tests.
|
247
|
+
* Numerous fixes and cleanup to the unit test suite.
|
248
|
+
* The unit tests both both Watir and FireWatir now use the new Browser.new
|
249
|
+
interface and can be run
|
250
|
+
against either implementation (Watir::IE or FireWatir::Firefox or others for
|
251
|
+
that matter). See this page for details.
|
252
|
+
http://wiki.openqa.org/display/WTR/Running+Unit+Tests+in+Development
|
253
|
+
* Added tagging to unit tests. Tests which have known failures are now tagged
|
254
|
+
as ":fails_on_ie" or ":fails_on_firefox".
|
255
|
+
* Added coverage modes for running unit tests. These are documented on the wiki
|
256
|
+
page cited above.
|
257
|
+
* Updated tests that were still using obsolete Watir 1.0 interfaces.
|
258
|
+
* Started merging the Watir test suites into commonwatir.
|
259
|
+
* General test clean up.
|
260
|
+
* Test failures due to not setting IE security settings will now issue
|
261
|
+
helpful error message telling you how to fix your IE security settings.
|
262
|
+
|
263
|
+
=== Structural Changes
|
264
|
+
* Moved library files into "lib" directories. Now Watir is like all the other
|
265
|
+
Ruby projects.
|
266
|
+
* Moved FireWatir classes into the FireWatir module.
|
267
|
+
* Removed examples. They are now on the wiki.
|
268
|
+
* Simplified code by removing duplication and unused code.
|
269
|
+
* The watir-console now works from the development tree.
|
270
|
+
* Renamed IE.defaults to IE.options and IE.defaults= to IE.set_options.
|
271
|
+
* Added top-level "rake gems" target. Only works on windows right now.
|
272
|
+
|
273
|
+
|
274
|
+
== Watir 1.5.6
|
275
|
+
|
276
|
+
To install this:
|
277
|
+
|
278
|
+
"gem update --system"
|
279
|
+
"gem install watir"
|
280
|
+
|
281
|
+
Installer Fix
|
282
|
+
|
283
|
+
This update fixes an installer problem in Watir 1.5.5 that affected some users.
|
284
|
+
If you installed 1.5.5 without error, there is no reason to get this update.
|
285
|
+
|
286
|
+
== Watir 1.5.5.
|
287
|
+
|
288
|
+
New Features
|
289
|
+
|
290
|
+
* Multiple attributes can now be specified for these elements:
|
291
|
+
li, ul, map, area, h1, h2, h3, h4, h5, h6. (This was claimed to work earlier,
|
292
|
+
but never did.)
|
293
|
+
http://jira.openqa.org/browse/WTR-196
|
294
|
+
|
295
|
+
Bug Fixes
|
296
|
+
|
297
|
+
* Statements such at ie.table().row() now work (no longer private).
|
298
|
+
http://jira.openqa.org/browse/WTR-117
|
299
|
+
* Fixed bug with images method when used with anything but ie. (Paul Rogers)
|
300
|
+
E.g. ie.div().images. http://jira.openqa.org/browse/WTR-211
|
301
|
+
* Fixed intermittent bug with ie.file_field().set. (Tomislav Car)
|
302
|
+
http://jira.openqa.org/browse/WTR-210
|
303
|
+
* When installing Watir 1.5.4 you could get extra, confusing
|
304
|
+
questions. This shouldn't happen anymore.
|
305
|
+
http://jira.openqa.org/browse/WTR-209
|
306
|
+
* Improved error message when element is not found using multiple attributes.
|
307
|
+
http://jira.openqa.org/browse/WTR-181
|
308
|
+
* Made examples and unit tests somewhat better examples: removed unnecessary
|
309
|
+
"include Watir" statements; started using "browser" instead of "$ie"; use
|
310
|
+
new methods 'goto_page' and 'uses_page' (this last improves performance of
|
311
|
+
unit tests).
|
312
|
+
http://jira.openqa.org/browse/WTR-159
|
313
|
+
* Moved brittle unit test that was causing cascading failures; renamed another
|
314
|
+
that was causing a namespace collision.
|
315
|
+
http://jira.openqa.org/browse/WTR-92
|
316
|
+
|
317
|
+
== Version 1.5.4
|
318
|
+
|
319
|
+
New Features
|
320
|
+
|
321
|
+
* Add new speed, :zippy. This is like fast, but, in effect, it does a TextField#value= instead of a TextField#set. If you have specific text fields that you never want this to happen to, use ie.text_field(:how, what).requires_typing.set instead.
|
322
|
+
http://svn.openqa.org/fisheye/changelog/watir/?cs=1295
|
323
|
+
* Add support for Chinese input as supplied by Vincent Xu.
|
324
|
+
http://jira.openqa.org/browse/WTR-71.
|
325
|
+
|
326
|
+
Bug Fixes
|
327
|
+
|
328
|
+
* Add dependency on windows-pr 0.6.6, which seems to be necessary on Vista.
|
329
|
+
* Fix for bug in IE.close_others provided by Paul Taylor.
|
330
|
+
http://jira.openqa.org/browse/WTR-194
|
331
|
+
* Fix for error when using verify_equal with ci_reporter, provided by Marcog.
|
332
|
+
http://svn.openqa.org/fisheye/changelog/watir/?cs=1301
|
333
|
+
|
334
|
+
== Version 1.5.3
|
335
|
+
|
336
|
+
Bug fixes and minor cleanup.
|
337
|
+
|
338
|
+
* Fix text areas bugs.
|
339
|
+
* Fix warning messages caused by redefined constants.
|
340
|
+
* Break out watir.rb into multiple files.
|
341
|
+
* Fix [WTR-90] error when running tests when installing gem.
|
342
|
+
http://jira.openqa.org/browse/WTR-90
|
343
|
+
* Fix tests.
|
344
|
+
* Update documentation.
|
345
|
+
|
346
|
+
Major Changes in 1.5.2
|
347
|
+
Support for IE's Modal Dialogs.
|
348
|
+
showModalDialog()
|
349
|
+
Any method can be used to specify an element (:text, :class, etc.).
|
350
|
+
ie.button(:class,'Button Menu').click
|
351
|
+
ie.div(:text, 'Type').text_field(:class, 'TextInput-input').set('my value')
|
352
|
+
ie.button(:text, 'Save').click
|
353
|
+
One can now use multiple attributes to specify an element.
|
354
|
+
ie.span(:class =>'Label', :text => 'Add new').click
|
355
|
+
|
356
|
+
Other Changes in 1.5.2
|
357
|
+
* Migrated IE.new_process from watir/contrib and improved its reliability. We now recommend IE.new_process over IE.new as a way to avoid numerous errors detailed in http://jira.openqa.org/browse/WTR-150.
|
358
|
+
* Added IE.start_process. This works like IE.start, but uses the new_process mechanism to start IE.
|
359
|
+
* Added IE.new_window and IE.start_window. This are synonyms for IE.new and IE.start.
|
360
|
+
* Added dependency on the win32-process gem.
|
361
|
+
* Added IE.each, which iterates through the various IE windows currently open.
|
362
|
+
* Updated WindowHelper and watir/dialog to work with IE7
|
363
|
+
* The wait method was completely rewritten. This should fix various errors seen in 1.5.1.1165 and 1.5.1.1158.
|
364
|
+
* Removed the "spinner".
|
365
|
+
* Fixed bug in Element#parent and updated unit test.
|
366
|
+
* HTML value attributes are checked as strings before converting, updated unit tests.
|
367
|
+
* Watir::wait_until clean up.
|
368
|
+
* Fix for winclicker when installed in directory with spaces.
|
369
|
+
* Rdoc changes and updates.
|
370
|
+
* A workaround for frame access errors in the wait command, swallowing access denied errors and rethrowing if other WIN32OLERuntimeErrors show up.
|
371
|
+
* Add support for "li" tag.
|
372
|
+
* Fix for bug in element_by_xpath. http://www.mail-archive.com/wtr-general@rubyforge.org/msg06742.html
|
373
|
+
* "Wait" method now is called recursively into nested frames. http://jira.openqa.org/browse/WTR-107
|
374
|
+
* Rdocs now only include the core Watir library (not contrib).
|
375
|
+
* Improve error reporting when IE#modal_dialog isn't found.
|
376
|
+
* Add method "ModalDialog#exists?"
|
377
|
+
* Add Watir::Win32.window_exists? method.
|
378
|
+
* Fix for winclicker setComboBoxTest and setTextBoxText http://jira.openqa.org/browse/WTR-124
|
379
|
+
* Improved Support for IE7
|
380
|
+
o Fix for IE7 on ie.exists? http://jira.openqa.org/browse/WTR-123
|
381
|
+
o Fix for IE7 with winclicker.
|
382
|
+
o Fix for check_for_http_error in IE7. http://jira.openqa.org/browse/WTR-141
|
383
|
+
* Fix for IE7 on ie.exists? http://jira.openqa.org/browse/WTR-123
|
384
|
+
* Rubyw is now used in winclicker to bypass command line windows.
|
385
|
+
* Autoit is registered before being used.
|
386
|
+
* Watir now checks for the right version of Ruby before loading our customized Win32ole library.
|
387
|
+
* ie.file_field has been fixed and unit test updated.
|
388
|
+
* rdoc generation has been fixed.
|
389
|
+
* page checker has been moved from the default behavior into contrib/page_checker.rb
|
390
|
+
* Fix for intermittent crashes occuring when using Watir with Ruby version > 1.8.2.
|
391
|
+
* Fix for http://jira.openqa.org/browse/WTR-86
|
392
|
+
This fix prevents the Watir-modified win32ole.so library (compiled against 1.8.2) from being used.
|
393
|
+
* Added Element#parent
|
394
|
+
* Add new methods Element#after? and Element#before?
|
395
|
+
* Added support for relative specifiers. E.g.:
|
396
|
+
link = $ie.link(:class => 'addtocart', :after? => @headline)
|
397
|
+
* Removed NAVIGATION_CHECKER from Watir.rb, added to contrib. This fixes rdoc generation and stops the frame access exception being thrown in the default installation.
|
398
|
+
* Open-code calls to def_creator, for easier debugging and rdoc generation of factory methods.
|
399
|
+
* Winclicker fix for too many callbacks defined error.
|
400
|
+
* Patch for rspec API changes
|
401
|
+
* You can now reference an iframe using IE#frame(:id, 'whatever'). Jira 109
|
402
|
+
* Added 'map' and 'area' element support.
|
403
|
+
* Moved Watir::Assertions into new file watir/assertions.rb so they can be used outside test cases.
|
404
|
+
* Fix and unit test for Jira 114, related to tag in HTML source.
|
405
|
+
* Added SelectList#include? and SelectList#selected?
|
406
|
+
* Added Element#visible?
|
407
|
+
* Fixes all reported bugs with contains_text.
|
408
|
+
* New Watir::TestCase#verify method (and verify_equal and verify_match).
|
409
|
+
* The click_no_wait method now works in frames.
|
410
|
+
* Released new IE.new_process method to 'watir/contrib/ie-new-process'. This starts up a new IE process for each IE window, which is really how it should be done. To close these use IE#kill. Any one getting intermittent RPC errors when opening windows may want to use this instead.
|
411
|
+
* Several examples have been updated.
|
412
|
+
* Moved enabled_popup to a new contrib directory.
|
413
|
+
* Added several tests.
|
414
|
+
|
415
|
+
Changes in 1.4
|
416
|
+
fix method name for accessing class name of P/Span/Div (change from style to class_name)
|
417
|
+
fix for bug 2152 (frame index in show_frames off by 1)
|
418
|
+
added alt as a property to image
|
419
|
+
added file_fields
|
420
|
+
fixed TextArea#to_s
|
421
|
+
moved reset button to buttons class
|
422
|
+
add IE#send_keys
|
423
|
+
frames can now be referenced using regexps and ids
|
424
|
+
added IE#minimize, IE#maximize, IE#restore
|
425
|
+
onChange and onBlur events now triggered by TextField#set
|
426
|
+
added default option to set for checkbox
|
427
|
+
added colspan method to tablecell
|
428
|
+
fix for bug reported by Scott P, wrong objects are sometimes found
|
429
|
+
fixed Bug with radio/checkboxes doing multiple fireevents
|
430
|
+
fix for table, id and reg exp
|
431
|
+
wait for page load before returning from IE.attach
|
432
|
+
update to select_list -- new interface still in progress
|
433
|
+
added .show method to iterators
|
434
|
+
fix for flashing objects in table cells
|
435
|
+
added flash for forms
|
436
|
+
flash returns nil instead of the curious '10'
|
437
|
+
removed ScreenCapture module from IE class
|
438
|
+
|
439
|
+
Changes in 1.3.1
|
440
|
+
Added P tag support
|
441
|
+
Bug fix for images and links in frames using each
|
442
|
+
Bug fixes for image#save
|
443
|
+
|
444
|
+
Changes in 1.3
|
445
|
+
added new row_values and column_value methods to tables
|
446
|
+
added ability to save an image - ie.image(:index,1).save('c:\temp\mypic.gif')
|
447
|
+
new method, html that applies to objects, not just a page - ie.button(:index,1).html => <INPUT id=b2 title="this is button1" onclick="javascript:document.location='pass.html';" type=button value="Click Me" name=b1>
|
448
|
+
now throws a NavigationException on 404, 500 errors
|
449
|
+
iterators now mixin Enumerable
|
450
|
+
added support for labels
|
451
|
+
added support for frames by index
|
452
|
+
added screen_capture
|
453
|
+
added hidden field support, and iterator method
|
454
|
+
table cells, span and div now act as containers, so can do ie.div(:index,1).button(:index.2).click
|
455
|
+
added index to print out from show_xx methods. Link shows img src if an image is used
|
456
|
+
added onKeyUp and onKeyDown to text_fields#set
|
457
|
+
installer now installs AutoIt to deal with javascript popups, file uploads etc
|
458
|
+
the spinner is now off by default
|
459
|
+
bug fix in text_fields iterator where it wasnt iterating through password or text ares. Added test for password fields
|
460
|
+
bug fix for flash for tables
|
461
|
+
bug fixes for images and links in cells
|