watir-classic 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. data/.gitignore +7 -0
  2. data/.gitmodules +3 -0
  3. data/.rspec +1 -0
  4. data/.yardopts +5 -0
  5. data/CHANGES +20 -10
  6. data/CONTRIBUTORS.txt +55 -0
  7. data/Gemfile +3 -0
  8. data/Gemfile.lock +78 -0
  9. data/README.rdoc +8 -14
  10. data/Rakefile +32 -0
  11. data/VERSION +1 -1
  12. data/lib/watir-classic.rb +0 -1
  13. data/lib/watir-classic/IEDialog/IEDialog.cpp +225 -0
  14. data/lib/watir-classic/IEDialog/IEDialog.h +15 -0
  15. data/lib/watir-classic/IEDialog/IEDialog.vcproj +159 -0
  16. data/lib/watir-classic/IEDialog/ReadMe.txt +40 -0
  17. data/lib/watir-classic/IEDialog/stdafx.cpp +8 -0
  18. data/lib/watir-classic/IEDialog/stdafx.h +21 -0
  19. data/lib/watir-classic/browser.rb +1 -1
  20. data/lib/watir-classic/container.rb +4 -33
  21. data/lib/watir-classic/core.rb +1 -3
  22. data/lib/watir-classic/dialogs/alert.rb +46 -0
  23. data/lib/watir-classic/dialogs/file_field.rb +1 -0
  24. data/lib/watir-classic/drag_and_drop_helper.rb +18 -6
  25. data/lib/watir-classic/element.rb +0 -2
  26. data/lib/watir-classic/ext/json2.js +487 -0
  27. data/lib/watir-classic/ie-class.rb +10 -164
  28. data/lib/watir-classic/ie.rb +2 -0
  29. data/lib/watir-classic/input_elements.rb +1 -1
  30. data/lib/watir-classic/modal_dialog.rb +1 -7
  31. data/lib/watir-classic/module.rb +1 -10
  32. data/lib/watir-classic/non_control_elements.rb +11 -0
  33. data/lib/watir-classic/page-container.rb +22 -24
  34. data/lib/watir-classic/screenshot.rb +33 -0
  35. data/lib/watir-classic/win32ole/1.8.7/win32ole.patch +56 -0
  36. data/lib/watir-classic/win32ole/1.9.3/win32ole.patch +63 -0
  37. data/lib/watir-classic/win32ole/build_notes.txt +18 -0
  38. data/lib/watir-classic/win32ole/history.txt +88 -0
  39. data/spec/browser_spec.rb +34 -0
  40. data/spec/implementation.rb +18 -0
  41. data/watir-classic.gemspec +40 -0
  42. data/watir.gif +0 -0
  43. metadata +159 -192
  44. data/bin/watir-console +0 -5
  45. data/lib/watir-classic/assertions.rb +0 -44
  46. data/lib/watir-classic/dialogs/javascript.rb +0 -43
  47. data/lib/watir-classic/irb-history.rb +0 -31
  48. data/lib/watir-classic/logger.rb +0 -19
  49. data/lib/watir-classic/screen_capture.rb +0 -115
  50. data/lib/watir-classic/testcase.rb +0 -97
  51. data/lib/watir-classic/waiter.rb +0 -98
  52. data/rakefile.rb +0 -54
  53. data/unittests/all_tests.rb +0 -10
  54. data/unittests/buttons_xpath_test.rb +0 -68
  55. data/unittests/checkbox_test.rb +0 -163
  56. data/unittests/checkbox_xpath_test.rb +0 -106
  57. data/unittests/click_no_wait_test.rb +0 -23
  58. data/unittests/close_all_test.rb +0 -17
  59. data/unittests/core_tests.rb +0 -17
  60. data/unittests/css_selector_test.rb +0 -44
  61. data/unittests/css_test.rb +0 -38
  62. data/unittests/dialog_test.rb +0 -64
  63. data/unittests/div2_xpath_test.rb +0 -21
  64. data/unittests/div_test.rb +0 -170
  65. data/unittests/div_xpath_test.rb +0 -95
  66. data/unittests/document_standards.rb +0 -63
  67. data/unittests/element_collection_indexes_test.rb +0 -57
  68. data/unittests/element_collections_test.rb +0 -100
  69. data/unittests/element_test.rb +0 -47
  70. data/unittests/errorchecker_test.rb +0 -31
  71. data/unittests/filefield_test.rb +0 -43
  72. data/unittests/filefield_xpath_test.rb +0 -35
  73. data/unittests/form_test.rb +0 -282
  74. data/unittests/form_xpath_test.rb +0 -254
  75. data/unittests/frame_test.rb +0 -165
  76. data/unittests/google_form_test.rb +0 -15
  77. data/unittests/html/JavascriptClick.html +0 -39
  78. data/unittests/html/blankpage.html +0 -11
  79. data/unittests/html/buttons1.html +0 -40
  80. data/unittests/html/checkboxes1.html +0 -89
  81. data/unittests/html/click_no_wait.html +0 -14
  82. data/unittests/html/complex_table.html +0 -35
  83. data/unittests/html/cssTest.html +0 -42
  84. data/unittests/html/depot_store.html +0 -59
  85. data/unittests/html/div.html +0 -92
  86. data/unittests/html/div_xml.html +0 -21
  87. data/unittests/html/fileupload.html +0 -44
  88. data/unittests/html/formTest1.html +0 -38
  89. data/unittests/html/forms2.html +0 -44
  90. data/unittests/html/forms3.html +0 -131
  91. data/unittests/html/forms4.html +0 -26
  92. data/unittests/html/frame_buttons.html +0 -4
  93. data/unittests/html/frame_links.html +0 -4
  94. data/unittests/html/frame_multi.html +0 -5
  95. data/unittests/html/google_india.html +0 -119
  96. data/unittests/html/ie7_document_standards.html +0 -9
  97. data/unittests/html/ie8_document_standards.html +0 -9
  98. data/unittests/html/ie9_document_standards.html +0 -9
  99. data/unittests/html/iframe.html +0 -3
  100. data/unittests/html/iframeTest.html +0 -17
  101. data/unittests/html/iframeTest1.html +0 -7
  102. data/unittests/html/iframeTest2.html +0 -5
  103. data/unittests/html/images/1.gif +0 -0
  104. data/unittests/html/images/2.GIF +0 -0
  105. data/unittests/html/images/3.GIF +0 -0
  106. data/unittests/html/images/button.jpg +0 -0
  107. data/unittests/html/images/circle.jpg +0 -0
  108. data/unittests/html/images/map.GIF +0 -0
  109. data/unittests/html/images/map2.gif +0 -0
  110. data/unittests/html/images/minus.GIF +0 -0
  111. data/unittests/html/images/originaltriangle.jpg +0 -0
  112. data/unittests/html/images/plus.gif +0 -0
  113. data/unittests/html/images/square.jpg +0 -0
  114. data/unittests/html/images/triangle.jpg +0 -0
  115. data/unittests/html/images1.html +0 -65
  116. data/unittests/html/javascriptevents.html +0 -33
  117. data/unittests/html/link_pass.html +0 -11
  118. data/unittests/html/links1.html +0 -37
  119. data/unittests/html/links2.html +0 -11
  120. data/unittests/html/links_multi.html +0 -12
  121. data/unittests/html/list_matters.html +0 -720
  122. data/unittests/html/lists.html +0 -18
  123. data/unittests/html/map_test.html +0 -30
  124. data/unittests/html/modal_dialog.html +0 -10
  125. data/unittests/html/modal_dialog_launcher.html +0 -12
  126. data/unittests/html/multiple_specifiers.html +0 -64
  127. data/unittests/html/nestedFrames.html +0 -6
  128. data/unittests/html/new_browser.html +0 -17
  129. data/unittests/html/pass.html +0 -13
  130. data/unittests/html/popups1.html +0 -59
  131. data/unittests/html/pre.html +0 -29
  132. data/unittests/html/quirks_document_standards.html +0 -8
  133. data/unittests/html/radioButtons1.html +0 -71
  134. data/unittests/html/select_tealeaf.html +0 -54
  135. data/unittests/html/selectboxes1.html +0 -52
  136. data/unittests/html/simple_table.html +0 -25
  137. data/unittests/html/simple_table_buttons.html +0 -104
  138. data/unittests/html/simple_table_columns.html +0 -75
  139. data/unittests/html/table1.html +0 -179
  140. data/unittests/html/tableCell_using_xpath.html +0 -19
  141. data/unittests/html/table_and_tablerow_to_a.html +0 -174
  142. data/unittests/html/textarea.html +0 -30
  143. data/unittests/html/textfields1.html +0 -100
  144. data/unittests/html/textsearch.html +0 -44
  145. data/unittests/html/wallofcheckboxes.html +0 -1003
  146. data/unittests/html/xpath_nbsp.html +0 -11
  147. data/unittests/html/zeroindex.html +0 -11
  148. data/unittests/ie_exists_test.rb +0 -16
  149. data/unittests/ie_mock.rb +0 -94
  150. data/unittests/ie_test.rb +0 -54
  151. data/unittests/images_test.rb +0 -156
  152. data/unittests/images_xpath_test.rb +0 -90
  153. data/unittests/index_specifier_test.rb +0 -31
  154. data/unittests/js_events_test.rb +0 -31
  155. data/unittests/links_multi_test.rb +0 -34
  156. data/unittests/links_test.rb +0 -131
  157. data/unittests/links_xpath_test.rb +0 -38
  158. data/unittests/lists_test.rb +0 -23
  159. data/unittests/map_test.rb +0 -98
  160. data/unittests/minmax_test.rb +0 -37
  161. data/unittests/navigate_test.rb +0 -38
  162. data/unittests/nbsp_xpath_test.rb +0 -16
  163. data/unittests/no_wait_test.rb +0 -28
  164. data/unittests/non_core_tests.rb +0 -12
  165. data/unittests/other/all_tests_concurrent.rb +0 -57
  166. data/unittests/other/navigate_exception_test.rb +0 -24
  167. data/unittests/other/rexml_unit_test.rb +0 -27
  168. data/unittests/other/screen_capture_test.rb +0 -53
  169. data/unittests/other/testcase_method_order_test.rb +0 -36
  170. data/unittests/other/testcase_verify_test.rb +0 -25
  171. data/unittests/other/wait_until_test.rb +0 -102
  172. data/unittests/pagecontainstext_test.rb +0 -69
  173. data/unittests/parent_child_test.rb +0 -27
  174. data/unittests/perf_test.rb +0 -20
  175. data/unittests/pre_test.rb +0 -49
  176. data/unittests/radios_test.rb +0 -181
  177. data/unittests/radios_xpath_test.rb +0 -100
  178. data/unittests/security_setting_test.rb +0 -24
  179. data/unittests/selectbox_test.rb +0 -144
  180. data/unittests/selectbox_xpath_test.rb +0 -102
  181. data/unittests/setup.rb +0 -69
  182. data/unittests/speed_settings_test.rb +0 -67
  183. data/unittests/table_cell_using_xpath_test.rb +0 -34
  184. data/unittests/table_test.rb +0 -296
  185. data/unittests/table_xpath_test.rb +0 -109
  186. data/unittests/test_tests.rb +0 -9
  187. data/unittests/textarea_test.rb +0 -92
  188. data/unittests/textarea_xpath_test.rb +0 -77
  189. data/unittests/textfield_for_ch_char_test.rb +0 -32
  190. data/unittests/textfields_test.rb +0 -184
  191. data/unittests/textfields_xpath_test.rb +0 -110
  192. data/unittests/version_test.rb +0 -15
  193. data/unittests/win32ole_so_test.rb +0 -35
  194. data/unittests/window_tests.rb +0 -10
  195. data/unittests/windows/attach_to_existing_window_test.rb +0 -52
  196. data/unittests/windows/attach_to_new_window_test.rb +0 -74
  197. data/unittests/windows/close_window_test.rb +0 -20
  198. data/unittests/windows/frame_links_test.rb +0 -23
  199. data/unittests/windows/ie-each_test.rb +0 -46
  200. data/unittests/windows/modal_dialog_test.rb +0 -95
  201. data/unittests/windows/new_process_test.rb +0 -24
  202. data/unittests/windows/new_test.rb +0 -58
  203. data/unittests/windows/open_close_test.rb +0 -19
  204. data/unittests/windows/send_keys_test.rb +0 -26
  205. data/unittests/xpath_tests.rb +0 -11
  206. data/watir-rdoc.rb +0 -7
@@ -0,0 +1,63 @@
1
+ Index: ext/win32ole/win32ole.c
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
4
+ <+>UTF-8
5
+ ===================================================================
6
+ --- ext/win32ole/win32ole.c (revision )
7
+ +++ ext/win32ole/win32ole.c (revision )
8
+ @@ -9073,6 +9073,46 @@
9
+ st_free_table(enc2cp_table);
10
+ }
11
+
12
+ +
13
+ +
14
+ +/*
15
+ + * WIN32OLE.connect_unknown( pUnknown ) --> aWIN32OLE
16
+ + * ----
17
+ + * Returns running OLE Automation object or WIN32OLE object from a
18
+ +IUnknown pointer
19
+ + * the IUnknown pointer is passed in as a FIXNUM
20
+ + */
21
+ +static VALUE
22
+ +fole_s_connect_unknown(VALUE self, VALUE iUnknown)
23
+ +{
24
+ + HRESULT hr;
25
+ + IDispatch *pDispatch;
26
+ + IUnknown *pUnknown;
27
+ +
28
+ + /* initialize to use OLE */
29
+ + ole_initialize();
30
+ +
31
+ + //cast from int to IUnknown*
32
+ + pUnknown = (IUnknown*)FIX2INT(iUnknown);
33
+ +
34
+ + hr = pUnknown->lpVtbl->QueryInterface(pUnknown, &IID_IDispatch,
35
+ + (void **)&pDispatch);
36
+ + if(FAILED(hr)) {
37
+ + OLE_RELEASE(pUnknown);
38
+ + ole_raise(hr, eWIN32OLERuntimeError,
39
+ + "Failed to connect to WIN32OLE server `%d'",
40
+ + FIX2INT(iUnknown));
41
+ + }
42
+ +
43
+ + OLE_RELEASE(pUnknown);
44
+ +
45
+ + return create_win32ole_object(self, pDispatch, 0,0);
46
+ +}
47
+ +
48
+ +
49
+ +
50
+ +
51
+ +
52
+ void
53
+ Init_win32ole()
54
+ {
55
+ @@ -9105,6 +9145,8 @@
56
+ rb_define_method(cWIN32OLE, "initialize", fole_initialize, -1);
57
+
58
+ rb_define_singleton_method(cWIN32OLE, "connect", fole_s_connect, -1);
59
+ + rb_define_singleton_method(cWIN32OLE, "connect_unknown", fole_s_connect_unknown, 1);
60
+ +
61
+ rb_define_singleton_method(cWIN32OLE, "const_load", fole_s_const_load, -1);
62
+
63
+ rb_define_singleton_method(cWIN32OLE, "ole_free", fole_s_free, 1);
@@ -0,0 +1,18 @@
1
+ Compiling win32ole (Ruby 1.8.7 +)
2
+ ==================================
3
+
4
+ (1) Download and install the appropriate version of Ruby: http://www.ruby-lang.org/en/downloads/
5
+ (2) Download and install the Ruby DevKit: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
6
+ (3) Check out the source code: http://www.ruby-lang.org/en/community/ruby-core/
7
+ (4) Go to the directory where you installded the DevKit and run devkitvars.bat
8
+ (5) Go into the ruby source tree: ruby/etc/win32ole
9
+ (6) Make sure you can build without the patch
10
+ (a) Run: 'ruby extconf.rb'
11
+ (b) Run: 'make'
12
+ (c) Presuming you didn't encounter any errors, this will create: win32ole.so
13
+ (d) Run: 'make clean'
14
+ (7) Apply the win32ole.patch (if a lot has changed it might not go cleanly and require some manual steps)
15
+ (8) Re-run through step (6) now that the code has been patched.
16
+ (a) Pay close attention to any warnings or errors. (the interfaces or parameters may have changed slightly)
17
+ (b) Create a patch if the original patch didn't go cleanly
18
+ (c) copy the .so (and patch if necessary) into the watir source tree
@@ -0,0 +1,88 @@
1
+ Yaxin Wang/US/ThoughtWorks
2
+ 09/22/2005 02:40 PM To
3
+ Bret Pettichord/US/ThoughtWorks@ThoughtWorks
4
+ cc
5
+
6
+ bcc
7
+
8
+ Subject
9
+ Fw: win32ole is extended
10
+
11
+
12
+
13
+
14
+ ----- Forwarded by Yaxin Wang/US/ThoughtWorks on 09/22/2005 12:42 PM -----
15
+ Yaxin Wang/US/ThoughtWorks
16
+ 09/16/2005 04:45 PM
17
+ To
18
+ Bret Pettichord/US/ThoughtWorks
19
+ cc
20
+ Levi Khatskevitch/US/ThoughtWorks@ThoughtWorks, Ahmed S
21
+ Elshamy/Corporate/ThoughtWorks/US@ThoughtWorks, Ruby on Rails TWIG
22
+ Subject
23
+ win32ole is extended
24
+
25
+
26
+
27
+
28
+ I extended the win32ole to support the creation of ruby COM object from an
29
+ IUnknown pointer.
30
+ Now we can use a win32api call to get the IUnknown pointer of a IE window
31
+ or dialog by it's name, then we can use win32ole to wrap the IUnknown
32
+ pointer and work on the DOM object directly.
33
+ Have a look at the test_win32ole.rb for more detail.
34
+
35
+ Yaxin
36
+
37
+ *********** changes to win32ole.c ******************
38
+
39
+ added the function fole_s_connect_unknown
40
+
41
+ /*
42
+ * WIN32OLE.connect_unknown( pUnknown ) --> aWIN32OLE
43
+ * ----
44
+ * Returns running OLE Automation object or WIN32OLE object from a
45
+ IUnknown pointer
46
+ * the IUnknown pointer is passed in as a FIXNUM
47
+ */
48
+ static VALUE
49
+ fole_s_connect_unknown(self, iUnknown)
50
+ VALUE self;
51
+ VALUE iUnknown;
52
+ {
53
+ HRESULT hr;
54
+ IDispatch *pDispatch;
55
+ IUnknown *pUnknown;
56
+
57
+ /* initialize to use OLE */
58
+ ole_initialize();
59
+
60
+ //cast from int to IUnknown*
61
+ pUnknown = (IUnknown*)FIX2INT(iUnknown);
62
+
63
+ hr = pUnknown->lpVtbl->QueryInterface(pUnknown, &IID_IDispatch,
64
+ (void **)&pDispatch);
65
+ if(FAILED(hr)) {
66
+ OLE_RELEASE(pUnknown);
67
+ ole_raise(hr, eWIN32OLE_RUNTIME_ERROR,
68
+ "Failed to connect to WIN32OLE server `%d'",
69
+ FIX2INT(iUnknown));
70
+ }
71
+
72
+ OLE_RELEASE(pUnknown);
73
+
74
+ return create_win32ole_object(self, pDispatch, Qnil, Qnil);
75
+ }
76
+
77
+ exported the fuction fole_s_connect_unknown as connect_unknown
78
+
79
+ rb_define_singleton_method(cWIN32OLE, "connect_unknown",
80
+ fole_s_connect_unknown, 1);
81
+
82
+ *********** changes to IEDialog.dll ******************
83
+
84
+ added the fuction GetUnknown to get the IUnknown pointer from the name of
85
+ the window
86
+ void GetUnknown(LPCTSTR windowName, int* pOut);
87
+
88
+
@@ -0,0 +1,34 @@
1
+ require File.expand_path("watirspec/spec_helper", File.dirname(__FILE__))
2
+
3
+ describe "Browser" do
4
+ before do
5
+ browser.goto(WatirSpec.url_for("images.html"))
6
+ end
7
+
8
+ context "#attach" do
9
+ it "attaches to existing browser by title" do
10
+ Browser.attach(:title, /Images/).hwnd.should == browser.hwnd
11
+ end
12
+
13
+ it "attaches to existing browser by url" do
14
+ Browser.attach(:url, /images\.html/).hwnd.should == browser.hwnd
15
+ end
16
+
17
+ it "attaches to existing browser by handle" do
18
+ Browser.attach(:hwnd, browser.hwnd).hwnd.should == browser.hwnd
19
+ end
20
+
21
+ it "fails with an error if specified browser was not found" do
22
+ begin
23
+ original_timeout = browser.class.attach_timeout
24
+ browser.class.attach_timeout = 0.1
25
+
26
+ expect {
27
+ Browser.attach(:title, "not-existing-window")
28
+ }.to raise_error(NoMatchingWindowFoundException)
29
+ ensure
30
+ browser.class.attach_timeout = original_timeout
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,18 @@
1
+ $LOAD_PATH.unshift File.expand_path("/../lib", File.dirname(__FILE__))
2
+ require "watir-classic"
3
+
4
+ WatirSpec.implementation do |imp|
5
+ imp.name = :watir_classic
6
+
7
+ WatirSpec.persistent_browser = false
8
+ imp.browser_class = Watir::IE
9
+ browser = :ie
10
+ browser_version = "ie#{imp.browser_class.version.to_i}".to_sym
11
+
12
+ imp.guard_proc = lambda { |args|
13
+ args.any? {|arg| arg == :watir_classic || arg == [:watir_classic, browser] || arg == :ie || arg == browser_version || arg == [:watir_classic, browser_version] }
14
+ }
15
+ end
16
+
17
+ include Watir
18
+ include Watir::Exception
@@ -0,0 +1,40 @@
1
+ # -*- encoding: utf-8 -*-
2
+ Gem::Specification.new do |s|
3
+ s.name = 'watir-classic'
4
+ s.version = File.read("VERSION").strip
5
+ s.author = 'Bret Pettichord'
6
+ s.email = 'watir-general@groups.google.com'
7
+ s.description = <<-EOF
8
+ WATIR is "Web Application Testing in Ruby". Watir (pronounced water) is a free,
9
+ open-source functional testing tool for automating browser-based tests of web applications.
10
+ It works with applications written in any language.
11
+ Watir drives the Internet Explorer browser the same way an end user would.
12
+ It clicks links, fills in forms, presses buttons.
13
+ Watir also checks results, such as whether expected text appears on the
14
+ page, or whether a control is enabled.
15
+ Watir can test web applications written in any language.
16
+ Watir is a Ruby library that works with Internet Explorer on Windows.
17
+ EOF
18
+ s.homepage = 'http://watir.com/'
19
+ s.summary = 'Automated testing tool for web applications.'
20
+
21
+ s.files = `git ls-files`.split("\n")
22
+ s.test_files = `git ls-files -- spec/*`.split("\n")
23
+ s.require_paths = ["lib"]
24
+ s.requirements << 'Microsoft Windows running Internet Explorer 5.5 or later.'
25
+
26
+ s.add_dependency 'win32-process', '>= 0.5.5'
27
+ s.add_dependency 'windows-pr', '>= 0.6.6'
28
+ s.add_dependency 'nokogiri'
29
+ s.add_dependency 'ffi', '~>1.0'
30
+ s.add_dependency 'rautomation', '~>0.7.2'
31
+ s.add_dependency 'user-choices'
32
+ s.add_dependency 'yajl-ruby'
33
+ s.add_dependency 'win32screenshot'
34
+
35
+ s.add_development_dependency("rspec", "~>2.3")
36
+ s.add_development_dependency("syntax")
37
+ s.add_development_dependency("yard")
38
+ s.add_development_dependency("sinatra")
39
+ s.add_development_dependency("childprocess")
40
+ end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-classic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-23 00:00:00.000000000 Z
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: win32-process
@@ -107,6 +107,118 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: yajl-ruby
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: win32screenshot
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rspec
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: '2.3'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: '2.3'
158
+ - !ruby/object:Gem::Dependency
159
+ name: syntax
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: yard
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: sinatra
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: childprocess
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
110
222
  description: ! " WATIR is \"Web Application Testing in Ruby\". Watir (pronounced
111
223
  water) is a free,\n open-source functional testing tool for automating browser-based
112
224
  tests of web applications.\n It works with applications written in any language.\n
@@ -116,31 +228,47 @@ description: ! " WATIR is \"Web Application Testing in Ruby\". Watir (pronoun
116
228
  enabled.\n Watir can test web applications written in any language.\n Watir
117
229
  is a Ruby library that works with Internet Explorer on Windows.\n"
118
230
  email: watir-general@groups.google.com
119
- executables:
120
- - watir-console
231
+ executables: []
121
232
  extensions: []
122
- extra_rdoc_files:
123
- - README.rdoc
233
+ extra_rdoc_files: []
124
234
  files:
235
+ - .gitignore
236
+ - .gitmodules
237
+ - .rspec
238
+ - .yardopts
125
239
  - CHANGES
126
- - rakefile.rb
127
- - VERSION
128
- - README.rdoc
129
- - watir-rdoc.rb
240
+ - CONTRIBUTORS.txt
241
+ - Gemfile
242
+ - Gemfile.lock
130
243
  - LICENSE
244
+ - README.rdoc
245
+ - Rakefile
246
+ - VERSION
131
247
  - lib/watir-classic.rb
132
- - lib/watir-classic/assertions.rb
248
+ - lib/watir-classic/IEDialog/IEDialog.cpp
249
+ - lib/watir-classic/IEDialog/IEDialog.h
250
+ - lib/watir-classic/IEDialog/IEDialog.vcproj
251
+ - lib/watir-classic/IEDialog/ReadMe.txt
252
+ - lib/watir-classic/IEDialog/Release/IEDialog.dll
253
+ - lib/watir-classic/IEDialog/stdafx.cpp
254
+ - lib/watir-classic/IEDialog/stdafx.h
133
255
  - lib/watir-classic/browser.rb
134
256
  - lib/watir-classic/browsers.rb
135
257
  - lib/watir-classic/close_all.rb
136
258
  - lib/watir-classic/container.rb
259
+ - lib/watir-classic/contrib/enabled_popup.rb
260
+ - lib/watir-classic/contrib/ie-new-process.rb
261
+ - lib/watir-classic/contrib/page_checker.rb
137
262
  - lib/watir-classic/cookies.rb
138
263
  - lib/watir-classic/core.rb
264
+ - lib/watir-classic/dialogs/alert.rb
265
+ - lib/watir-classic/dialogs/file_field.rb
139
266
  - lib/watir-classic/drag_and_drop_helper.rb
140
267
  - lib/watir-classic/element.rb
141
268
  - lib/watir-classic/element_collection.rb
142
269
  - lib/watir-classic/element_extensions.rb
143
270
  - lib/watir-classic/exceptions.rb
271
+ - lib/watir-classic/ext/json2.js
144
272
  - lib/watir-classic/form.rb
145
273
  - lib/watir-classic/frame.rb
146
274
  - lib/watir-classic/ie-class.rb
@@ -148,10 +276,8 @@ files:
148
276
  - lib/watir-classic/ie.rb
149
277
  - lib/watir-classic/image.rb
150
278
  - lib/watir-classic/input_elements.rb
151
- - lib/watir-classic/irb-history.rb
152
279
  - lib/watir-classic/link.rb
153
280
  - lib/watir-classic/locator.rb
154
- - lib/watir-classic/logger.rb
155
281
  - lib/watir-classic/matches.rb
156
282
  - lib/watir-classic/modal_dialog.rb
157
283
  - lib/watir-classic/module.rb
@@ -159,193 +285,31 @@ files:
159
285
  - lib/watir-classic/options.rb
160
286
  - lib/watir-classic/page-container.rb
161
287
  - lib/watir-classic/process.rb
162
- - lib/watir-classic/screen_capture.rb
288
+ - lib/watir-classic/screenshot.rb
163
289
  - lib/watir-classic/supported_elements.rb
164
290
  - lib/watir-classic/table.rb
165
- - lib/watir-classic/testcase.rb
166
291
  - lib/watir-classic/util.rb
167
292
  - lib/watir-classic/version.rb
168
293
  - lib/watir-classic/wait.rb
169
- - lib/watir-classic/waiter.rb
170
294
  - lib/watir-classic/wait_helper.rb
171
295
  - lib/watir-classic/win32.rb
172
296
  - lib/watir-classic/win32ole.rb
173
- - lib/watir-classic/window.rb
174
- - lib/watir-classic/xpath_locator.rb
175
- - lib/watir-classic/dialogs/file_field.rb
176
- - lib/watir-classic/dialogs/javascript.rb
177
- - unittests/all_tests.rb
178
- - unittests/buttons_xpath_test.rb
179
- - unittests/checkbox_test.rb
180
- - unittests/checkbox_xpath_test.rb
181
- - unittests/click_no_wait_test.rb
182
- - unittests/close_all_test.rb
183
- - unittests/core_tests.rb
184
- - unittests/css_selector_test.rb
185
- - unittests/css_test.rb
186
- - unittests/dialog_test.rb
187
- - unittests/div2_xpath_test.rb
188
- - unittests/div_test.rb
189
- - unittests/div_xpath_test.rb
190
- - unittests/document_standards.rb
191
- - unittests/element_collections_test.rb
192
- - unittests/element_collection_indexes_test.rb
193
- - unittests/element_test.rb
194
- - unittests/errorchecker_test.rb
195
- - unittests/filefield_test.rb
196
- - unittests/filefield_xpath_test.rb
197
- - unittests/form_test.rb
198
- - unittests/form_xpath_test.rb
199
- - unittests/frame_test.rb
200
- - unittests/google_form_test.rb
201
- - unittests/ie_exists_test.rb
202
- - unittests/ie_mock.rb
203
- - unittests/ie_test.rb
204
- - unittests/images_test.rb
205
- - unittests/images_xpath_test.rb
206
- - unittests/index_specifier_test.rb
207
- - unittests/js_events_test.rb
208
- - unittests/links_multi_test.rb
209
- - unittests/links_test.rb
210
- - unittests/links_xpath_test.rb
211
- - unittests/lists_test.rb
212
- - unittests/map_test.rb
213
- - unittests/minmax_test.rb
214
- - unittests/navigate_test.rb
215
- - unittests/nbsp_xpath_test.rb
216
- - unittests/non_core_tests.rb
217
- - unittests/no_wait_test.rb
218
- - unittests/pagecontainstext_test.rb
219
- - unittests/parent_child_test.rb
220
- - unittests/perf_test.rb
221
- - unittests/pre_test.rb
222
- - unittests/radios_test.rb
223
- - unittests/radios_xpath_test.rb
224
- - unittests/security_setting_test.rb
225
- - unittests/selectbox_test.rb
226
- - unittests/selectbox_xpath_test.rb
227
- - unittests/setup.rb
228
- - unittests/speed_settings_test.rb
229
- - unittests/table_cell_using_xpath_test.rb
230
- - unittests/table_test.rb
231
- - unittests/table_xpath_test.rb
232
- - unittests/test_tests.rb
233
- - unittests/textarea_test.rb
234
- - unittests/textarea_xpath_test.rb
235
- - unittests/textfields_test.rb
236
- - unittests/textfields_xpath_test.rb
237
- - unittests/textfield_for_ch_char_test.rb
238
- - unittests/version_test.rb
239
- - unittests/win32ole_so_test.rb
240
- - unittests/window_tests.rb
241
- - unittests/xpath_tests.rb
242
- - unittests/html/blankpage.html
243
- - unittests/html/buttons1.html
244
- - unittests/html/checkboxes1.html
245
- - unittests/html/click_no_wait.html
246
- - unittests/html/complex_table.html
247
- - unittests/html/cssTest.html
248
- - unittests/html/depot_store.html
249
- - unittests/html/div.html
250
- - unittests/html/div_xml.html
251
- - unittests/html/fileupload.html
252
- - unittests/html/forms2.html
253
- - unittests/html/forms3.html
254
- - unittests/html/forms4.html
255
- - unittests/html/formTest1.html
256
- - unittests/html/frame_buttons.html
257
- - unittests/html/frame_links.html
258
- - unittests/html/frame_multi.html
259
- - unittests/html/google_india.html
260
- - unittests/html/ie7_document_standards.html
261
- - unittests/html/ie8_document_standards.html
262
- - unittests/html/ie9_document_standards.html
263
- - unittests/html/iframe.html
264
- - unittests/html/iframeTest.html
265
- - unittests/html/iframeTest1.html
266
- - unittests/html/iframeTest2.html
267
- - unittests/html/images1.html
268
- - unittests/html/JavascriptClick.html
269
- - unittests/html/javascriptevents.html
270
- - unittests/html/links1.html
271
- - unittests/html/links2.html
272
- - unittests/html/links_multi.html
273
- - unittests/html/link_pass.html
274
- - unittests/html/lists.html
275
- - unittests/html/list_matters.html
276
- - unittests/html/map_test.html
277
- - unittests/html/modal_dialog.html
278
- - unittests/html/modal_dialog_launcher.html
279
- - unittests/html/multiple_specifiers.html
280
- - unittests/html/nestedFrames.html
281
- - unittests/html/new_browser.html
282
- - unittests/html/pass.html
283
- - unittests/html/popups1.html
284
- - unittests/html/pre.html
285
- - unittests/html/quirks_document_standards.html
286
- - unittests/html/radioButtons1.html
287
- - unittests/html/selectboxes1.html
288
- - unittests/html/select_tealeaf.html
289
- - unittests/html/simple_table.html
290
- - unittests/html/simple_table_buttons.html
291
- - unittests/html/simple_table_columns.html
292
- - unittests/html/table1.html
293
- - unittests/html/tableCell_using_xpath.html
294
- - unittests/html/table_and_tablerow_to_a.html
295
- - unittests/html/textarea.html
296
- - unittests/html/textfields1.html
297
- - unittests/html/textsearch.html
298
- - unittests/html/wallofcheckboxes.html
299
- - unittests/html/xpath_nbsp.html
300
- - unittests/html/zeroindex.html
301
- - unittests/html/images/1.gif
302
- - unittests/html/images/2.GIF
303
- - unittests/html/images/3.GIF
304
- - unittests/html/images/button.jpg
305
- - unittests/html/images/circle.jpg
306
- - unittests/html/images/map.GIF
307
- - unittests/html/images/map2.gif
308
- - unittests/html/images/minus.GIF
309
- - unittests/html/images/originaltriangle.jpg
310
- - unittests/html/images/plus.gif
311
- - unittests/html/images/square.jpg
312
- - unittests/html/images/triangle.jpg
313
- - unittests/other/all_tests_concurrent.rb
314
- - unittests/other/navigate_exception_test.rb
315
- - unittests/other/rexml_unit_test.rb
316
- - unittests/other/screen_capture_test.rb
317
- - unittests/other/testcase_method_order_test.rb
318
- - unittests/other/testcase_verify_test.rb
319
- - unittests/other/wait_until_test.rb
320
- - unittests/windows/attach_to_existing_window_test.rb
321
- - unittests/windows/attach_to_new_window_test.rb
322
- - unittests/windows/close_window_test.rb
323
- - unittests/windows/frame_links_test.rb
324
- - unittests/windows/ie-each_test.rb
325
- - unittests/windows/modal_dialog_test.rb
326
- - unittests/windows/new_process_test.rb
327
- - unittests/windows/new_test.rb
328
- - unittests/windows/open_close_test.rb
329
- - unittests/windows/send_keys_test.rb
330
- - lib/watir-classic/IEDialog/Release/IEDialog.dll
297
+ - lib/watir-classic/win32ole/1.8.7/win32ole.patch
331
298
  - lib/watir-classic/win32ole/1.8.7/win32ole.so
299
+ - lib/watir-classic/win32ole/1.9.3/win32ole.patch
332
300
  - lib/watir-classic/win32ole/1.9.3/win32ole.so
333
- - lib/watir-classic/contrib/enabled_popup.rb
334
- - lib/watir-classic/contrib/ie-new-process.rb
335
- - lib/watir-classic/contrib/page_checker.rb
336
- - bin/watir-console
337
- homepage: http://www.watir.com/
301
+ - lib/watir-classic/win32ole/build_notes.txt
302
+ - lib/watir-classic/win32ole/history.txt
303
+ - lib/watir-classic/window.rb
304
+ - lib/watir-classic/xpath_locator.rb
305
+ - spec/browser_spec.rb
306
+ - spec/implementation.rb
307
+ - watir-classic.gemspec
308
+ - watir.gif
309
+ homepage: http://watir.com/
338
310
  licenses: []
339
311
  post_install_message:
340
- rdoc_options:
341
- - --title
342
- - Watir API Reference
343
- - --accessor
344
- - def_wrap=R,def_wrap_guard=R
345
- - --main
346
- - README.rdoc
347
- - --exclude
348
- - unittests|camel_case.rb
312
+ rdoc_options: []
349
313
  require_paths:
350
314
  - lib
351
315
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -353,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
353
317
  requirements:
354
318
  - - ! '>='
355
319
  - !ruby/object:Gem::Version
356
- version: 1.8.7
320
+ version: '0'
357
321
  required_rubygems_version: !ruby/object:Gem::Requirement
358
322
  none: false
359
323
  requirements:
@@ -362,9 +326,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
326
  version: '0'
363
327
  requirements:
364
328
  - Microsoft Windows running Internet Explorer 5.5 or later.
365
- rubyforge_project: Watir
366
- rubygems_version: 1.8.21
329
+ rubyforge_project:
330
+ rubygems_version: 1.8.24
367
331
  signing_key:
368
332
  specification_version: 3
369
333
  summary: Automated testing tool for web applications.
370
- test_files: []
334
+ test_files:
335
+ - spec/browser_spec.rb
336
+ - spec/implementation.rb
337
+ has_rdoc: