| watir:/trunk/watir/watir.rb |
Line History |
History |
latest revision Branch trunk1408 deleted | Lines: 0 ( +0, -148 ) Created: 2008-08-28 21:28:09 -0500 (2 months 24 days ago) | Author: bret | Changeset: 1408 Moving the watir library files to their new home. And updating the build scripts to find them there.
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
1328 annotated / raw | Diffs: previous, other | Lines: 156 ( +0, -1 ) Created: 2008-05-27 22:24:54 -0500 (5 months 25 days ago) | Author: bret | Changeset: 1328 Pull the "non-control elements" closer together.
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 manyreports 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_processFix 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 theywill 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-107I 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 with  
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-6This 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 particularbad 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 patchesI 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 elementsin 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 duringone 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.1I 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
1022 annotated / raw | Diffs: previous, other | Lines: 4232 ( +36, -94 ) Created: 2006-05-30 17:13:49 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1022 removing ie.attach_modal and ModalPage in favor of Schmidt'sie.modal_dialog and ModalDialog.
1020 annotated / raw | Diffs: previous, other | Lines: 4290 ( +10, -1 ) Created: 2006-05-25 08:42:11 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1020 avoid benign errors in click_no_wait
1019 annotated / raw | Diffs: previous, other | Lines: 4281 ( +33, -18 ) Created: 2006-05-24 16:59:19 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1019 refactor timeout logic in window attachment code. add new Watir.close_all method.
1017 annotated / raw | Diffs: previous, other | Lines: 4266 ( +1, -1 ) Created: 2006-05-24 08:13:08 -0500 (2 years 5 months ago) | Author: bret | Changeset: 1017 up version number to avoid gem problems(due to the fact that our SVN revision has moved from (9xx to 1xxx)
1012 annotated / raw | Diffs: previous, other | Lines: 4266 ( +2, -2 ) Created: 2006-05-22 15:34:38 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1012 fix for bug NoMethodError: undefined method `innertext' for #<Watir::Link:0x35aafb8> reported by Manish Sapariyaon May 22, 2006 1:56 AM. link.to_s fails with NoMethodError Branch point for: davids_click_no_wait
1009 annotated / raw | Diffs: previous, other | Lines: 4266 ( +159, -12 ) Created: 2006-05-20 05:15:14 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1009 Merged David Schmidt's modal dialog improvements from branches/modal-dialog.This commit includes some duplicate code that still needs to be removed, particularly two different classes for modal dialogs (ModalPage and ModalDialog).
1008 annotated / raw | Diffs: previous, other | Lines: 4119 ( +1, -1 ) Created: 2006-05-20 02:10:46 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1008 @down_load_time is now measured as a float instead of an integer
1005 annotated / raw | Diffs: previous, other | Lines: 4119 ( +40, -42 ) Created: 2006-05-18 15:23:37 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1005 Fix for WTR-16 reported by Mark Cain: error when window's close button was clicked.http://jira.openqa.org/browse/WTR-16
1003 annotated / raw | Diffs: previous, other | Lines: 4121 ( +37, -35 ) Created: 2006-05-18 12:23:18 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1003 refactory IE#check_for_http_error; remove delay from IE#goto
1002 annotated / raw | Diffs: previous, other | Lines: 4119 ( +11, -6 ) Created: 2006-05-18 09:58:41 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1002 Fix for intermittent frame navigation error contributed by Konstantin Sobolev, Rubyforge patch #4355http://rubyforge.org/tracker/index.php?func=detail&aid=4355&group_id=104&atid=489
1000 annotated / raw | Diffs: previous, other | Lines: 4114 ( +2, -1 ) Created: 2006-05-17 13:40:32 -0500 (2 years 6 months ago) | Author: bret | Changeset: 1000 Add SelectList#set (alias of select). This makes is consistent with TextField, CheckBox...
982 annotated / raw | Diffs: previous, other | Lines: 4113 ( +14, -14 ) Created: 2006-05-08 22:14:07 -0500 (2 years 6 months ago) | Author: bret | Changeset: 982 Copied to: branches/modal_dialog/trunk/watir/watir.rb 985 made it easier to disable default error_checkerBranch point for: modal_dialog
980 annotated / raw | Diffs: previous, other | Lines: 4113 ( +6, -3 ) Created: 2006-05-08 19:04:15 -0500 (2 years 6 months ago) | Author: bret | Changeset: 980 minor fixes and doc. remove install.rb (broken). add defaults to until_with_timeout.
974 annotated / raw | Diffs: previous, other | Lines: 4110 ( +1, -1 ) Created: 2006-05-02 13:59:21 -0500 (2 years 6 months ago) | Author: bret | Changeset: 974 added url to Access Denied error message
973 annotated / raw | Diffs: previous, other | Lines: 4110 ( +10, -10 ) Created: 2006-05-01 19:16:03 -0500 (2 years 6 months ago) | Author: bret | Changeset: 973 added IE.exists? which returns whether the browser still exists. removed Watir::exists? which never worked right anyway.
971 annotated / raw | Diffs: previous, other | Lines: 4110 ( +0, -1 ) Created: 2006-04-29 11:31:04 -0500 (2 years 6 months ago) | Author: bret | Changeset: 971 oops!
970 annotated / raw | Diffs: previous, other | Lines: 4111 ( +24, -21 ) Created: 2006-04-29 10:56:01 -0500 (2 years 6 months ago) | Author: bret | Changeset: 970 removed potential silent horror in the xpath code due to a begin/rescue block.
965 annotated / raw | Diffs: previous, other | Lines: 4108 ( +11, -6 ) Created: 2006-04-21 17:17:10 -0500 (2 years 7 months ago) | Author: bret | Changeset: 965 fix for "Unable to attach to Modal Window" error
958 annotated / raw | Diffs: previous, other | Lines: 4103 ( +3764, -3764 ) Created: 2006-04-19 12:59:06 -0500 (2 years 7 months ago) | Author: bret | Changeset: 958 reformatted code to use two spaces.
957 annotated / raw | Diffs: previous, other | Lines: 4103 ( +3, -1 ) Created: 2006-04-18 09:06:44 -0500 (2 years 7 months ago) | Author: bret | Changeset: 957 require rexml 3.1.4 or later (for xpath), now that it has been released.
956 annotated / raw | Diffs: previous, other | Lines: 4101 ( +15, -15 ) Created: 2006-04-17 23:01:09 -0500 (2 years 7 months ago) | Author: bret | Changeset: 956 code cleanup
955 annotated / raw | Diffs: previous, other | Lines: 4101 ( +4, -4 ) Created: 2006-04-17 20:38:07 -0500 (2 years 7 months ago) | Author: bret | Changeset: 955 Fixed xpath bug: Commands such as this weren't working:$ie.link(:xpath , "//a[text()='test1']").click The problem was unnecessary whitespace padding in html_source.
950 annotated / raw | Diffs: previous, other | Lines: 4101 ( +3, -1 ) Created: 2006-04-16 15:31:19 -0500 (2 years 7 months ago) | Author: bret | Changeset: 950 bug fix. calls to wait would block in a modal dialog. this showed up in a call to SelectList#select(which calls @container.wait).
949 annotated / raw | Diffs: previous, other | Lines: 4099 ( +34, -19 ) Created: 2006-04-15 18:23:52 -0500 (2 years 7 months ago) | Author: bret | Changeset: 949 Return ordinary collections from Container#rows and Container#cells
945 annotated / raw | Diffs: previous, other | Lines: 4084 ( +18, -3 ) Created: 2006-03-27 12:21:33 -0600 (2 years 7 months ago) | Author: bret | Changeset: 945 updates to attach_modal
942 annotated / raw | Diffs: previous, other | Lines: 4069 ( +17, -3 ) Created: 2006-03-26 18:23:13 -0600 (2 years 7 months ago) | Author: bret | Changeset: 942 This fixes a long standing nagging problem -- or at least onethat has been nagging me a lot, although there has been little public discussion. The problem showed up either as a delay when successively running scripts. If you ran one script and then ran another (as a new ruby process) then the second script would usually wait about 30 seconds before running. This was really annoying especially when running short unit tests. The other way that the problem would show up would be that a script would get unable to connect to OLE errors on first running it. Analysis showed that this problem was coincident with the fact that there was an iexplore.exe process that was living for about 30 seconds after a script exited. If you killed this process manually, then the delayed/failed behavior would be avoided. This problem now appears to have been a side effect of a solution to a similar problem. That problem was that users would get OLE errors when they ran successive test scripts (in the same test suite) that closed and opened browsers (typically one per script). The solution was to create an additional, hidden browser that would essentially keep the iexplore process from closing (which was the source of the OLE errors). The new solution was to only create this additional, hidden browser when the @@persist_ole_connection class variable is true. It is now nil by default. Users that want to open and close browsers in their scripts will want to set this to true.
934 annotated / raw | Diffs: previous, other | Lines: 4055 ( +1, -1 ) Created: 2006-03-10 14:44:38 -0600 (2 years 8 months ago) | Author: bret | Changeset: 934 Fix for ie.form().text_field bug (IEnum interface not found) that was reported by users of the webrecorder testing Google.
929 annotated / raw | Diffs: previous, other | Lines: 4055 ( +4, -3 ) Created: 2006-02-26 18:01:02 -0600 (2 years 8 months ago) | Author: bret | Changeset: 929 Created rdoc rake task.Now use "rake rdoc" instead of "build-rdoc.bat" to generate rdoc Changed Watir::IE::VERSION to include the scm revision number. This is now automatically used as the version by the gem rake task.
|