operawatir 0.4-jruby → 0.4.1-jruby

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. data/.gitmodules +3 -3
  2. data/AUTHORS +1 -0
  3. data/CHANGES +454 -0
  4. data/README.md +67 -50
  5. data/Rakefile +6 -10
  6. data/VERSION +1 -1
  7. data/bin/desktopwatir +52 -29
  8. data/bin/operawatir +50 -18
  9. data/lib/operadriver/client-combined-nodeps.jar +0 -0
  10. data/lib/operadriver/webdriver-opera.jar +0 -0
  11. data/lib/operawatir.rb +8 -1
  12. data/lib/operawatir/browser.rb +35 -15
  13. data/lib/operawatir/collection.rb +2 -2
  14. data/lib/operawatir/compat.rb +3 -2
  15. data/lib/operawatir/compat/browser.rb +0 -5
  16. data/lib/operawatir/compat/collection.rb +15 -0
  17. data/lib/operawatir/compat/element.rb +72 -21
  18. data/lib/operawatir/compat/element_finders.rb +6 -0
  19. data/lib/operawatir/compat/selector.rb +7 -0
  20. data/lib/operawatir/compat/window.rb +49 -0
  21. data/lib/operawatir/desktop_browser.rb +88 -14
  22. data/lib/operawatir/desktop_common.rb +0 -2
  23. data/lib/operawatir/desktop_container.rb +82 -29
  24. data/lib/operawatir/desktop_helper.rb +2 -0
  25. data/lib/operawatir/element.rb +49 -25
  26. data/lib/operawatir/helper.rb +5 -3
  27. data/lib/operawatir/keys.rb +19 -6
  28. data/lib/operawatir/preferences.rb +315 -78
  29. data/lib/operawatir/quickwidgets.rb +2 -1
  30. data/lib/operawatir/quickwidgets/quick_addressfield.rb +12 -0
  31. data/lib/operawatir/quickwidgets/quick_button.rb +8 -2
  32. data/lib/operawatir/quickwidgets/quick_checkbox.rb +5 -5
  33. data/lib/operawatir/quickwidgets/quick_editfield.rb +8 -5
  34. data/lib/operawatir/quickwidgets/quick_find.rb +11 -0
  35. data/lib/operawatir/quickwidgets/quick_griditem.rb +11 -0
  36. data/lib/operawatir/quickwidgets/quick_gridlayout.rb +11 -0
  37. data/lib/operawatir/quickwidgets/quick_searchfield.rb +7 -1
  38. data/lib/operawatir/quickwidgets/quick_tab.rb +0 -1
  39. data/lib/operawatir/quickwidgets/quick_treeitem.rb +22 -1
  40. data/lib/operawatir/quickwidgets/quick_widget.rb +62 -23
  41. data/lib/operawatir/quickwidgets/quick_window.rb +32 -2
  42. data/lib/operawatir/screenshot.rb +46 -0
  43. data/lib/operawatir/version.rb +6 -4
  44. data/lib/operawatir/window.rb +53 -67
  45. data/operawatir.gemspec +310 -245
  46. data/spec/operawatir/README.md +4 -0
  47. data/spec/operawatir/core/browser_spec.rb +82 -0
  48. data/spec/operawatir/core/element_spec.rb +88 -0
  49. data/spec/operawatir/core/preferences_spec.rb +438 -0
  50. data/spec/operawatir/core/screenshot_spec.rb +76 -0
  51. data/spec/{new_watirspec → operawatir/core}/spatnav_spec.rb +3 -3
  52. data/spec/operawatir/core/window_spec.rb +76 -0
  53. data/spec/operawatir/desktop/desktopbrowser_spec.rb +316 -0
  54. data/spec/operawatir/desktop/quickaddressfield_spec.rb +59 -0
  55. data/spec/operawatir/desktop/quickbutton_spec.rb +248 -0
  56. data/spec/operawatir/desktop/quickcheckbox_spec.rb +36 -0
  57. data/spec/operawatir/desktop/quickdialogtab_spec.rb +30 -0
  58. data/spec/operawatir/desktop/quickdropdown_spec.rb +39 -0
  59. data/spec/operawatir/desktop/quickeditfield_spec.rb +51 -0
  60. data/spec/operawatir/desktop/quickfind_spec.rb +30 -0
  61. data/spec/operawatir/desktop/quickgriditem_spec.rb +16 -0
  62. data/spec/operawatir/desktop/quickgridlayout_spec.rb +15 -0
  63. data/spec/operawatir/desktop/quicklabel_spec.rb +28 -0
  64. data/spec/operawatir/desktop/quickradiobutton_spec.rb +24 -0
  65. data/spec/operawatir/desktop/quicksearchfield_spec.rb +26 -0
  66. data/spec/operawatir/desktop/quicktab_spec.rb +86 -0
  67. data/spec/operawatir/desktop/quickthumbnail_spec.rb +37 -0
  68. data/spec/operawatir/desktop/quicktreeitem_spec.rb +135 -0
  69. data/spec/operawatir/desktop/quicktreeview_spec.rb +30 -0
  70. data/spec/operawatir/desktop/quickwidget_spec.rb +101 -0
  71. data/spec/operawatir/desktop/quickwindow_spec.rb +108 -0
  72. data/spec/operawatir/desktop/shared/shared.rb +138 -0
  73. data/spec/operawatir/fixtures/boxes.html +22 -0
  74. data/spec/operawatir/fixtures/browsers.svg +367 -0
  75. data/spec/operawatir/fixtures/frames.html +13 -0
  76. data/spec/operawatir/fixtures/grid.html +29 -0
  77. data/spec/operawatir/fixtures/input_fields_value.html +6 -0
  78. data/spec/operawatir/fixtures/onclick.html +20 -0
  79. data/spec/operawatir/fixtures/paragraphs.html +15 -0
  80. data/spec/operawatir/fixtures/two_input_fields.html +6 -0
  81. data/spec/{new_watirspec → operawatir}/guards.rb +0 -0
  82. data/spec/operawatir/matchers.rb +68 -0
  83. data/spec/{legacy_watirspec → operawatir}/server.rb +0 -0
  84. data/spec/operawatir/watirspec.rake +43 -0
  85. data/spec/operawatir/watirspec_desktophelper.rb +14 -0
  86. data/spec/operawatir/watirspec_helper.rb +62 -0
  87. data/spec/{legacy_watirspec → watir2}/area_spec.rb +0 -0
  88. data/spec/{legacy_watirspec → watir2}/areas_spec.rb +0 -0
  89. data/spec/{legacy_watirspec → watir2}/browser_spec.rb +2 -0
  90. data/spec/{legacy_watirspec → watir2}/button_spec.rb +0 -0
  91. data/spec/{legacy_watirspec → watir2}/buttons_spec.rb +0 -0
  92. data/spec/{legacy_watirspec → watir2}/checkbox_spec.rb +0 -0
  93. data/spec/{legacy_watirspec → watir2}/checkboxes_spec.rb +0 -0
  94. data/spec/{legacy_watirspec → watir2}/collections_spec.rb +0 -0
  95. data/spec/{legacy_watirspec → watir2}/dd_spec.rb +0 -0
  96. data/spec/{legacy_watirspec → watir2}/dds_spec.rb +0 -0
  97. data/spec/{legacy_watirspec → watir2}/del_spec.rb +0 -0
  98. data/spec/{legacy_watirspec → watir2}/dels_spec.rb +0 -0
  99. data/spec/{legacy_watirspec → watir2}/div_spec.rb +0 -0
  100. data/spec/{legacy_watirspec → watir2}/divs_spec.rb +0 -0
  101. data/spec/{legacy_watirspec → watir2}/dl_spec.rb +0 -0
  102. data/spec/{legacy_watirspec → watir2}/dls_spec.rb +0 -0
  103. data/spec/{legacy_watirspec → watir2}/dt_spec.rb +0 -0
  104. data/spec/{legacy_watirspec → watir2}/dts_spec.rb +0 -0
  105. data/spec/watir2/element_spec.rb +155 -0
  106. data/spec/{legacy_watirspec → watir2}/em_spec.rb +0 -0
  107. data/spec/{legacy_watirspec → watir2}/ems_spec.rb +0 -0
  108. data/spec/{legacy_watirspec → watir2}/filefield_spec.rb +0 -0
  109. data/spec/{legacy_watirspec → watir2}/filefields_spec.rb +0 -0
  110. data/spec/{legacy_watirspec → watir2}/fixtures/2000_spans.html +0 -0
  111. data/spec/{legacy_watirspec → watir2}/fixtures/bug_duplicate_attributes.html +0 -0
  112. data/spec/{legacy_watirspec → watir2}/fixtures/bug_javascript_001.html +0 -0
  113. data/spec/{legacy_watirspec → watir2}/fixtures/buttons_with_duplicate_ids.html +0 -0
  114. data/spec/{legacy_watirspec → watir2}/fixtures/collections.html +0 -0
  115. data/spec/{legacy_watirspec → watir2}/fixtures/definition_lists.html +0 -0
  116. data/spec/{legacy_watirspec → watir2}/fixtures/euc-jp_text.html +0 -0
  117. data/spec/{legacy_watirspec → watir2}/fixtures/forms_with_input_elements.html +0 -0
  118. data/spec/{legacy_watirspec → watir2}/fixtures/frame_1.html +0 -0
  119. data/spec/{legacy_watirspec → watir2}/fixtures/frame_2.html +0 -0
  120. data/spec/{legacy_watirspec → watir2}/fixtures/frames.html +0 -0
  121. data/spec/{legacy_watirspec → watir2}/fixtures/iframes.html +0 -0
  122. data/spec/{legacy_watirspec → watir2}/fixtures/images.html +0 -0
  123. data/spec/{legacy_watirspec → watir2}/fixtures/images/1.gif +0 -0
  124. data/spec/{legacy_watirspec → watir2}/fixtures/images/2.gif +0 -0
  125. data/spec/{legacy_watirspec → watir2}/fixtures/images/3.gif +0 -0
  126. data/spec/{legacy_watirspec → watir2}/fixtures/images/button.jpg +0 -0
  127. data/spec/{legacy_watirspec → watir2}/fixtures/images/circle.jpg +0 -0
  128. data/spec/{legacy_watirspec → watir2}/fixtures/images/map.gif +0 -0
  129. data/spec/{legacy_watirspec → watir2}/fixtures/images/map2.gif +0 -0
  130. data/spec/{legacy_watirspec → watir2}/fixtures/images/minus.gif +0 -0
  131. data/spec/{legacy_watirspec → watir2}/fixtures/images/originaltriangle.jpg +0 -0
  132. data/spec/{legacy_watirspec → watir2}/fixtures/images/plus.gif +0 -0
  133. data/spec/{legacy_watirspec → watir2}/fixtures/images/square.jpg +0 -0
  134. data/spec/{legacy_watirspec → watir2}/fixtures/images/triangle.jpg +0 -0
  135. data/spec/{legacy_watirspec → watir2}/fixtures/iso-2022-jp_text.html +0 -0
  136. data/spec/{legacy_watirspec → watir2}/fixtures/javascript/helpers.js +0 -0
  137. data/spec/{legacy_watirspec → watir2}/fixtures/jquery.html +0 -0
  138. data/spec/{legacy_watirspec → watir2}/fixtures/latin1_text.html +0 -0
  139. data/spec/{legacy_watirspec → watir2}/fixtures/multiple_ids.html +0 -0
  140. data/spec/{legacy_watirspec → watir2}/fixtures/non_control_elements.html +0 -0
  141. data/spec/{legacy_watirspec → watir2}/fixtures/parser_bug_001.html +0 -0
  142. data/spec/{legacy_watirspec → watir2}/fixtures/prevent_form_submit.html +0 -0
  143. data/spec/{legacy_watirspec → watir2}/fixtures/right_click.html +0 -0
  144. data/spec/{legacy_watirspec → watir2}/fixtures/shift_jis_text.html +0 -0
  145. data/spec/{legacy_watirspec → watir2}/fixtures/tables.html +0 -0
  146. data/spec/{legacy_watirspec → watir2}/fixtures/timeout.html +0 -0
  147. data/spec/{legacy_watirspec → watir2}/fixtures/timeout_window_location.html +0 -0
  148. data/spec/{legacy_watirspec → watir2}/fixtures/tiny_mce.html +0 -0
  149. data/spec/{legacy_watirspec → watir2}/fixtures/utf8_text.html +0 -0
  150. data/spec/{legacy_watirspec → watir2}/fixtures/watirspec.css +0 -0
  151. data/spec/{legacy_watirspec → watir2}/form_spec.rb +0 -0
  152. data/spec/{legacy_watirspec → watir2}/forms_spec.rb +0 -0
  153. data/spec/{legacy_watirspec → watir2}/frame_spec.rb +0 -0
  154. data/spec/{legacy_watirspec → watir2}/frames_spec.rb +0 -0
  155. data/spec/{legacy_watirspec → watir2}/guards.rb +0 -0
  156. data/spec/{legacy_watirspec → watir2}/hidden_spec.rb +0 -0
  157. data/spec/{legacy_watirspec → watir2}/hiddens_spec.rb +0 -0
  158. data/spec/{legacy_watirspec → watir2}/hn_spec.rb +0 -0
  159. data/spec/{legacy_watirspec → watir2}/hns_spec.rb +0 -0
  160. data/spec/{legacy_watirspec → watir2}/image_spec.rb +0 -0
  161. data/spec/{legacy_watirspec → watir2}/images_spec.rb +0 -0
  162. data/spec/{legacy_watirspec → watir2}/ins_spec.rb +0 -0
  163. data/spec/{legacy_watirspec → watir2}/inses_spec.rb +0 -0
  164. data/spec/{legacy_watirspec → watir2}/label_spec.rb +0 -0
  165. data/spec/{legacy_watirspec → watir2}/labels_spec.rb +0 -0
  166. data/spec/{legacy_watirspec → watir2}/li_spec.rb +0 -0
  167. data/spec/{legacy_watirspec → watir2}/link_spec.rb +0 -0
  168. data/spec/{legacy_watirspec → watir2}/links_spec.rb +0 -0
  169. data/spec/{legacy_watirspec → watir2}/lis_spec.rb +0 -0
  170. data/spec/{legacy_watirspec → watir2}/map_spec.rb +0 -0
  171. data/spec/{legacy_watirspec → watir2}/maps_spec.rb +0 -0
  172. data/spec/{legacy_watirspec → watir2}/meta_spec.rb +0 -0
  173. data/spec/{legacy_watirspec → watir2}/metas_spec.rb +0 -0
  174. data/spec/{legacy_watirspec → watir2}/ol_spec.rb +0 -0
  175. data/spec/{legacy_watirspec → watir2}/ols_spec.rb +0 -0
  176. data/spec/{legacy_watirspec → watir2}/option_spec.rb +0 -0
  177. data/spec/{legacy_watirspec → watir2}/p_spec.rb +0 -0
  178. data/spec/{legacy_watirspec → watir2}/pre_spec.rb +0 -0
  179. data/spec/{legacy_watirspec → watir2}/pres_spec.rb +0 -0
  180. data/spec/{legacy_watirspec → watir2}/ps_spec.rb +0 -0
  181. data/spec/{legacy_watirspec → watir2}/radio_spec.rb +0 -0
  182. data/spec/{legacy_watirspec → watir2}/radios_spec.rb +0 -0
  183. data/spec/{legacy_watirspec → watir2}/select_list_spec.rb +84 -71
  184. data/spec/{legacy_watirspec → watir2}/select_lists_spec.rb +0 -0
  185. data/spec/{new_watirspec → watir2}/server.rb +0 -0
  186. data/spec/{legacy_watirspec → watir2}/span_spec.rb +0 -0
  187. data/spec/{legacy_watirspec → watir2}/spans_spec.rb +0 -0
  188. data/spec/{legacy_watirspec → watir2}/spec_helper.rb +0 -0
  189. data/spec/{legacy_watirspec → watir2}/strong_spec.rb +0 -0
  190. data/spec/{legacy_watirspec → watir2}/strongs_spec.rb +0 -0
  191. data/spec/{legacy_watirspec → watir2}/table_bodies_spec.rb +0 -0
  192. data/spec/{legacy_watirspec → watir2}/table_body_spec.rb +0 -0
  193. data/spec/{legacy_watirspec → watir2}/table_cell_spec.rb +0 -0
  194. data/spec/{legacy_watirspec → watir2}/table_cells_spec.rb +0 -0
  195. data/spec/{legacy_watirspec → watir2}/table_footer_spec.rb +0 -0
  196. data/spec/{legacy_watirspec → watir2}/table_footers_spec.rb +0 -0
  197. data/spec/{legacy_watirspec → watir2}/table_header_spec.rb +0 -0
  198. data/spec/{legacy_watirspec → watir2}/table_headers_spec.rb +0 -0
  199. data/spec/{legacy_watirspec → watir2}/table_row_spec.rb +0 -0
  200. data/spec/{legacy_watirspec → watir2}/table_rows_spec.rb +0 -0
  201. data/spec/{legacy_watirspec → watir2}/table_spec.rb +0 -0
  202. data/spec/{legacy_watirspec → watir2}/tables_spec.rb +0 -0
  203. data/spec/{legacy_watirspec → watir2}/text_field_spec.rb +0 -0
  204. data/spec/{legacy_watirspec → watir2}/text_fields_spec.rb +0 -0
  205. data/spec/{legacy_watirspec → watir2}/ul_spec.rb +0 -0
  206. data/spec/{legacy_watirspec → watir2}/uls_spec.rb +0 -0
  207. data/spec/{legacy_watirspec → watir2}/watir_compatibility_spec.rb +0 -0
  208. data/spec/{legacy_watirspec → watir2}/watirspec_helper.rb +0 -0
  209. data/spec/{new_watirspec → watir3}/browser_spec.rb +11 -21
  210. data/spec/{new_watirspec → watir3}/clipboard_spec.rb +2 -2
  211. data/spec/{new_watirspec → watir3}/collection_spec.rb +0 -0
  212. data/spec/{new_watirspec → watir3}/element_spec.rb +30 -12
  213. data/spec/watir3/guards.rb +39 -0
  214. data/spec/{new_watirspec → watir3}/keys_spec.rb +0 -0
  215. data/spec/watir3/server.rb +91 -0
  216. data/spec/{new_watirspec → watir3}/watirspec_helper.rb +0 -0
  217. data/spec/{new_watirspec → watir3}/window_spec.rb +8 -83
  218. metadata +315 -280
  219. data/lib/operadriver/selenium-common.jar +0 -0
  220. data/spec/legacy_watirspec/element_spec.rb +0 -86
  221. data/spec/new_watirspec/preferences_spec.rb +0 -144
  222. data/spec/new_watirspec/screenshot_spec.rb +0 -34
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
- [submodule "spec/new_watirspec"]
2
- path = spec/new_watirspec
3
- url = git://github.com/operasoftware/new-watir-spec.git
1
+ [submodule "spec/watir3"]
2
+ path = spec/watir3
3
+ url = git@github.com:operasoftware/watir3-spec.git
data/AUTHORS CHANGED
@@ -5,5 +5,6 @@ Stuart Knightley <stuartk@opera.com>
5
5
  James Livermont <jamesl@opera.com>
6
6
  Chris Lloyd <christopherl@opera.com>
7
7
  Adam Minchinton <adamm@opera.com>
8
+ Maria Popova <mariap@opera.com>
8
9
  Andreas Tolf Tolfsen <andreastt@opera.com>
9
10
  Deniz Turkoglu <dturkoglu@opera.com>
data/CHANGES ADDED
@@ -0,0 +1,454 @@
1
+ v0.4.1 2011-05-19
2
+
3
+ [ENHANCEMENTS]
4
+
5
+ * Upgraded OperaDriver to v0.4.2. (andreastt)
6
+
7
+ [BUG FIXES]
8
+
9
+ * OPERA_ARGS detection has now been moved to OperaDriver, removing
10
+ workaround from OperaWatir::Browser. (andreastt)
11
+
12
+ v0.4.1.pre7 2011-05-12
13
+
14
+ [API CHANGES]
15
+
16
+ * Added browser.iframe and browser.iframes to Watir 2 compatibility
17
+ layer. (andreastt)
18
+
19
+ [ENHANCEMENTS]
20
+
21
+ * Upgraded OperaDriver to v0.4.2.pre7-7-g261741e-internal.
22
+ (andreastt)
23
+
24
+ [BUG FIXES]
25
+
26
+ * Workaround for empty preference values sent from core in
27
+ ListPrefs, skipping them as they will terminate Scope if passed
28
+ back to Opera in GetPref or SetPref. (andreastt)
29
+
30
+ [OTHER]
31
+
32
+ * Using #first instead of #[0] when querying raw elements array.
33
+ (andreastt)
34
+
35
+ * Reduced some code duplication. (andreastt)
36
+
37
+ v0.4.1.pre6 2011-05-09
38
+
39
+ [API CHANGES]
40
+
41
+ * Added Compat::Collection#select. (andreastt)
42
+
43
+ * Added Compat::Collection#selected?. (andreastt)
44
+
45
+ * Added Compat::Window#frame. (andreastt)
46
+
47
+ * Added Compat::Window#show_frames. (andreastt)
48
+
49
+ * Added Compat::Window#switch_to_default. (andreastt)
50
+
51
+ * Added DesktopBrowser#string. (karie)
52
+
53
+ * Added DesktopContainer#quick_find. (karie)
54
+
55
+ * Added DesktopContainer#quick_griditem. (karie)
56
+
57
+ * Added DesktopContainer#quick_gridlayout. (karie)
58
+
59
+ * Added Element#exist? and alias Element#exists? which will ensure
60
+ that querying whether elements exists in Watir 2 compatibility
61
+ mode will work. (andreastt)
62
+
63
+ * New classes QuickFind, QuickGridItem and QuickGridLayout. (karie)
64
+
65
+ * Added QuickTreeItem#collapse_with_click. (karie)
66
+
67
+ * Added QuickTreeItem#load_window_with_double_click. (karie)
68
+
69
+ * Added QuickWidget#has_ui_string?. (karie)
70
+
71
+ * Added QuickWidget#height. (karie)
72
+
73
+ * Added QuickWidget#width. (karie)
74
+
75
+ * Added QuickWidget#x. (karie)
76
+
77
+ * Added QuickWidget#y. (karie)
78
+
79
+ * Added QuickWindow#height. (karie)
80
+
81
+ * Added QuickWindow#width. (karie)
82
+
83
+ * Added QuickWindow#x. (karie)
84
+
85
+ * Added QuickWindow#y. (karie)
86
+
87
+ * Removed Collection#to_s. (karie)
88
+
89
+ * Removed Element#to_s. (karie)
90
+
91
+ * Removed QuickWidget#is_text?. (karie)
92
+
93
+ * Deprecated QuickWidgets#verify_includes_text, making #verify_text
94
+ handle text substitution. Fixes DSK-329541 and DSK-330462.
95
+ (karie)
96
+
97
+ [NEW FEATURES]
98
+
99
+ * Added --opera-idle command line option to desktopwatir binary.
100
+ (karie)
101
+
102
+ * Added --manual command line option to desktopwatir binary.
103
+ (karie)
104
+
105
+ [ENHANCEMENTS]
106
+
107
+ * Upgraded OperaDriver to v0.4.2.pre7-g4db1c56-internal.
108
+ (andreastt)
109
+
110
+ * Enabling full backtrace (from RSpec) again.
111
+
112
+ * OperaDriver.getText() has been removed, replaced by doing
113
+ Window#document.getText() instead. #document calls root element
114
+ using CSS selectors. Fixes WTR-338. (andreastt)
115
+
116
+ * Cleaned up some code in Element by simplifying if-blocks.
117
+ (andreastt)
118
+
119
+ * OperaWatir Desktop specification suite has been completed.
120
+ (karie, mariap)
121
+
122
+ * Updated Mac launcher which now includes the emo patch.
123
+ (andreastt)
124
+
125
+ [BUG FIXES]
126
+
127
+ * Idle is now disabled by default in OperaDriver, adding
128
+ environmental check and enabling --opera-idle switch properly.
129
+ (andreastt)
130
+
131
+ * Added support for accessing method select_list(s) from Watir 2.
132
+ (andreastt)
133
+
134
+ * Releasing all parts of an array when modifiers are pressed as
135
+ second argument. Fixes WTR-339. (andreastt)
136
+
137
+ * QuickSearchField#search_with_index retuns text in search field,
138
+ not address bar. Fixes DSK-328699. (karie)
139
+
140
+ * Fix in bin/desktopwatir for calling binary with full path to Watir
141
+ script. Fixes DSK-330007. (karie)
142
+
143
+ * Now using RSpec's :file_or_directories_to_run option instead of
144
+ :files_to_run, which has been deprecated. (andreastt)
145
+
146
+ * #text= is called by compatibility code, but didn't have a check
147
+ for whether element was an INPUT @type="checkbox". we are now
148
+ toggling check instead of attempting to send keys. (andreastt)
149
+
150
+ * Helper executes RSpec autorun programmatically, disabling this by
151
+ moving it to the end of the file if any of the above abort
152
+ statements in bin/operawatir is called. (andreastt)
153
+
154
+ * Attempted to do #uncheck! on textareas or input elements, fixed by
155
+ calling WebDriver's clear() method instead. Fixes WTR-331.
156
+ (andreastt)
157
+
158
+ * Removed workaround for option --opera-idle. This has now properly
159
+ been implemented in OperaDriver, and we are as such doing the
160
+ right thing now. (andreastt)
161
+
162
+ * QuickWidgets#toggle_with_click failed if clicking removed the
163
+ element clicked. Fixes DSK-330329. (karie)
164
+
165
+ * Now handling ampersands in strings got from string_ids. Fixes
166
+ DSK-319071. (karie)
167
+
168
+ * Construction of buttons by position is now possible. (karie)
169
+
170
+ * Add type checking to retrieval algorithm for widgets. Fixes
171
+ DSK-320616. (karie)
172
+
173
+ * Never raise UnknownObjectException on lookup, user must be able to
174
+ execute methods like Collection#exist? on empty collection
175
+ according to Watir specification. (andreastt)
176
+
177
+ * #full_backtrace= is broken in RSpec, but andreastt has patched it
178
+ in upstream. Added temporary workaround for it in
179
+ bin/operawatir.
180
+
181
+ * Element#value no longer does check for INPUT, TEXTAREA or SELECT
182
+ fields in Watir, but leaves this to OperaDriver. (andreastt)
183
+
184
+ [OTHER]
185
+
186
+ * Added documentation for the Preferences implementation.
187
+ (andreastt)
188
+
189
+ * Added documentation for more desktop code. (karie)
190
+
191
+ * Added #visual_hash tests for SVG documents. (andreastt)
192
+
193
+ * Upgraded select_list_spec.rb to latest HEAD from jarib:watirspec.
194
+ (andreastt)
195
+
196
+ v0.4.1.pre5 2011-03-18
197
+
198
+ [BUG FIXES]
199
+
200
+ * Upgraded to OperaDriver v0.4.2.pre5-15-gf8e8949 containing an
201
+ updated 64-bit launcher that will work on older versions of libc.
202
+ (andreastt)
203
+
204
+ v0.4.1.pre4 2011-03-17
205
+
206
+ [NEW FEATURES]
207
+
208
+ * Imlemented temporary environmental variable for switching OperaIdle
209
+ on and off for SPARTAN. This will override the --opera-idle option.
210
+ Set the OPERA_IDLE environmental variable to a truthy variable
211
+ (true, "true", 1, "1") to enable. (andreastt)
212
+
213
+ [BUG FIXES]
214
+
215
+ * Temporarily passing OPERA_ARGS environmental variable to OperaDriver
216
+ to enable fullscreen testing on SPARTAN. OPERA_ARGS will in the
217
+ future be detected in OperaDriver. (andreastt)
218
+
219
+ * /lib/operawatir/helper.rb will now autorun RSpec, fixing the
220
+ all-tests-failing issue on SPARTAN. (andreastt)
221
+
222
+ v0.4.1.pre3 2011-03-14
223
+
224
+ [API CHANGES]
225
+
226
+ * window.element (and browser.element if you're running in
227
+ compatibility mode) now works. Fixes backwards compatibility for
228
+ SPARTAN tests. Related to WTR-260. (andreastt)
229
+
230
+ * :selector has now been added as a basic type in Watir 2
231
+ compatibility mode (e.g. element(:selector, 'foo')). This is aliased
232
+ to :css. Added method Compat::Collection#find_elements_by_selector as
233
+ alias to Collection#find_by_css. (andreastt)
234
+
235
+ * Element#get_hash is now alias to Element#visual_hash for backwards
236
+ compatiblity with WTR-260. (andreastt)
237
+
238
+ * Window#get_hash is now aliased to Window#visual_hash for backwards
239
+ compatibility with WTR-260. (andreastt)
240
+
241
+ * Compat::Browser#quit is no longer needed, removed method. We no
242
+ longer use Browser#quit! which it was an alias for. (andreastt)
243
+
244
+ * Window#screenshot now returns a Screenshot interface or the absolute
245
+ path to the file depending on whether an argument is given. This
246
+ provides backwards compatibility, but also allows you to access the
247
+ newly added methods Screenshot#save, …#blank?, …#png and …#md5.
248
+ (andreastt)
249
+
250
+ * Removed timeout argument to Window#visual_hash. We now default to
251
+ 50 milliseconds. (andreastt)
252
+
253
+ * Added Window#document which returns the body/document of a page.
254
+ (andreastt)
255
+
256
+ [NEW FEATURES]
257
+
258
+ * New command-line option --tag (or -t for short) for specifying to
259
+ run only tagged tests. Adding ~ (tilde) before the tag (e.g. ~slow)
260
+ will exclude given tests.
261
+
262
+ * New command-line option --backtrace (or -b for short) for enabling
263
+ full backtraces from RSpec. As a result, --binary has lost its
264
+ shortcut -b. (andreastt)
265
+
266
+ * Implemented a new screenshot API that exposes ScreenShotReply from
267
+ OperaDriver. (andreastt)
268
+
269
+ [ENHANCEMENTS]
270
+
271
+ * Upgraded to OperaDriver v0.4.2.pre5. (andreastt)
272
+
273
+ * Added specifications tests for Desktop part of OperaWatir. (karie,
274
+ mariap)
275
+
276
+ * OperaWatir specification tests for Desktop are now using RSpec
277
+ matchers. Makes it easier to expect windows to be closed, opened,
278
+ &c. (karie)
279
+
280
+ * --no-opera-idle has been renamed to --opera-idle. OperaIdle is now
281
+ by default switched off due to instability. (andreastt)
282
+
283
+ * Synced operawatir and desktopwatir binaries. (andreastt)
284
+
285
+ * Updated /spec/watir2/element_spec.rb to HEAD from watirspec.
286
+ (andreastt)
287
+
288
+ [BUG FIXES]
289
+
290
+ * desktopwatir is no longer writing to STDERR, but to STDOUT.
291
+ (andreastt)
292
+
293
+ * Window#get_hash and Element#get_hash methods are now marked as
294
+ deprecated.
295
+
296
+ * Resolved failing to activate address field will use the current
297
+ control without any errors. Fixes DSK-320799. (karie)
298
+
299
+ * Widgets should return widgets listing from active Document Window.
300
+ Fixes DSK-330102. (karie)
301
+
302
+ * Renamed paramter in DesktopBrowser#widgets since it's not
303
+ necessarily the window name the user will be looking for. (karie)
304
+
305
+ * Added more load actions to be handled by load_window_with_action.
306
+ Fixes DSK-320817. (karie)
307
+
308
+ * Failing to activate address field will use the current control
309
+ without any errors. Focus moved from edit_field to its subclass
310
+ before call to enter text. Fixes DSK-320799. (karie)
311
+
312
+ * Defaulting to active window when Document Window is specified, fixed
313
+ to only default when active window is actually a Document Window.
314
+ Related to DSK-320786. (karie)
315
+
316
+ * Documentation fixes in Desktop code. (karie)
317
+
318
+ [OTHER]
319
+
320
+ * Updated /README.me with the latest version requirements.
321
+ (andreastt)
322
+
323
+ * Added /CHANGES (this). (andreastt)
324
+
325
+ v0.4.1.pre2 2011-03-08
326
+
327
+ [BUG FIXES]
328
+
329
+ * Stringifying text before splitting it in Element#text=. Thanks to
330
+ Hallvord R. M. Steen. (andreastt)
331
+
332
+ * Depending on RSpec v2.4 or above, not v2.5 or less as we did
333
+ previously. This resolves upgrading OperaWatir if you already have
334
+ an ancient version of RSpec installed (like we did on SPARTAN).
335
+ (andreastt)
336
+
337
+ v0.4.1.pre1 2011-03-04
338
+
339
+ [API CHANGES]
340
+
341
+ * Moved deprecated keyboard interaction methods (Window#key,
342
+ Window#key_down, Window#key_up, Window#type) from Window to Browser.
343
+ If you're running operawatir in Watir 2 compatibility mode (which is
344
+ enabled by default), this won't change anything for you.
345
+ (andreastt)
346
+
347
+ * Added a new preferences API which is accessible from
348
+ browser.preferences. Removed Browser#set_preference,
349
+ Browser#get_default_preference and Browser#get_preference.
350
+ (andreastt)
351
+
352
+ * Removed Browser#pid. (wilhelmja)
353
+
354
+ * Removed Browser#goto. It's still available in Browser::Compat#goto,
355
+ which is included by default. (andreastt)
356
+
357
+ * Added DesktopBrowser#get_preference, DesktopBrowser#set_preference
358
+ and DesktopBrowser#get_default_preference. (karie)
359
+
360
+ * Removed Browser#exists? and Browser#connected?. (andreastt)
361
+
362
+ [NEW FEATURES]
363
+
364
+ * Support for disabling OperaIdle with --no-opera-idle. (andreastt)
365
+
366
+ * Added option to wait for connection from Opera. operawatir binary
367
+ now accepts --manual (or -m for short). This will allow you to go
368
+ to opera:debug and hit connect manually. (andreastt)
369
+
370
+ [ENHANCEMENTS]
371
+
372
+ * Updated OperaDriver to v0.4.2.pre2. (andreastt)
373
+
374
+ * Added tests for deprecated method Window#eval_js. (wilhelmja)
375
+
376
+ * Added deprecation notice to Element#compare_hash. (andreastt)
377
+
378
+ * Added specification tests for Window#screenshot,
379
+ Element#triple_click, Element#compare_hash. (wilhelmja)
380
+
381
+ * Added more specification tests for Window#quadruple_click.
382
+ (andreastt)
383
+
384
+ * DesktopBrowser is now using guessOperaPath from OperaDriver.
385
+ (karie)
386
+
387
+ [BUG FIXES]
388
+
389
+ * Fixed passing wrong variable (param instead of args) in
390
+ Browser#opera_action. This fixes browser.opera_action('foo').
391
+ (wilhelmja)
392
+
393
+ * Browser#ua_string now returns the navigator.userAgent value from
394
+ JavaScript. (wilhelmja)
395
+
396
+ * Browser#platform now returns the navigator.platform value from
397
+ JavaScript. (wilhelmja)
398
+
399
+ * Compat::Element#text now supports getting texteditable values from
400
+ input, textarea and select elements. (andreastt)
401
+
402
+ * Requiring stringio as JRuby apparently doesn't by default, fixes
403
+ problem with RSpec formatters. (andreastt)
404
+
405
+ * Colours are now enabled by default, even on Windows. Installing the
406
+ gem `ansicolor' fixes colour problems on Windows. (andreastt)
407
+
408
+ * --output now writes to a file, was broken when upgrading to RSpec
409
+ v2.5. (andreastt)
410
+
411
+ * --format was not working, fixed. (andreastt)
412
+
413
+ * Now requiring RSpec v2.5, not v2.5.1. rspec-core is v2.5.1, but the
414
+ main gem, rspec, is only 2.5. (andreastt)
415
+
416
+ * operawatir-launched tests now write to STDOUT instead of STDERR.
417
+ (andreastt)
418
+
419
+ * Check that Browser#desktop? actually returns true or false.
420
+ (wilhelmja)
421
+
422
+ * Check that Window#visual_hash and Element#visual_hash returns a hash
423
+ in the correct format 8an md5sum preceded by 0x. (wilhelmja)
424
+
425
+ * Added tests for Window#visual_hash and Browser#desktop?.
426
+ (wilhelmja)
427
+
428
+ * Misc. test name fixes. (wilhelmja)
429
+
430
+ * Removing Ruby platform dependency. (andreastt)
431
+
432
+ * We need to exit forcibly (I think because of RSpec) when we come to
433
+ the end of the test suite. (andreastt)
434
+
435
+ * Fixed compat problem and changed autostart fix to use empty Opera
436
+ path instead of separate setting. (karie)
437
+
438
+ * Super goto (in DesktopBrowser) disappeared, so don't use it.
439
+
440
+ [OTHER]
441
+
442
+ * Updated /README.md with the latest version requirements.
443
+ (andreastt)
444
+
445
+ * Updated documentation in /README.md. Also added a new section
446
+ listing the operawatir binary's option list. (andreastt)
447
+
448
+ * Set up framework for OperaWatir-specific specification tests.
449
+ (andreastt)
450
+
451
+ * Renamed /spec/legacy_watirspec to /spec/watir2. (andreastt)
452
+
453
+ * Renamed /spec/new_watirspec to /spec/watir3. (andreastt)
454
+