commonwatir 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 -0
- data/{README.txt → LICENSE} +22 -48
- data/Rakefile +13 -11
- data/VERSION +1 -0
- data/lib/commonwatir.rb +3 -3
- data/lib/watir.rb +7 -6
- data/lib/watir/assertions.rb +44 -44
- data/lib/watir/browser.rb +149 -149
- data/lib/watir/browsers.rb +13 -12
- data/lib/watir/exceptions.rb +47 -47
- data/lib/watir/matches.rb +17 -17
- data/lib/watir/options.rb +53 -52
- data/lib/watir/testcase.rb +97 -58
- data/lib/watir/waiter.rb +91 -91
- data/unittests/attach_to_existing_window_test.rb +71 -0
- data/unittests/browser_test.rb +18 -0
- data/unittests/buttons_test.rb +224 -0
- data/unittests/dd_test.rb +70 -0
- data/unittests/dl_test.rb +68 -0
- data/unittests/dt_test.rb +68 -0
- data/unittests/element_collections_test.rb +22 -0
- data/unittests/em_test.rb +67 -0
- data/unittests/form2_test.rb +22 -0
- data/unittests/html/blankpage.html +12 -0
- data/unittests/html/buttons1.html +41 -0
- data/unittests/html/buttons2.html +61 -0
- data/unittests/html/definition_lists.html +48 -0
- data/unittests/html/emphasis.html +12 -0
- data/unittests/html/entertainment_com.html +668 -0
- data/unittests/html/frame_buttons.html +4 -0
- data/unittests/html/images/button.jpg +0 -0
- data/unittests/html/pass.html +10 -0
- data/unittests/html/phrase_elements.html +15 -0
- data/unittests/html/select_lists.html +18 -0
- data/unittests/html/utf8.html +12 -0
- data/unittests/html/visibility.html +90 -0
- data/unittests/html/watir_unit_tests.css +64 -0
- data/unittests/html/whitespace.html +29 -0
- data/unittests/inspect_test.rb +29 -0
- data/unittests/options.yml.example +13 -0
- data/unittests/select_list_test.rb +19 -0
- data/unittests/setup.rb +17 -0
- data/unittests/setup/browser.rb +14 -0
- data/unittests/setup/capture_io_helper.rb +17 -0
- data/unittests/setup/filter.rb +24 -0
- data/unittests/setup/lib.rb +22 -0
- data/unittests/setup/options.rb +29 -0
- data/unittests/setup/testUnitAddons.rb +8 -0
- data/unittests/setup/watir-unittest.rb +74 -0
- data/unittests/strong_test.rb +32 -0
- data/unittests/utf8_test.rb +24 -0
- data/unittests/visibility_test.rb +47 -0
- data/unittests/whitespace_test.rb +40 -0
- metadata +121 -39
- data/History.txt +0 -5
- data/Manifest.txt +0 -14
data/CHANGES
ADDED
@@ -0,0 +1,461 @@
|
|
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
|