Quick Search:

Line History

line history graph

Show Arbitrary Diff

From to

Supports revisions and tags.

History

trunk 1571 1012 982 743 682 105 davids_click_no_wait 1015 1013 modal_dialog 1077 984 watir1_4truly 789 770 watir2_0 691 685 paul 106

latest revision Branch trunk

1571 annotated / raw | Diffs: previous, other | Lines: 132 ( +1, -0 )

Created: 2008-10-30 15:14:05 -0500 (22 days ago) | Author: bret | Changeset: 1571

Simplify Watir versioning; make it consistent with firewatir.

Tags: watir-1.6.1 watir-1.6.2

1565 annotated / raw | Diffs: previous, other | Lines: 131 ( +1, -2 )

Created: 2008-10-29 16:20:05 -0500 (23 days ago) | Author: bret | Changeset: 1565

Renaming libraries
 require 'watir' -> require 'watir/ie'
 require 'watir/browser' -> require 'watir'
 
(but because the new 'watir' library autoloads 'watir/ie' this should have no impact on users.)

Tags: watir-1.6.0

1564 new/moved annotated / raw | Diffs: previous, other | Lines: 132 ( +132, -0 )

Created: 2008-10-29 15:34:55 -0500 (23 days ago) | Author: bret | Changeset: 1564

Moved from: trunk/watir/lib/watir.rb 1562

no comment

1562 annotated / raw | Diffs: previous, other | Lines: 132 ( +1, -1 )

Created: 2008-10-29 15:15:59 -0500 (23 days ago) | Author: bret | Changeset: 1562

Moved to: trunk/watir/lib/watir/ie.rb 1564

Renaming libraries
 require 'watir' -> require 'watir/ie'
 require 'watir/browser' -> require 'watir'
 
(but because the new 'watir' library autoloads 'watir/ie' this should have no impact on users.)

1561 annotated / raw | Diffs: previous, other | Lines: 132 ( +1, -5 )

Created: 2008-10-29 14:59:15 -0500 (23 days ago) | Author: bret | Changeset: 1561

Move wait_until into watir-common.

1560 annotated / raw | Diffs: previous, other | Lines: 136 ( +4, -2 )

Created: 2008-10-29 14:48:06 -0500 (23 days ago) | Author: bret | Changeset: 1560

update comments, require statements.

1558 annotated / raw | Diffs: previous, other | Lines: 134 ( +0, -1 )

Created: 2008-10-29 14:29:45 -0500 (23 days ago) | Author: bret | Changeset: 1558

Move firewatir libraries into firewatir directory.

1557 annotated / raw | Diffs: previous, other | Lines: 1015 ( +1, -1 )

Created: 2008-10-29 14:06:57 -0500 (23 days ago) | Author: bret | Changeset: 1557

Moved to: trunk/watir/lib/watir/ie-class.rb 1562

Update versions to 1.6.0.

1552 annotated / raw | Diffs: previous, other | Lines: 1015 ( +5, -4 )

Created: 2008-10-28 14:20:35 -0500 (24 days ago) | Author: bret | Changeset: 1552

Rename methods:
IE.defaults => IE.options
IE.defaults= => IE.set_options

1551 annotated / raw | Diffs: previous, other | Lines: 1014 ( +3, -3 )

Created: 2008-10-28 13:43:31 -0500 (24 days ago) | Author: bret | Changeset: 1551

Fix some warnings.

1550 annotated / raw | Diffs: previous, other | Lines: 135 ( +1, -1 )

Created: 2008-10-28 13:37:12 -0500 (24 days ago) | Author: bret | Changeset: 1550

Softcoded support for browser implementations in Browser, so that additional browsers can be supported on the fly.

1549 annotated / raw | Diffs: previous, other | Lines: 135 ( +1, -1 )

Created: 2008-10-28 12:21:45 -0500 (24 days ago) | Author: bret | Changeset: 1549

Browser class now knows which implementations support which browsers.

1545 annotated / raw | Diffs: previous, other | Lines: 135 ( +3, -0 )

Created: 2008-10-27 17:21:55 -0500 (25 days ago) | Author: bret | Changeset: 1545

Refactor options-setting code.

1543 annotated / raw | Diffs: previous, other | Lines: 1014 ( +1, -0 )

Created: 2008-10-27 15:37:12 -0500 (25 days ago) | Author: bret | Changeset: 1543

Working on Browser.new

1500 annotated / raw | Diffs: previous, other | Lines: 1013 ( +1, -1 )

Created: 2008-10-09 17:43:57 -0500 (43 days ago) | Author: bret | Changeset: 1500

I'm pretty sure that this fixes the undefined method 'document' error reported in
http://groups.google.com/group/watir-general/browse_thread/thread/ddde6251e30588c9

1437 annotated / raw | Diffs: previous, other | Lines: 132 ( +2, -18 )

Created: 2008-09-19 18:53:59 -0500 (2 months 2 days ago) | Author: bret | Changeset: 1437

Update copyright notice. Remove duplicate code.

1410 annotated / raw | Diffs: previous, other | Lines: 148 ( +1, -1 )

Created: 2008-09-02 16:39:53 -0500 (2 months 19 days ago) | Author: bret | Changeset: 1410

Fixed some problems with speed settings. Made the tests so that they test the development version, not the gem (this behaviour change was inadvertantly introduced last week).

1408 new/moved annotated / raw | Diffs: previous, other | Lines: 148 ( +148, -0 )

Created: 2008-08-28 21:28:09 -0500 (2 months 23 days ago) | Author: bret | Changeset: 1408

Moved from: trunk/watir/watir.rb 1351

Moving the watir library files to their new home. And updating the build scripts to find them there.

1373 annotated / raw | Diffs: previous, other | Lines: 1011 ( +6, -0 )

Created: 2008-06-16 16:24:03 -0500 (5 months 5 days ago) | Author: bret | Changeset: 1373

Moved to: trunk/watir/lib/watir/ie.rb 1408

Added rdoc for speed settings.

1370 annotated / raw | Diffs: previous, other | Lines: 1005 ( +5, -3 )

Created: 2008-06-16 15:41:54 -0500 (5 months 5 days ago) | Author: bret | Changeset: 1370

Fixed IE#speed, which was returning :fast, when speed was actually zippy. Added unit tests.

1363 annotated / raw | Diffs: previous, other | Lines: 1003 ( +1, -1 )

Created: 2008-06-10 11:54:47 -0500 (5 months 11 days ago) | Author: bret | Changeset: 1363

Update for Watir 1.5.6: redid gem dependencies the "right" way.

Branch point for: tag:watir-1.5.6

1351 annotated / raw | Diffs: previous, other | Lines: 148 ( +4, -12 )

Created: 2008-06-04 16:09:19 -0500 (5 months 17 days ago) | Author: bret | Changeset: 1351

Moved to: trunk/watir/lib/watir.rb 1408

Prep for Watir 1.5.5 release. Fix warnings found by latest version of rubygems. Fixed install bug http://jira.openqa.org/browse/WTR-209. Added dependency on active support.

Branch point for: tag:watir-1.5.5 tag:watir-1.5.6

1342 annotated / raw | Diffs: previous, other | Lines: 1003 ( +1, -1 )

Created: 2008-06-02 17:58:41 -0500 (5 months 19 days ago) | Author: bret | Changeset: 1342

Started by cleaning up the table tests. This lead to a speed improvement: these tests were 40 seconds, now 16. Speed improvement gained by using new method "uses_page" instead of "use_page": we'll need to use this in other tests as well!

However, getting this to work required a small fix to $htmlRoot which complicated other test code which i eventually determined was need to workaround a bug in IE#url_list, which was being stored in the wrong format for "file" hrefs (a real corner case, but significant for our unit tests). Fixing these ended up allowing me to remove a fair amount of noisy code from other tests.

1328 annotated / raw | Diffs: previous, other | Lines: 156 ( +0, -1 )

Created: 2008-05-27 22:24:54 -0500 (5 months 24 days ago) | Author: bret | Changeset: 1328

Pull the "non-control elements" closer together.

1313 annotated / raw | Diffs: previous, other | Lines: 1003 ( +1, -1 )

Created: 2008-04-23 17:14:46 -0500 (6 months ago) | Author: bret | Changeset: 1313

Preparing for release of 1.5.4.

Tags: watir-1.5.4

1295 annotated / raw | Diffs: previous, other | Lines: 1003 ( +7, -0 )

Created: 2007-10-24 14:19:04 -0500 (12 months ago) | Author: bret | Changeset: 1295

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.

1293 annotated / raw | Diffs: previous, other | Lines: 996 ( +51, -20 )

Created: 2007-10-23 18:38:39 -0500 (12 months ago) | Author: bret | Changeset: 1293

New method for setting defaults: Watir::IE.defaults = {:speed => :fast, :visible => false}.

1292 annotated / raw | Diffs: previous, other | Lines: 965 ( +8, -16 )

Created: 2007-10-23 14:11:44 -0500 (12 months ago) | Author: bret | Changeset: 1292

Deprecating IE#set_fast_speed.
Refactoring speed-related code.

1288 annotated / raw | Diffs: previous, other | Lines: 973 ( +1, -1 )

Created: 2007-10-22 23:06:41 -0500 (12 months ago) | Author: bret | Changeset: 1288

for release 1.5.3

Branch point for: tag:watir-1.5.3

1286 annotated / raw | Diffs: previous, other | Lines: 157 ( +5, -862 )

Created: 2007-10-19 17:26:40 -0500 (13 months ago) | Author: bret | Changeset: 1286

More breaking out code from the big-ass watir.rb file. -- final step!

Branch point for: tag:watir-1.5.3

Tags: watir-1.5.4

1285 annotated / raw | Diffs: previous, other | Lines: 1014 ( +4, -831 )

Created: 2007-10-19 15:42:44 -0500 (13 months ago) | Author: bret | Changeset: 1285

More breaking out code from the big-ass watir.rb file.

1284 annotated / raw | Diffs: previous, other | Lines: 1841 ( +4, -520 )

Created: 2007-10-19 12:50:15 -0500 (13 months ago) | Author: bret | Changeset: 1284

More breaking out code from the big-ass watir.rb file.

1276 annotated / raw | Diffs: previous, other | Lines: 2357 ( +3, -1252 )

Created: 2007-10-11 14:36:28 -0500 (13 months ago) | Author: bret | Changeset: 1276

More breaking out code from the big-ass watir.rb file.

1263 annotated / raw | Diffs: previous, other | Lines: 3606 ( +8, -932 )

Created: 2007-10-03 17:28:22 -0500 (13 months ago) | Author: bret | Changeset: 1263

Start breaking up big-ass watir.rb file.
Repair performance error i introduced earlier today in TextField.

1262 annotated / raw | Diffs: previous, other | Lines: 4530 ( +13, -5 )

Created: 2007-10-03 15:46:48 -0500 (13 months ago) | Author: bret | Changeset: 1262

TextField#maxlength is now guaranteed to be an integer.

1261 annotated / raw | Diffs: previous, other | Lines: 4522 ( +12, -14 )

Created: 2007-10-03 15:26:08 -0500 (13 months ago) | Author: bret | Changeset: 1261

Cleanup some TextField code.
Remove code that was causing warnings in parent_child_test.rb.

1248 annotated / raw | Diffs: previous, other | Lines: 4524 ( +1, -1 )

Created: 2007-09-28 17:14:25 -0500 (13 months ago) | Author: bret | Changeset: 1248

merge all changes from the 1.5 branch into trunk

1246 annotated / raw | Diffs: previous, other | Lines: 4524 ( +3, -3 )

Created: 2007-09-27 18:18:57 -0500 (13 months ago) | Author: bret | Changeset: 1246

Minor simplification of in the tag locator strategy class.
Remove breakpoint from test.

1240 annotated / raw | Diffs: previous, other | Lines: 4524 ( +14, -13 )

Created: 2007-09-07 23:33:52 -0500 (14 months ago) | Author: charley | Changeset: 1240

Fix for text areas.

1230 annotated / raw | Diffs: previous, other | Lines: 4523 ( +7, -5 )

Created: 2007-08-05 17:29:15 -0500 (15 months ago) | Author: bret | Changeset: 1230

Copied to: branches/watir-1.5/watir.rb 1233

Remove the possibility of timeout settings bleeding from one test to the next.
until_with_timeout was taking an argument that could be used to reset a global
variable.
Upped several timeouts to allow tests to run successfully.

1229 annotated / raw | Diffs: previous, other | Lines: 4521 ( +1, -1 )

Created: 2007-08-05 16:33:09 -0500 (15 months ago) | Author: bret | Changeset: 1229

IE.start now uses IE.start_window, not IE.start_process.
This makes it consistent wot IE.new, to which this switch was made some time ago.

1228 annotated / raw | Diffs: previous, other | Lines: 4521 ( +14, -3 )

Created: 2007-08-05 16:23:21 -0500 (15 months ago) | Author: bret | Changeset: 1228

minor fix to IE.new_process.
update rdoc to indicate which commands require a desktop.

1204 annotated / raw | Diffs: previous, other | Lines: 4510 ( +10, -0 )

Created: 2007-06-19 13:49:22 -0500 (17 months ago) | Author: charley | Changeset: 1204

Adding :src support for frames with tests, and a url method for page container. The IE frames method seems a little flaky, seems to return either iframes or frames but not both.

1202 annotated / raw | Diffs: previous, other | Lines: 4500 ( +1, -0 )

Created: 2007-06-08 14:58:30 -0500 (17 months ago) | Author: bret | Changeset: 1202

Add new methods ie.h1, ie.h2, ie.h3, ie.ul

1201 annotated / raw | Diffs: previous, other | Lines: 4499 ( +6, -2 )

Created: 2007-06-08 14:34:26 -0500 (17 months ago) | Author: bret | Changeset: 1201

Fix for this bug in IE.new_process:

       unknown property or method `hwnd' HRESULT error code:0x80010108 The object invoked has disconnected from its clients.
        
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir/ie-process.rb:23:in `method_missing'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir/ie-process.rb:23:in `window'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir.rb:1511:in `each'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir.rb:1508:in `each'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir/ie-process.rb:21:in `window'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir.rb:105:in `until_with_timeout'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir/waiter.rb:53:in `wait_until'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir.rb:105:in `until_with_timeout'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir/ie-process.rb:20:in `window'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir.rb:1411:in `_new_process_init'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1199/./watir.rb:1405:in `new_process'

1199 annotated / raw | Diffs: previous, other | Lines: 4495 ( +2, -3 )

Created: 2007-06-05 13:38:39 -0500 (17 months ago) | Author: bret | Changeset: 1199

Some tweaks to minimize the appears of a visible blowser, when running invisible.
(We can't help but have it show for a moment when first created.)

1198 annotated / raw | Diffs: previous, other | Lines: 4496 ( +1, -0 )

Created: 2007-06-05 12:57:51 -0500 (17 months ago) | Author: bret | Changeset: 1198

Fix for this intermittent error in IE#new_process reported by Kevin Miller.

    [exec] WIN32OLERuntimeError: hwnd
    [exec]     OLE error code:80004005 in <Unknown>
    [exec]       <No Description>
    [exec]     HRESULT error code:0x80020009
    [exec]       Exception occurred.
    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir/ie-process.rb:23:i
n `method_missing'
    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir/ie-process.rb:23:i

n `window'

    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1590:in `each'
    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1588:in `each'
    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir/ie-process.rb:21:i
n `window'
    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1490:in `_new_p
rocess_init'
    [exec]     C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1192/./watir.rb:1484:in `new_pr
ocess'

1197 annotated / raw | Diffs: previous, other | Lines: 4495 ( +5, -4 )

Created: 2007-05-31 17:31:19 -0500 (17 months ago) | Author: bret | Changeset: 1197

Fix for maxlength bug from Paul Rogers.
This is watir_maxlength.patch.txt from http://jira.openqa.org/browse/WTR-157.

1193 annotated / raw | Diffs: previous, other | Lines: 4494 ( +71, -150 )

Created: 2007-05-28 11:45:55 -0500 (17 months ago) | Author: jfry | Changeset: 1193

Updated changes.rb based on wiki, added changes.rb and license.rb to the rakefile.rb, many rdoc changes in watir.rb.

1192 annotated / raw | Diffs: previous, other | Lines: 4573 ( +3, -2 )

Created: 2007-05-24 14:48:24 -0500 (17 months ago) | Author: bret | Changeset: 1192

IE.each now yields to instances of Watir::IE instead of to ole-automation objects.

1191 annotated / raw | Diffs: previous, other | Lines: 4572 ( +6, -4 )

Created: 2007-05-24 13:38:29 -0500 (17 months ago) | Author: bret | Changeset: 1191

IE.new now reverts to old behavior. We're getting too many
reports of bugs in IE.new_process to make this default right now.

1190 annotated / raw | Diffs: previous, other | Lines: 4570 ( +10, -3 )

Created: 2007-05-22 23:51:02 -0500 (18 months ago) | Author: bret | Changeset: 1190

Refactored existing code to use IE.each.
Fixed http://jira.openqa.org/browse/WTR-155.

1189 annotated / raw | Diffs: previous, other | Lines: 4563 ( +1, -1 )

Created: 2007-05-22 18:43:10 -0500 (18 months ago) | Author: bret | Changeset: 1189

Add IE.each - iterates through IE windows.
Rename Watir::Process#count_processes to be Watir::Process.count (instance -> class method)
Add IE.process_count - returns the number of IE processes running.

1187 annotated / raw | Diffs: previous, other | Lines: 4563 ( +15, -8 )

Created: 2007-05-17 18:22:21 -0500 (18 months ago) | Author: bret | Changeset: 1187

This is the final switchover to using a new method for IE.new.
This fixes http://jira.openqa.org/browse/WTR-150.
IE.new is the same as IE.new_process. Previous behavior is now
in IE.new_window. (Same applies to IE.start, IE.start_window and
IE.start_process.)

1186 annotated / raw | Diffs: previous, other | Lines: 4556 ( +5, -2 )

Created: 2007-05-17 17:54:51 -0500 (18 months ago) | Author: bret | Changeset: 1186

refactor: use IE:Process instead of IEProcess.

1185 annotated / raw | Diffs: previous, other | Lines: 4553 ( +16, -0 )

Created: 2007-05-17 17:49:37 -0500 (18 months ago) | Author: bret | Changeset: 1185

refactor

1184 annotated / raw | Diffs: previous, other | Lines: 4537 ( +52, -47 )

Created: 2007-05-17 16:48:18 -0500 (18 months ago) | Author: bret | Changeset: 1184

Refactoring

1183 annotated / raw | Diffs: previous, other | Lines: 4532 ( +1, -1 )

Created: 2007-05-17 15:41:40 -0500 (18 months ago) | Author: bret | Changeset: 1183

Add Watir::IE.start_process
Fix require of win32-process (it was broken, but masked by a bug in rubygems)
Add win32-process as a dependency of the watir gem.

1181 annotated / raw | Diffs: previous, other | Lines: 4532 ( +6, -0 )

Created: 2007-05-17 10:39:34 -0500 (18 months ago) | Author: bret | Changeset: 1181

Refactor IE.new_process to use win32-process gem.

1179 annotated / raw | Diffs: previous, other | Lines: 4526 ( +7, -53 )

Created: 2007-05-16 18:30:06 -0500 (18 months ago) | Author: bret | Changeset: 1179

add Watir::IE.new_window

1170 annotated / raw | Diffs: previous, other | Lines: 4572 ( +42, -31 )

Created: 2007-05-15 09:52:11 -0500 (18 months ago) | Author: bret | Changeset: 1170

Rdoc changes from Jeff Fry.

1166 annotated / raw | Diffs: previous, other | Lines: 4561 ( +28, -29 )

Created: 2007-04-19 19:13:39 -0500 (19 months ago) | Author: bret | Changeset: 1166

Removed the spinner. Holler if you care.
Rewrote the entire wait method, adding many guards for closing
or access-denied windows and frames. Hopefully this fixes the
variously reported problems. If not, it becomes time to really
write unit tests for IE#wait.

1164 annotated / raw | Diffs: previous, other | Lines: 4562 ( +1, -1 )

Created: 2007-03-27 15:11:26 -0500 (19 months ago) | Author: charley | Changeset: 1164

Simple check to see if value is already a string before converting to a string, wtr-147 in jira. Additional unit tests for string values on radio buttons and checkboxes.

1162 annotated / raw | Diffs: previous, other | Lines: 4562 ( +1, -1 )

Created: 2007-02-22 09:22:41 -0600 (20 months ago) | Author: bret | Changeset: 1162

Fix bug in Element#parent.

1161 annotated / raw | Diffs: previous, other | Lines: 4562 ( +113, -122 )

Created: 2007-02-15 07:29:11 -0600 (21 months ago) | Author: bret | Changeset: 1161

Reorganize rdoc code, including refactoring Charley's recent change so that they
will affect the gem's rdoc. Still much more work to do on the rdoc.
Also reformated frame wait code (indentation was whacked!).

1159 annotated / raw | Diffs: previous, other | Lines: 4571 ( +7, -0 )

Created: 2007-02-14 17:52:11 -0600 (21 months ago) | Author: charley | Changeset: 1159

Eating frame access errors in the wait command, rethrowing if another WIN32OLERuntimeError shows up. Related to http://jira.openqa.org/browse/WTR-96, and http://jira.openqa.org/browse/WTR-94. Cross site frame errors should be addressed and unit tests need to be added.

1158 annotated / raw | Diffs: previous, other | Lines: 4564 ( +20, -6 )

Created: 2007-02-13 19:06:46 -0600 (21 months ago) | Author: bret | Changeset: 1158

Add "ModalDialog#exists?" Also fix exceptions raised when modal dialog doesn't exist.

1157 annotated / raw | Diffs: previous, other | Lines: 4550 ( +1, -1 )

Created: 2007-02-13 12:16:01 -0600 (21 months ago) | Author: bret | Changeset: 1157

Fix bug with modal_dialog

1154 annotated / raw | Diffs: previous, other | Lines: 4550 ( +95, -2 )

Created: 2007-02-01 15:10:07 -0600 (21 months ago) | Author: charley | Changeset: 1154

Moving map and area into watir.rb, adding Maps and Areas and updated test case.

1152 annotated / raw | Diffs: previous, other | Lines: 4457 ( +16, -5 )

Created: 2007-01-31 10:08:35 -0600 (21 months ago) | Author: charley | Changeset: 1152

Checking in Paul Rogers' fix for check_for_http_error in IE7. http://jira.openqa.org/browse/WTR-141

1151 annotated / raw | Diffs: previous, other | Lines: 4446 ( +10, -16 )

Created: 2007-01-30 19:40:38 -0600 (21 months ago) | Author: bret | Changeset: 1151

Fix by Xavier Noria for http://jira.openqa.org/browse/WTR-107
I made a few additional changes to Xavier's patch: most dramatically i also removed the
pre-existing rescue block, which did not make sense to me.
I wish we had unit tests for this, but we don't. I decided that it was worth the risk...

1150 annotated / raw | Diffs: previous, other | Lines: 4452 ( +1, -1 )

Created: 2007-01-30 18:31:32 -0600 (21 months ago) | Author: bret | Changeset: 1150

Fix by Prema Arya for bug in element_by_xpath. For details see:
http://www.mail-archive.com/wtr-general@rubyforge.org/msg06742.html

1149 annotated / raw | Diffs: previous, other | Lines: 4452 ( +8, -1 )

Created: 2007-01-19 14:59:48 -0600 (22 months ago) | Author: bret | Changeset: 1149

Add Watir::Win32.window_exists? method.
This is needed by the modal dialog code.

1148 annotated / raw | Diffs: previous, other | Lines: 4445 ( +52, -0 )

Created: 2007-01-19 14:22:20 -0600 (22 months ago) | Author: charley | Changeset: 1148

Adding li support.

1145 annotated / raw | Diffs: previous, other | Lines: 4393 ( +1, -1 )

Created: 2007-01-17 10:23:06 -0600 (22 months ago) | Author: charley | Changeset: 1145

Fix for IE7 on ie.exists? http://jira.openqa.org/browse/WTR-123

1141 annotated / raw | Diffs: previous, other | Lines: 4393 ( +1, -5 )

Created: 2007-01-10 14:00:00 -0600 (22 months ago) | Author: bret | Changeset: 1141

Prevent watir libraries from being able to load the wrong version of win32ole.

1140 annotated / raw | Diffs: previous, other | Lines: 4397 ( +1, -3 )

Created: 2007-01-10 12:10:44 -0600 (22 months ago) | Author: bret | Changeset: 1140

style

1139 annotated / raw | Diffs: previous, other | Lines: 4399 ( +1, -1 )

Created: 2007-01-10 12:09:41 -0600 (22 months ago) | Author: bret | Changeset: 1139

Get rid of the momentary command window when using FileField.set

1138 annotated / raw | Diffs: previous, other | Lines: 4399 ( +1, -0 )

Created: 2007-01-10 12:03:10 -0600 (22 months ago) | Author: bret | Changeset: 1138

Fixed file field unit test so that it will actually fail when FileField.set doesn't work.
And fixed FileField.set so that it will actually click the 'browse' button.

Fixes http://jira.openqa.org/browse/WTR-108.

1137 annotated / raw | Diffs: previous, other | Lines: 4398 ( +0, -4 )

Created: 2007-01-10 11:25:01 -0600 (22 months ago) | Author: charley | Changeset: 1137

Removing unneeded check from run_error_checks.

1136 annotated / raw | Diffs: previous, other | Lines: 4402 ( +8, -22 )

Created: 2007-01-05 15:24:54 -0600 (22 months ago) | Author: charley | Changeset: 1136

Rakefile includes the contrib directory for rdoc generation. Copyrights updated. Removed NAVIGATION_CHECKER from watir.rb and added to contrib/page_checker.rb which fixes the rdoc generation and mitigates the frame access errors: http://jira.openqa.org/browse/WTR-94.  

1135 annotated / raw | Diffs: previous, other | Lines: 4416 ( +4, -1 )

Created: 2006-12-21 00:18:40 -0600 (23 months ago) | Author: bret | Changeset: 1135

fix bug with Element#parent

1134 annotated / raw | Diffs: previous, other | Lines: 4413 ( +17, -8 )

Created: 2006-12-20 18:42:57 -0600 (23 months ago) | Author: bret | Changeset: 1134

Added support for relative specifiers. E.g.:
   link = $ie.link(:class => 'addtocart', :after? => @headline)
(This has been recently discussed on the list.)

1133 annotated / raw | Diffs: previous, other | Lines: 4404 ( +12, -0 )

Created: 2006-12-20 17:53:33 -0600 (23 months ago) | Author: bret | Changeset: 1133

Add new methods Element#after? and Element#before?

1132 annotated / raw | Diffs: previous, other | Lines: 4392 ( +7, -1 )

Created: 2006-12-19 19:13:35 -0600 (23 months ago) | Author: bret | Changeset: 1132

Added Element#parent more or less as suggested by Lonny.
http://www.mail-archive.com/wtr-general@rubyforge.org/msg05868.html

1131 annotated / raw | Diffs: previous, other | Lines: 4386 ( +17, -7 )

Created: 2006-12-13 22:46:23 -0600 (23 months ago) | Author: bret | Changeset: 1131

Fix for intermittent crashes occuring when using Watir with Ruby version > 1.8.2.
Fix for http://jira.openqa.org/browse/WTR-86
This fix prevents the Watir-modified win32ole.so library (compiled against 1.8.2) from
being used.

Consequently, IE#modal_dialog will not work (as before) with Ruby version > 1.8.2.
However, when this is attempted, this is the new error message:

 NoMethodError: IE#modal_dialog not supported with the current version of Ruby (1.8.4).
 See http://jira.openqa.org/browse/WTR-2 for details.
 undefined method `connect_unknown' for WIN32OLE:Class

1127 annotated / raw | Diffs: previous, other | Lines: 4376 ( +2, -0 )

Created: 2006-11-09 01:10:26 -0600 (2 years ago) | Author: angrez | Changeset: 1127

updated function create_rexml_document_object to give correct HTML source as input to REXML by replacing all the instances of &nbsp; with &#160;

1124 annotated / raw | Diffs: previous, other | Lines: 4374 ( +63, -44 )

Created: 2006-11-08 18:12:13 -0600 (2 years ago) | Author: bret | Changeset: 1124

Open-code calls to def_creator. This makes it easier to debug and generate rdoc for Watir's factory methods.

1121 annotated / raw | Diffs: previous, other | Lines: 4355 ( +5, -1 )

Created: 2006-10-29 21:49:09 -0600 (2 years ago) | Author: bret | Changeset: 1121

update rdoc for Watir.attach -- add reference to :hwnd

1120 annotated / raw | Diffs: previous, other | Lines: 4351 ( +15, -9 )

Created: 2006-10-20 13:53:13 -0500 (2 years 1 month ago) | Author: charley | Changeset: 1120

Changed file_field.set to use autoit instead of winclicker.

1119 annotated / raw | Diffs: previous, other | Lines: 4345 ( +5, -2 )

Created: 2006-10-18 13:35:08 -0500 (2 years 1 month ago) | Author: bret | Changeset: 1119

You can now reference an iframe using IE#frame(:id, 'whatever').
http://jira.openqa.org/browse/WTR-109

1118 annotated / raw | Diffs: previous, other | Lines: 4342 ( +16, -20 )

Created: 2006-10-18 12:44:24 -0500 (2 years 1 month ago) | Author: bret | Changeset: 1118

Simplify Frame#locate code.

1116 annotated / raw | Diffs: previous, other | Lines: 4346 ( +1, -1 )

Created: 2006-10-13 16:02:39 -0500 (2 years 1 month ago) | Author: bret | Changeset: 1116

Added 'map' and 'area' element support.

1111 annotated / raw | Diffs: previous, other | Lines: 4346 ( +13, -0 )

Created: 2006-10-06 15:43:44 -0500 (2 years 1 month ago) | Author: bret | Changeset: 1111

added SelectList#include? and SelectList#selected? (Bret and Jim Matthews pairing)

1110 annotated / raw | Diffs: previous, other | Lines: 4333 ( +1, -0 )

Created: 2006-10-04 15:00:35 -0500 (2 years 1 month ago) | Author: bret | Changeset: 1110

comment

1100 annotated / raw | Diffs: previous, other | Lines: 4332 ( +21, -20 )

Created: 2006-09-20 14:42:06 -0500 (2 years 2 months ago) | Author: bret | Changeset: 1100

Fixes for two bugs in contains_text (although people should still use ie.text.include? instead).
        frame.contains_text missing http://jira.openqa.org/browse/WTR-102
        exception thrown when contains_text called for empty ie http://jira.openqa.org/browse/WTR-95

Also added ie-new-process (and IE.new_process) to contrib

1095 annotated / raw | Diffs: previous, other | Lines: 4331 ( +7, -11 )

Created: 2006-09-19 01:31:09 -0500 (2 years 2 months ago) | Author: bret | Changeset: 1095

I believe this completes http://jira.openqa.org/browse/WTR-6
This repairs the code for click_no_wait in frames.
I _believe_ that this also makes frames in frames and frames in modals support
 click_no_wait. If not, that can be reported as a bug.

1094 annotated / raw | Diffs: previous, other | Lines: 4335 ( +1, -1 )

Created: 2006-09-18 15:19:11 -0500 (2 years 2 months ago) | Author: bret | Changeset: 1094

Fix for this error:

ERROR: While executing gem ... (TypeError)
     ./watir.rb:1286:in `+´: can´t convert nil into String

I assume that this happened because the gem was built from an export instead of a checkout.

1084 annotated / raw | Diffs: previous, other | Lines: 4335 ( +5, -14 )

Created: 2006-09-11 17:56:43 -0500 (2 years 2 months ago) | Author: bret | Changeset: 1084

complete followup of 1078:
- change IE#attach_command to attach by hwnd instead of title
- remove unneeded code causing compile errors

also added untested Frame#attach_command.

1083 annotated / raw | Diffs: previous, other | Lines: 4344 ( +7, -78 )

Created: 2006-09-11 17:31:24 -0500 (2 years 2 months ago) | Author: bret | Changeset: 1083

Backed out most of the changes from Revision 1078.
Moved enabled_popup to a new contrib directory (instead of reverting it).

method "attach_command" needs to be defined for frames (whence it should recursively call @page_container.attach_command).

1081 annotated / raw | Diffs: previous, other | Lines: 4415 ( +15, -36 )

Created: 2006-09-05 01:44:14 -0500 (2 years 2 months ago) | Author: bret | Changeset: 1081

small performance improvement affecting all elements, but which was particular
 bad with checkboxes.
minor changes to checkbox code
- fix highlight glitch
- simplify code

1079 annotated / raw | Diffs: previous, other | Lines: 4436 ( +20, -5 )

Created: 2006-08-23 02:54:32 -0500 (2 years 2 months ago) | Author: inetdavid | Changeset: 1079

As stated in bug WTR-77, this problem was caused by some performance improvement patches
I submitted a while back.  I don't normally use Regexp matches in my :id or :name elements
so I didn't see this in my working code.

There are actually two different problems in place here.  First of all, IE doesn't understand
regular expressions, so I've added code to make sure we only pass strings into getElementById()
and getElementsByName().  That will stop the crashes caused by the regular expressions.

The other problem is the one that causes the test case failure listed in WTR-77.  That is
caused by the fact that IE's getElementById() not only matches on :id, it will also matches
on the first matching :name.  I now double check the element returned by getElementById()
to make sure that it really HAS a matching :id, else we fall back to the slow method.

Lastly, not every element supports the fast get calls, but we can't use #respond_to? because
these are OLE methods, not Ruby methods.  Thus, the "fast" code is wrapped in a begin/rescue
block so any element not supporting the get method will drop down to the slower code.

All core tests now pass, including some new tests using regular expressions in :id and :name
searches.

David Schmidt

1078 annotated / raw | Diffs: previous, other | Lines: 4421 ( +110, -26 )

Created: 2006-08-23 01:26:08 -0500 (2 years 2 months ago) | Author: inetdavid | Changeset: 1078

# Modified click_no_wait and eval_in_spawned_process to support click_no_wait on elements
 in nested frames while still supporting modal dialogs spawned from modal dialogs.

1075 annotated / raw | Diffs: previous, other | Lines: 4337 ( +7, -15 )

Created: 2006-08-21 23:42:07 -0500 (2 years 3 months ago) | Author: bret | Changeset: 1075

Fix for WTR-69: error handling for IE#contains_text.
Also removed now-unnecessary retry logic.
Updated doc to mark method as deprecated.

1074 annotated / raw | Diffs: previous, other | Lines: 4345 ( +3, -2 )

Created: 2006-08-11 12:52:05 -0500 (2 years 3 months ago) | Author: charley | Changeset: 1074

Adding flash number parameter to Form class' override.

1073 annotated / raw | Diffs: previous, other | Lines: 4344 ( +4, -3 )

Created: 2006-08-10 04:41:19 -0500 (2 years 3 months ago) | Author: bret | Changeset: 1073

Added optional argument to Element#flash, indicating the number of times to flash.
Default, unchanged, is 10 times.
-- We should put an item in Jira to document this, my bad.

1065 annotated / raw | Diffs: previous, other | Lines: 4343 ( +11, -7 )

Created: 2006-07-26 19:04:08 -0500 (2 years 3 months ago) | Author: bret | Changeset: 1065

refactored code to create TaggedElementLocator#each_element

1054 annotated / raw | Diffs: previous, other | Lines: 4339 ( +1, -1 )

Created: 2006-07-10 13:09:14 -0500 (2 years 4 months ago) | Author: bret | Changeset: 1054

Fix bug "undefined method `exists' for class `Watir::IE' (NameError)" introduced in previous commit.

Branch point for: tag:watir-1.5.1.1054

1053 annotated / raw | Diffs: previous, other | Lines: 4339 ( +7, -2 )

Created: 2006-07-09 15:19:37 -0500 (2 years 4 months ago) | Author: bret | Changeset: 1053

add "exist?" as an alias for "exists?" -- as in Ruby

1052 annotated / raw | Diffs: previous, other | Lines: 4334 ( +10, -7 )

Created: 2006-07-07 16:42:11 -0500 (2 years 4 months ago) | Author: bret | Changeset: 1052

updates to wait_until code.

1049 annotated / raw | Diffs: previous, other | Lines: 4331 ( +8, -4 )

Created: 2006-06-26 03:39:14 -0500 (2 years 4 months ago) | Author: inetdavid | Changeset: 1049

Previous patch had a problem with elements that didnt have getElementById or getElementsByName.
This version fixes that by falling back to the previous method, but still fails one unit test
where getElementByID returns an element with a matching name, but NO id.  I'll work tomorrow
on a fix for these conditions where the IE calls are "lying"

1048 annotated / raw | Diffs: previous, other | Lines: 4327 ( +5, -1 )

Created: 2006-06-26 02:47:28 -0500 (2 years 4 months ago) | Author: inetdavid | Changeset: 1048

After more profiling I was seeing locate_input_element using over 60% of all time during
one of my web scraper tests.  Total time for the test was about 4 minutes, with one minute
of that waiting for page loads.

Most of my field lookups are by :id or :name so I checked for those "how's" and instead
of iterating through all page elements I used the OLE getElementById and getElementsByName
to find the element or collection.

The performance difference is amazing.  Before the 4 line change locate_input_element took
54.26% of the run time for my scrape.  After this change it took 0.63%.  Run time went from
3 minutes (ignoring page load times) down to about 1 minute (also ignoring page load times).

I'll keep looking for other ways to speed up Watir by using IE DHTML methods to minimize
iterating through page elements one at a time.

1046 annotated / raw | Diffs: previous, other | Lines: 4323 ( +7, -8 )

Created: 2006-06-22 02:39:36 -0500 (2 years 5 months ago) | Author: inetdavid | Changeset: 1046

After profiling a web scraper that was running much slower with 1.5.1 than with 1.4.1
I found that 69% of the time was spent in locate_input_element(), almost all of that time
in WIN32OLE#each.  I saw that the each loop was continuing to run even after an object
was found, so I re-wrote the loop so that the routine returns a value as soon as one
is found and now that routine is only using 57% of CPU on the same test.

1045 annotated / raw | Diffs: previous, other | Lines: 4324 ( +2, -2 )

Created: 2006-06-20 19:17:42 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1045

removed annoying (to me) side effect of IE#visible=true -- not only would it make the window visible,
but it would also pop it to the front. this happened whenever you attached to a window.

1041 annotated / raw | Diffs: previous, other | Lines: 4324 ( +1, -1 )

Created: 2006-06-20 11:59:33 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1041

bug fix: recent multi-attribute support broke default-attribute support (in buttons, forms, frames).

1039 annotated / raw | Diffs: previous, other | Lines: 4324 ( +2, -2 )

Created: 2006-06-14 18:43:25 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1039

rewrite system call based on advice from chris mcmahon

1038 annotated / raw | Diffs: previous, other | Lines: 4324 ( +3, -3 )

Created: 2006-06-13 15:24:11 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1038

finish adding multiple attribute support to cells and some other elements.
better fix to the problem of mistaking outlook windows for IE windows in IE.find.

1037 annotated / raw | Diffs: previous, other | Lines: 4324 ( +68, -20 )

Created: 2006-06-13 00:41:09 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1037

added support for multiple attributes for links and other non-input elements.

1036 annotated / raw | Diffs: previous, other | Lines: 4276 ( +1, -1 )

Created: 2006-06-12 21:47:59 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1036

added guard to avoid errors with outlook windows

1035 annotated / raw | Diffs: previous, other | Lines: 4276 ( +19, -14 )

Created: 2006-06-12 14:19:55 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1035

improve modal dialog code. correct name of IE.persis_ole_connection=.

1034 annotated / raw | Diffs: previous, other | Lines: 4271 ( +60, -46 )

Created: 2006-06-09 10:46:36 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1034

click_no_wait now works for elements in container elements. e.g. ie.span(:id, "foo").button(:text, "bar").click_no_wait

1033 annotated / raw | Diffs: previous, other | Lines: 4257 ( +3, -2 )

Created: 2006-06-08 21:38:06 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1033

minor change to Watir::TestCase (make add_assertion public). refactor modal support code.

1029 annotated / raw | Diffs: previous, other | Lines: 4256 ( +29, -19 )

Created: 2006-06-02 17:13:42 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1029

add support for a modal dialog launched from another modal dialog (as sick as that sounds).

1027 annotated / raw | Diffs: previous, other | Lines: 4246 ( +25, -13 )

Created: 2006-06-01 18:47:28 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1027

New method IE.find -- works like IE.attach, except that it returns nil if no match. Also it doesn't wait for window to appear.

1025 annotated / raw | Diffs: previous, other | Lines: 4234 ( +9, -9 )

Created: 2006-06-01 12:07:34 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1025

adjusted timeouts and sleeps

1024 annotated / raw | Diffs: previous, other | Lines: 4234 ( +6, -8 )

Created: 2006-05-31 12:34:30 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1024

refactor timeout logic in IE.attach

1023 annotated / raw | Diffs: previous, other | Lines: 4236 ( +4, -0 )

Created: 2006-05-30 17:24:37 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1023

add ModalDialog#title