watir 6.10.0 → 6.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. checksums.yaml +4 -4
  2. data/.document +5 -5
  3. data/.github/ISSUE_TEMPLATE.md +16 -16
  4. data/.gitignore +21 -21
  5. data/.travis.yml +72 -72
  6. data/CHANGES.md +6 -0
  7. data/Gemfile +16 -16
  8. data/LICENSE +23 -23
  9. data/README.md +106 -106
  10. data/Rakefile +153 -153
  11. data/appveyor.yml +13 -13
  12. data/lib/watir-webdriver.rb +2 -2
  13. data/lib/watir.rb +158 -158
  14. data/lib/watir/adjacent.rb +126 -126
  15. data/lib/watir/after_hooks.rb +132 -132
  16. data/lib/watir/alert.rb +120 -120
  17. data/lib/watir/aliases.rb +6 -6
  18. data/lib/watir/attribute_helper.rb +96 -96
  19. data/lib/watir/browser.rb +349 -349
  20. data/lib/watir/capabilities.rb +123 -123
  21. data/lib/watir/cell_container.rb +25 -25
  22. data/lib/watir/container.rb +51 -51
  23. data/lib/watir/cookies.rb +134 -134
  24. data/lib/watir/element_collection.rb +138 -138
  25. data/lib/watir/elements/area.rb +12 -12
  26. data/lib/watir/elements/button.rb +37 -37
  27. data/lib/watir/elements/cell.rb +17 -17
  28. data/lib/watir/elements/checkbox.rb +56 -56
  29. data/lib/watir/elements/dlist.rb +12 -12
  30. data/lib/watir/elements/element.rb +6 -5
  31. data/lib/watir/elements/file_field.rb +41 -41
  32. data/lib/watir/elements/font.rb +25 -25
  33. data/lib/watir/elements/form.rb +16 -16
  34. data/lib/watir/elements/hidden.rb +25 -25
  35. data/lib/watir/elements/html_elements.rb +2035 -2035
  36. data/lib/watir/elements/iframe.rb +166 -166
  37. data/lib/watir/elements/image.rb +21 -21
  38. data/lib/watir/elements/input.rb +15 -15
  39. data/lib/watir/elements/link.rb +18 -18
  40. data/lib/watir/elements/list.rb +49 -49
  41. data/lib/watir/elements/option.rb +72 -72
  42. data/lib/watir/elements/radio.rb +60 -60
  43. data/lib/watir/elements/row.rb +17 -17
  44. data/lib/watir/elements/select.rb +250 -250
  45. data/lib/watir/elements/svg_elements.rb +613 -613
  46. data/lib/watir/elements/table.rb +76 -76
  47. data/lib/watir/elements/table_cell.rb +31 -31
  48. data/lib/watir/elements/table_row.rb +32 -32
  49. data/lib/watir/elements/table_section.rb +15 -15
  50. data/lib/watir/elements/text_area.rb +5 -5
  51. data/lib/watir/elements/text_field.rb +39 -39
  52. data/lib/watir/exception.rb +16 -16
  53. data/lib/watir/extensions/nokogiri.rb +14 -14
  54. data/lib/watir/generator.rb +3 -3
  55. data/lib/watir/generator/base.rb +11 -11
  56. data/lib/watir/generator/base/generator.rb +115 -115
  57. data/lib/watir/generator/base/idl_sorter.rb +47 -47
  58. data/lib/watir/generator/base/spec_extractor.rb +138 -138
  59. data/lib/watir/generator/base/util.rb +21 -21
  60. data/lib/watir/generator/base/visitor.rb +162 -162
  61. data/lib/watir/generator/html.rb +15 -15
  62. data/lib/watir/generator/html/generator.rb +36 -36
  63. data/lib/watir/generator/html/spec_extractor.rb +50 -50
  64. data/lib/watir/generator/html/visitor.rb +21 -21
  65. data/lib/watir/generator/svg.rb +7 -7
  66. data/lib/watir/generator/svg/generator.rb +38 -38
  67. data/lib/watir/generator/svg/spec_extractor.rb +53 -53
  68. data/lib/watir/generator/svg/visitor.rb +21 -21
  69. data/lib/watir/has_window.rb +68 -68
  70. data/lib/watir/js_execution.rb +143 -143
  71. data/lib/watir/js_snippets.rb +16 -16
  72. data/lib/watir/js_snippets/backgroundColor.js +7 -7
  73. data/lib/watir/js_snippets/fireEvent.js +31 -31
  74. data/lib/watir/js_snippets/focus.js +3 -3
  75. data/lib/watir/js_snippets/getInnerHtml.js +19 -19
  76. data/lib/watir/js_snippets/getInnerText.js +19 -19
  77. data/lib/watir/js_snippets/getOuterHtml.js +20 -20
  78. data/lib/watir/js_snippets/getTextContent.js +19 -19
  79. data/lib/watir/js_snippets/isImageLoaded.js +3 -3
  80. data/lib/watir/js_snippets/selectOptionsLabel.js +10 -10
  81. data/lib/watir/js_snippets/selectOptionsText.js +10 -10
  82. data/lib/watir/js_snippets/selectOptionsValue.js +10 -10
  83. data/lib/watir/js_snippets/selectText.js +64 -64
  84. data/lib/watir/js_snippets/selectedOptions.js +11 -11
  85. data/lib/watir/js_snippets/setValue.js +3 -3
  86. data/lib/watir/legacy_wait.rb +126 -126
  87. data/lib/watir/locators.rb +60 -60
  88. data/lib/watir/locators/button/locator.rb +31 -31
  89. data/lib/watir/locators/button/selector_builder.rb +30 -30
  90. data/lib/watir/locators/button/selector_builder/xpath.rb +29 -29
  91. data/lib/watir/locators/button/validator.rb +15 -15
  92. data/lib/watir/locators/cell/locator.rb +15 -15
  93. data/lib/watir/locators/cell/selector_builder.rb +24 -24
  94. data/lib/watir/locators/element/locator.rb +1 -0
  95. data/lib/watir/locators/element/selector_builder.rb +150 -150
  96. data/lib/watir/locators/element/selector_builder/xpath.rb +119 -119
  97. data/lib/watir/locators/element/validator.rb +18 -18
  98. data/lib/watir/locators/row/locator.rb +15 -15
  99. data/lib/watir/locators/row/selector_builder.rb +29 -29
  100. data/lib/watir/locators/text_area/locator.rb +13 -13
  101. data/lib/watir/locators/text_area/selector_builder.rb +22 -22
  102. data/lib/watir/locators/text_field/locator.rb +30 -30
  103. data/lib/watir/locators/text_field/selector_builder.rb +31 -31
  104. data/lib/watir/locators/text_field/selector_builder/xpath.rb +17 -17
  105. data/lib/watir/locators/text_field/validator.rb +12 -12
  106. data/lib/watir/logger.rb +109 -109
  107. data/lib/watir/radio_set.rb +231 -231
  108. data/lib/watir/row_container.rb +36 -36
  109. data/lib/watir/screenshot.rb +50 -50
  110. data/lib/watir/user_editable.rb +56 -56
  111. data/lib/watir/wait.rb +200 -200
  112. data/lib/watir/wait/timer.rb +52 -52
  113. data/lib/watir/window.rb +257 -257
  114. data/lib/watir/xpath_support.rb +20 -20
  115. data/lib/watirspec.rb +86 -86
  116. data/lib/watirspec/guards.rb +60 -60
  117. data/lib/watirspec/implementation.rb +51 -51
  118. data/lib/watirspec/rake_tasks.rb +115 -115
  119. data/lib/watirspec/remote_server.rb +38 -38
  120. data/lib/watirspec/runner.rb +53 -53
  121. data/lib/watirspec/server.rb +99 -99
  122. data/lib/watirspec/server/app.rb +76 -76
  123. data/spec/browser_spec.rb +278 -278
  124. data/spec/click_spec.rb +19 -19
  125. data/spec/container_spec.rb +34 -34
  126. data/spec/element_locator_spec.rb +517 -517
  127. data/spec/element_spec.rb +158 -158
  128. data/spec/implementation_spec.rb +24 -24
  129. data/spec/input_spec.rb +14 -14
  130. data/spec/locator_spec_helper.rb +55 -55
  131. data/spec/logger_spec.rb +46 -46
  132. data/spec/spec_helper.rb +22 -22
  133. data/spec/special_chars_spec.rb +13 -13
  134. data/spec/watirspec/adjacent_spec.rb +227 -227
  135. data/spec/watirspec/after_hooks_spec.rb +182 -182
  136. data/spec/watirspec/alert_spec.rb +108 -108
  137. data/spec/watirspec/attributes_spec.rb +16 -16
  138. data/spec/watirspec/browser_spec.rb +281 -281
  139. data/spec/watirspec/cookies_spec.rb +154 -154
  140. data/spec/watirspec/drag_and_drop_spec.rb +49 -49
  141. data/spec/watirspec/element_hidden_spec.rb +75 -75
  142. data/spec/watirspec/elements/area_spec.rb +72 -72
  143. data/spec/watirspec/elements/areas_spec.rb +42 -42
  144. data/spec/watirspec/elements/button_spec.rb +277 -277
  145. data/spec/watirspec/elements/buttons_spec.rb +55 -55
  146. data/spec/watirspec/elements/checkbox_spec.rb +275 -275
  147. data/spec/watirspec/elements/checkboxes_spec.rb +44 -44
  148. data/spec/watirspec/elements/collections_spec.rb +52 -52
  149. data/spec/watirspec/elements/dd_spec.rb +124 -124
  150. data/spec/watirspec/elements/dds_spec.rb +42 -42
  151. data/spec/watirspec/elements/del_spec.rb +126 -126
  152. data/spec/watirspec/elements/dels_spec.rb +40 -40
  153. data/spec/watirspec/elements/div_spec.rb +245 -245
  154. data/spec/watirspec/elements/divs_spec.rb +42 -42
  155. data/spec/watirspec/elements/dl_spec.rb +142 -142
  156. data/spec/watirspec/elements/dls_spec.rb +43 -43
  157. data/spec/watirspec/elements/dt_spec.rb +122 -122
  158. data/spec/watirspec/elements/dts_spec.rb +42 -42
  159. data/spec/watirspec/elements/element_spec.rb +483 -483
  160. data/spec/watirspec/elements/elements_spec.rb +47 -47
  161. data/spec/watirspec/elements/em_spec.rb +96 -96
  162. data/spec/watirspec/elements/ems_spec.rb +43 -43
  163. data/spec/watirspec/elements/filefield_spec.rb +170 -170
  164. data/spec/watirspec/elements/filefields_spec.rb +43 -43
  165. data/spec/watirspec/elements/font_spec.rb +29 -29
  166. data/spec/watirspec/elements/form_spec.rb +66 -66
  167. data/spec/watirspec/elements/forms_spec.rb +46 -46
  168. data/spec/watirspec/elements/frame_spec.rb +123 -123
  169. data/spec/watirspec/elements/frames_spec.rb +41 -41
  170. data/spec/watirspec/elements/hidden_spec.rb +104 -104
  171. data/spec/watirspec/elements/hiddens_spec.rb +43 -43
  172. data/spec/watirspec/elements/hn_spec.rb +92 -92
  173. data/spec/watirspec/elements/hns_spec.rb +38 -38
  174. data/spec/watirspec/elements/iframe_spec.rb +10 -0
  175. data/spec/watirspec/elements/iframes_spec.rb +47 -47
  176. data/spec/watirspec/elements/image_spec.rb +158 -158
  177. data/spec/watirspec/elements/images_spec.rb +40 -40
  178. data/spec/watirspec/elements/ins_spec.rb +127 -127
  179. data/spec/watirspec/elements/inses_spec.rb +40 -40
  180. data/spec/watirspec/elements/label_spec.rb +75 -75
  181. data/spec/watirspec/elements/labels_spec.rb +40 -40
  182. data/spec/watirspec/elements/li_spec.rb +111 -111
  183. data/spec/watirspec/elements/link_spec.rb +171 -171
  184. data/spec/watirspec/elements/links_spec.rb +44 -44
  185. data/spec/watirspec/elements/lis_spec.rb +42 -42
  186. data/spec/watirspec/elements/list_spec.rb +32 -32
  187. data/spec/watirspec/elements/map_spec.rb +75 -75
  188. data/spec/watirspec/elements/maps_spec.rb +41 -41
  189. data/spec/watirspec/elements/meta_spec.rb +23 -23
  190. data/spec/watirspec/elements/metas_spec.rb +40 -40
  191. data/spec/watirspec/elements/ol_spec.rb +87 -87
  192. data/spec/watirspec/elements/ols_spec.rb +40 -40
  193. data/spec/watirspec/elements/option_spec.rb +121 -121
  194. data/spec/watirspec/elements/p_spec.rb +111 -111
  195. data/spec/watirspec/elements/pre_spec.rb +111 -111
  196. data/spec/watirspec/elements/pres_spec.rb +40 -40
  197. data/spec/watirspec/elements/ps_spec.rb +40 -40
  198. data/spec/watirspec/elements/radio_spec.rb +273 -273
  199. data/spec/watirspec/elements/radios_spec.rb +43 -43
  200. data/spec/watirspec/elements/select_list_spec.rb +553 -553
  201. data/spec/watirspec/elements/select_lists_spec.rb +46 -46
  202. data/spec/watirspec/elements/span_spec.rb +128 -128
  203. data/spec/watirspec/elements/spans_spec.rb +40 -40
  204. data/spec/watirspec/elements/strong_spec.rb +88 -88
  205. data/spec/watirspec/elements/strongs_spec.rb +43 -43
  206. data/spec/watirspec/elements/table_nesting_spec.rb +51 -51
  207. data/spec/watirspec/elements/table_spec.rb +156 -156
  208. data/spec/watirspec/elements/tables_spec.rb +42 -42
  209. data/spec/watirspec/elements/tbody_spec.rb +93 -93
  210. data/spec/watirspec/elements/tbodys_spec.rb +62 -62
  211. data/spec/watirspec/elements/td_spec.rb +93 -93
  212. data/spec/watirspec/elements/tds_spec.rb +53 -53
  213. data/spec/watirspec/elements/text_field_spec.rb +360 -360
  214. data/spec/watirspec/elements/text_fields_spec.rb +44 -44
  215. data/spec/watirspec/elements/textarea_spec.rb +26 -26
  216. data/spec/watirspec/elements/textareas_spec.rb +24 -24
  217. data/spec/watirspec/elements/tfoot_spec.rb +86 -86
  218. data/spec/watirspec/elements/tfoots_spec.rb +68 -68
  219. data/spec/watirspec/elements/thead_spec.rb +86 -86
  220. data/spec/watirspec/elements/theads_spec.rb +68 -68
  221. data/spec/watirspec/elements/tr_spec.rb +78 -78
  222. data/spec/watirspec/elements/trs_spec.rb +61 -61
  223. data/spec/watirspec/elements/ul_spec.rb +76 -76
  224. data/spec/watirspec/elements/uls_spec.rb +39 -39
  225. data/spec/watirspec/html/alerts.html +12 -12
  226. data/spec/watirspec/html/aria_attributes.html +9 -9
  227. data/spec/watirspec/html/class_locator.html +8 -8
  228. data/spec/watirspec/html/clicks.html +19 -19
  229. data/spec/watirspec/html/closeable.html +12 -12
  230. data/spec/watirspec/html/collections.html +14 -14
  231. data/spec/watirspec/html/css/jquery-ui-1.8.17.custom.css +286 -286
  232. data/spec/watirspec/html/data_attributes.html +9 -9
  233. data/spec/watirspec/html/definition_lists.html +47 -47
  234. data/spec/watirspec/html/drag_and_drop.html +106 -106
  235. data/spec/watirspec/html/font.html +10 -10
  236. data/spec/watirspec/html/forms_with_input_elements.html +174 -174
  237. data/spec/watirspec/html/frame_1.html +22 -22
  238. data/spec/watirspec/html/frame_2.html +15 -15
  239. data/spec/watirspec/html/frames.html +10 -10
  240. data/spec/watirspec/html/hover.html +11 -11
  241. data/spec/watirspec/html/iframe_1.html +22 -22
  242. data/spec/watirspec/html/iframes.html +12 -12
  243. data/spec/watirspec/html/images.html +27 -27
  244. data/spec/watirspec/html/inner_outer.html +4 -4
  245. data/spec/watirspec/html/javascript/angular.min.js +331 -331
  246. data/spec/watirspec/html/javascript/helpers.js +16 -16
  247. data/spec/watirspec/html/javascript/jquery-1.7.1.min.js +3 -3
  248. data/spec/watirspec/html/javascript/jquery-ui-1.8.17.custom.min.js +67 -67
  249. data/spec/watirspec/html/keylogger.html +14 -14
  250. data/spec/watirspec/html/modal_dialog.html +9 -9
  251. data/spec/watirspec/html/multiple_ids.html +14 -14
  252. data/spec/watirspec/html/nested_elements.html +33 -33
  253. data/spec/watirspec/html/nested_frame_2.html +9 -9
  254. data/spec/watirspec/html/nested_frame_3.html +14 -14
  255. data/spec/watirspec/html/nested_frames.html +10 -10
  256. data/spec/watirspec/html/nested_iframe_2.html +12 -12
  257. data/spec/watirspec/html/nested_iframes.html +13 -13
  258. data/spec/watirspec/html/nested_tables.html +202 -202
  259. data/spec/watirspec/html/non_control_elements.html +140 -140
  260. data/spec/watirspec/html/removed_element.html +24 -24
  261. data/spec/watirspec/html/right_click.html +10 -10
  262. data/spec/watirspec/html/special_chars.html +11 -11
  263. data/spec/watirspec/html/tables.html +120 -120
  264. data/spec/watirspec/html/timeout_window_location.html +19 -19
  265. data/spec/watirspec/html/uneven_table.html +20 -20
  266. data/spec/watirspec/html/wait.html +84 -84
  267. data/spec/watirspec/html/window_switching.html +11 -11
  268. data/spec/watirspec/radio_set_spec.rb +336 -336
  269. data/spec/watirspec/relaxed_locate_spec.rb +99 -99
  270. data/spec/watirspec/screenshot_spec.rb +29 -29
  271. data/spec/watirspec/support/raise_exception_matchers.rb +36 -36
  272. data/spec/watirspec/wait_spec.rb +381 -381
  273. data/spec/watirspec/window_switching_spec.rb +415 -415
  274. data/spec/watirspec_helper.rb +161 -161
  275. data/support/appveyor.cmd +9 -9
  276. data/support/doctest_helper.rb +101 -101
  277. data/support/travis.sh +11 -11
  278. data/support/version_differ.rb +59 -59
  279. data/watir.gemspec +1 -1
  280. metadata +4 -170
@@ -1,12 +1,12 @@
1
- module Watir
2
- class DList < HTMLElement
3
-
4
- def to_hash
5
- keys = dts.map { |e| e.text }
6
- values = dds.map { |e| e.text }
7
-
8
- Hash[keys.zip(values)]
9
- end
10
-
11
- end # DList
12
- end # Watir
1
+ module Watir
2
+ class DList < HTMLElement
3
+
4
+ def to_hash
5
+ keys = dts.map { |e| e.text }
6
+ values = dds.map { |e| e.text }
7
+
8
+ Hash[keys.zip(values)]
9
+ end
10
+
11
+ end # DList
12
+ end # Watir
@@ -49,7 +49,7 @@ module Watir
49
49
  def exists?
50
50
  assert_exists
51
51
  true
52
- rescue UnknownObjectException, UnknownFrameException
52
+ rescue unknown_exception
53
53
  false
54
54
  end
55
55
  alias_method :exist?, :exists?
@@ -368,9 +368,10 @@ module Watir
368
368
  #
369
369
 
370
370
  def center
371
- location = location()
372
- Selenium::WebDriver::Point.new(location.x + (width/2),
373
- location.y + (height/2))
371
+ point = location
372
+ dimensions = size
373
+ Selenium::WebDriver::Point.new(point.x + (dimensions['width']/2),
374
+ point.y + (dimensions['height']/2))
374
375
  end
375
376
  alias_method :centre, :center
376
377
 
@@ -424,7 +425,7 @@ module Watir
424
425
 
425
426
  def present?
426
427
  visible?
427
- rescue UnknownObjectException
428
+ rescue unknown_exception
428
429
  false
429
430
  end
430
431
 
@@ -1,41 +1,41 @@
1
- module Watir
2
- class FileField < Input
3
-
4
- #
5
- # Set the file field to the given path
6
- #
7
- # @param [String] path
8
- # @raise [Errno::ENOENT] if the file doesn't exist
9
- #
10
-
11
- def set(path)
12
- raise Errno::ENOENT, path unless File.exist?(path)
13
- self.value = path
14
- end
15
-
16
- #
17
- # Sets the file field to the given path
18
- #
19
- # @param [String] path
20
- #
21
-
22
- def value=(path)
23
- path = path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR
24
- element_call { @element.send_keys path }
25
- end
26
-
27
- end # FileField
28
-
29
- module Container
30
- def file_field(*args)
31
- FileField.new(self, extract_selector(args).merge(tag_name: "input", type: "file"))
32
- end
33
-
34
- def file_fields(*args)
35
- FileFieldCollection.new(self, extract_selector(args).merge(tag_name: "input", type: "file"))
36
- end
37
- end # Container
38
-
39
- class FileFieldCollection < InputCollection
40
- end # FileFieldCollection
41
- end # Watir
1
+ module Watir
2
+ class FileField < Input
3
+
4
+ #
5
+ # Set the file field to the given path
6
+ #
7
+ # @param [String] path
8
+ # @raise [Errno::ENOENT] if the file doesn't exist
9
+ #
10
+
11
+ def set(path)
12
+ raise Errno::ENOENT, path unless File.exist?(path)
13
+ self.value = path
14
+ end
15
+
16
+ #
17
+ # Sets the file field to the given path
18
+ #
19
+ # @param [String] path
20
+ #
21
+
22
+ def value=(path)
23
+ path = path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR
24
+ element_call { @element.send_keys path }
25
+ end
26
+
27
+ end # FileField
28
+
29
+ module Container
30
+ def file_field(*args)
31
+ FileField.new(self, extract_selector(args).merge(tag_name: "input", type: "file"))
32
+ end
33
+
34
+ def file_fields(*args)
35
+ FileFieldCollection.new(self, extract_selector(args).merge(tag_name: "input", type: "file"))
36
+ end
37
+ end # Container
38
+
39
+ class FileFieldCollection < InputCollection
40
+ end # FileFieldCollection
41
+ end # Watir
@@ -1,25 +1,25 @@
1
- module Watir
2
- class Font < HTMLElement
3
-
4
- #
5
- # size of font
6
- #
7
- # @return [Integer]
8
- #
9
-
10
- def size
11
- attribute_value(:size)
12
- end
13
-
14
- end # Font
15
-
16
- module Container
17
- def font(*args)
18
- Font.new(self, extract_selector(args).merge(tag_name: "font"))
19
- end
20
-
21
- def fonts(*args)
22
- FontCollection.new(self, extract_selector(args).merge(tag_name: "font"))
23
- end
24
- end # Container
25
- end # Watir
1
+ module Watir
2
+ class Font < HTMLElement
3
+
4
+ #
5
+ # size of font
6
+ #
7
+ # @return [Integer]
8
+ #
9
+
10
+ def size
11
+ attribute_value(:size)
12
+ end
13
+
14
+ end # Font
15
+
16
+ module Container
17
+ def font(*args)
18
+ Font.new(self, extract_selector(args).merge(tag_name: "font"))
19
+ end
20
+
21
+ def fonts(*args)
22
+ FontCollection.new(self, extract_selector(args).merge(tag_name: "font"))
23
+ end
24
+ end # Container
25
+ end # Watir
@@ -1,16 +1,16 @@
1
- module Watir
2
- class Form < HTMLElement
3
-
4
- #
5
- # Submits the form.
6
- #
7
- # This method should be avoided - invoke the user interface element that triggers the submit instead.
8
- #
9
-
10
- def submit
11
- element_call(:wait_for_present) { @element.submit }
12
- browser.after_hooks.run
13
- end
14
-
15
- end # Form
16
- end # Watir
1
+ module Watir
2
+ class Form < HTMLElement
3
+
4
+ #
5
+ # Submits the form.
6
+ #
7
+ # This method should be avoided - invoke the user interface element that triggers the submit instead.
8
+ #
9
+
10
+ def submit
11
+ element_call(:wait_for_present) { @element.submit }
12
+ browser.after_hooks.run
13
+ end
14
+
15
+ end # Form
16
+ end # Watir
@@ -1,25 +1,25 @@
1
- module Watir
2
- class Hidden < Input
3
- def visible?
4
- false
5
- end
6
-
7
- def click
8
- raise Watir::Exception::ObjectDisabledException, "click is not available on the hidden field element"
9
- end
10
-
11
- end
12
-
13
- module Container
14
- def hidden(*args)
15
- Hidden.new(self, extract_selector(args).merge(tag_name: "input", type: "hidden"))
16
- end
17
-
18
- def hiddens(*args)
19
- HiddenCollection.new(self, extract_selector(args).merge(tag_name: "input", type: "hidden"))
20
- end
21
- end # Container
22
-
23
- class HiddenCollection < InputCollection
24
- end # HiddenCollection
25
- end
1
+ module Watir
2
+ class Hidden < Input
3
+ def visible?
4
+ false
5
+ end
6
+
7
+ def click
8
+ raise Watir::Exception::ObjectDisabledException, "click is not available on the hidden field element"
9
+ end
10
+
11
+ end
12
+
13
+ module Container
14
+ def hidden(*args)
15
+ Hidden.new(self, extract_selector(args).merge(tag_name: "input", type: "hidden"))
16
+ end
17
+
18
+ def hiddens(*args)
19
+ HiddenCollection.new(self, extract_selector(args).merge(tag_name: "input", type: "hidden"))
20
+ end
21
+ end # Container
22
+
23
+ class HiddenCollection < InputCollection
24
+ end # HiddenCollection
25
+ end
@@ -1,2035 +1,2035 @@
1
- # Autogenerated from HTML specification. Edits may be lost.
2
- module Watir
3
- class HTMLElement < Element
4
- attribute(String, :title, :title)
5
- attribute(String, :lang, :lang)
6
- attribute("Boolean", :translate?, :translate)
7
- attribute(String, :dir, :dir)
8
- attribute(String, :dataset, :dataset)
9
- attribute("Boolean", :hidden?, :hidden)
10
- attribute(Integer, :tabindex, :tabIndex)
11
- attribute(String, :accesskey, :accessKey)
12
- attribute("Boolean", :draggable?, :draggable)
13
- attribute(String, :dropzone, :dropzone)
14
- attribute(String, :contextmenu, :contextMenu)
15
- attribute("Boolean", :spellcheck?, :spellcheck)
16
- attribute(String, :onabort, :onabort)
17
- attribute(String, :onblur, :onblur)
18
- attribute(String, :oncancel, :oncancel)
19
- attribute(String, :oncanplay, :oncanplay)
20
- attribute(String, :oncanplaythrough, :oncanplaythrough)
21
- attribute(String, :onchange, :onchange)
22
- attribute(String, :onclick, :onclick)
23
- attribute(String, :onclose, :onclose)
24
- attribute(String, :oncontextmenu, :oncontextmenu)
25
- attribute(String, :oncuechange, :oncuechange)
26
- attribute(String, :ondblclick, :ondblclick)
27
- attribute(String, :ondrag, :ondrag)
28
- attribute(String, :ondragend, :ondragend)
29
- attribute(String, :ondragenter, :ondragenter)
30
- attribute(String, :ondragexit, :ondragexit)
31
- attribute(String, :ondragleave, :ondragleave)
32
- attribute(String, :ondragover, :ondragover)
33
- attribute(String, :ondragstart, :ondragstart)
34
- attribute(String, :ondrop, :ondrop)
35
- attribute(String, :ondurationchange, :ondurationchange)
36
- attribute(String, :onemptied, :onemptied)
37
- attribute(String, :onended, :onended)
38
- attribute(String, :onerror, :onerror)
39
- attribute(String, :onfocus, :onfocus)
40
- attribute(String, :oninput, :oninput)
41
- attribute(String, :oninvalid, :oninvalid)
42
- attribute(String, :onkeydown, :onkeydown)
43
- attribute(String, :onkeypress, :onkeypress)
44
- attribute(String, :onkeyup, :onkeyup)
45
- attribute(String, :onload, :onload)
46
- attribute(String, :onloadeddata, :onloadeddata)
47
- attribute(String, :onloadedmetadata, :onloadedmetadata)
48
- attribute(String, :onloadstart, :onloadstart)
49
- attribute(String, :onmousedown, :onmousedown)
50
- attribute(String, :onmouseenter, :onmouseenter)
51
- attribute(String, :onmouseleave, :onmouseleave)
52
- attribute(String, :onmousemove, :onmousemove)
53
- attribute(String, :onmouseout, :onmouseout)
54
- attribute(String, :onmouseover, :onmouseover)
55
- attribute(String, :onmouseup, :onmouseup)
56
- attribute(String, :onwheel, :onwheel)
57
- attribute(String, :onpause, :onpause)
58
- attribute(String, :onplay, :onplay)
59
- attribute(String, :onplaying, :onplaying)
60
- attribute(String, :onprogress, :onprogress)
61
- attribute(String, :onratechange, :onratechange)
62
- attribute(String, :onreset, :onreset)
63
- attribute(String, :onresize, :onresize)
64
- attribute(String, :onscroll, :onscroll)
65
- attribute(String, :onseeked, :onseeked)
66
- attribute(String, :onseeking, :onseeking)
67
- attribute(String, :onselect, :onselect)
68
- attribute(String, :onshow, :onshow)
69
- attribute(String, :onstalled, :onstalled)
70
- attribute(String, :onsubmit, :onsubmit)
71
- attribute(String, :onsuspend, :onsuspend)
72
- attribute(String, :ontimeupdate, :ontimeupdate)
73
- attribute(String, :ontoggle, :ontoggle)
74
- attribute(String, :onvolumechange, :onvolumechange)
75
- attribute(String, :onwaiting, :onwaiting)
76
- attribute(String, :oncopy, :oncopy)
77
- attribute(String, :oncut, :oncut)
78
- attribute(String, :onpaste, :onpaste)
79
- attribute(String, :content_editable, :contentEditable)
80
- attribute("Boolean", :content_editable?, :isContentEditable)
81
- end
82
- class HTMLElementCollection < ElementCollection
83
- end
84
-
85
- class Font < HTMLElement
86
- attribute(String, :color, :color)
87
- attribute(String, :face, :face)
88
- end
89
- class FontCollection < ElementCollection
90
- end
91
-
92
- class Directory < HTMLElement
93
- attribute("Boolean", :compact?, :compact)
94
- end
95
- class DirectoryCollection < ElementCollection
96
- end
97
-
98
- class FrameSet < HTMLElement
99
- attribute(String, :cols, :cols)
100
- attribute(String, :onafterprint, :onafterprint)
101
- attribute(String, :onbeforeprint, :onbeforeprint)
102
- attribute(String, :onbeforeunload, :onbeforeunload)
103
- attribute(String, :onhashchange, :onhashchange)
104
- attribute(String, :onlanguagechange, :onlanguagechange)
105
- attribute(String, :onmessage, :onmessage)
106
- attribute(String, :onoffline, :onoffline)
107
- attribute(String, :ononline, :ononline)
108
- attribute(String, :onpagehide, :onpagehide)
109
- attribute(String, :onpageshow, :onpageshow)
110
- attribute(String, :onrejectionhandled, :onrejectionhandled)
111
- attribute(String, :onpopstate, :onpopstate)
112
- attribute(String, :onstorage, :onstorage)
113
- attribute(String, :onunhandledrejection, :onunhandledrejection)
114
- attribute(String, :onunload, :onunload)
115
- end
116
- class FrameSetCollection < ElementCollection
117
- end
118
-
119
- class Marquee < HTMLElement
120
- attribute(String, :behavior, :behavior)
121
- attribute(String, :bgcolor, :bgColor)
122
- attribute(String, :direction, :direction)
123
- attribute(Integer, :hspace, :hspace)
124
- attribute(Integer, :loop, :loop)
125
- attribute(Integer, :scrollamount, :scrollAmount)
126
- attribute(Integer, :scrolldelay, :scrollDelay)
127
- attribute("Boolean", :truespeed?, :trueSpeed)
128
- attribute(Integer, :vspace, :vspace)
129
- attribute(String, :onbounce, :onbounce)
130
- attribute(String, :onfinish, :onfinish)
131
- attribute(String, :onstart, :onstart)
132
- end
133
- class MarqueeCollection < ElementCollection
134
- end
135
-
136
- class Applet < HTMLElement
137
- attribute(String, :align, :align)
138
- attribute(String, :alt, :alt)
139
- attribute(String, :archive, :archive)
140
- attribute(String, :code, :code)
141
- attribute(String, :codebase, :codeBase)
142
- attribute(Integer, :hspace, :hspace)
143
- attribute(String, :name, :name)
144
- attribute(String, :object, :object)
145
- attribute(Integer, :vspace, :vspace)
146
- end
147
- class AppletCollection < ElementCollection
148
- end
149
-
150
- class Canvas < HTMLElement
151
- end
152
- class CanvasCollection < ElementCollection
153
- end
154
-
155
- class Template < HTMLElement
156
- attribute(String, :content, :content)
157
- end
158
- class TemplateCollection < ElementCollection
159
- end
160
-
161
- class Script < HTMLElement
162
- attribute(String, :src, :src)
163
- attribute(String, :type, :type)
164
- attribute(String, :charset, :charset)
165
- attribute("Boolean", :async?, :async)
166
- attribute("Boolean", :defer?, :defer)
167
- attribute(String, :crossorigin, :crossOrigin)
168
- attribute(String, :nonce, :nonce)
169
- attribute(String, :event, :event)
170
- attribute(String, :for, :htmlFor)
171
- end
172
- class ScriptCollection < ElementCollection
173
- end
174
-
175
- class MenuItem < HTMLElement
176
- attribute(String, :type, :type)
177
- attribute(String, :label, :label)
178
- attribute(String, :icon, :icon)
179
- attribute("Boolean", :disabled?, :disabled)
180
- attribute("Boolean", :checked?, :checked)
181
- attribute(String, :radiogroup, :radiogroup)
182
- attribute("Boolean", :default?, :default)
183
- end
184
- class MenuItemCollection < ElementCollection
185
- end
186
-
187
- class Menu < HTMLElement
188
- attribute(String, :type, :type)
189
- attribute(String, :label, :label)
190
- attribute("Boolean", :compact?, :compact)
191
- end
192
- class MenuCollection < ElementCollection
193
- end
194
-
195
- class Details < HTMLElement
196
- attribute("Boolean", :open?, :open)
197
- end
198
- class DetailsCollection < ElementCollection
199
- end
200
-
201
- class Legend < HTMLElement
202
- attribute(String, :form, :form)
203
- attribute(String, :align, :align)
204
- end
205
- class LegendCollection < ElementCollection
206
- end
207
-
208
- class FieldSet < HTMLElement
209
- attribute("Boolean", :disabled?, :disabled)
210
- attribute(String, :form, :form)
211
- attribute(String, :name, :name)
212
- attribute(String, :type, :type)
213
- attribute("Boolean", :willvalidate?, :willValidate)
214
- attribute(String, :validity, :validity)
215
- attribute(String, :validationmessage, :validationMessage)
216
- end
217
- class FieldSetCollection < ElementCollection
218
- end
219
-
220
- class Meter < HTMLElement
221
- attribute(Float, :value, :value)
222
- attribute(Float, :min, :min)
223
- attribute(Float, :max, :max)
224
- attribute(Float, :low, :low)
225
- attribute(Float, :high, :high)
226
- attribute(Float, :optimum, :optimum)
227
- attribute(String, :labels, :labels)
228
- end
229
- class MeterCollection < ElementCollection
230
- end
231
-
232
- class Progress < HTMLElement
233
- attribute(Float, :value, :value)
234
- attribute(Float, :max, :max)
235
- attribute(Float, :position, :position)
236
- attribute(String, :labels, :labels)
237
- end
238
- class ProgressCollection < ElementCollection
239
- end
240
-
241
- class Output < HTMLElement
242
- attribute(String, :for, :htmlFor)
243
- attribute(String, :form, :form)
244
- attribute(String, :name, :name)
245
- attribute(String, :type, :type)
246
- attribute(String, :defaultvalue, :defaultValue)
247
- attribute(String, :value, :value)
248
- attribute("Boolean", :willvalidate?, :willValidate)
249
- attribute(String, :validity, :validity)
250
- attribute(String, :validationmessage, :validationMessage)
251
- attribute(String, :labels, :labels)
252
- end
253
- class OutputCollection < ElementCollection
254
- end
255
-
256
- class Keygen < HTMLElement
257
- attribute("Boolean", :autofocus?, :autofocus)
258
- attribute(String, :challenge, :challenge)
259
- attribute("Boolean", :disabled?, :disabled)
260
- attribute(String, :form, :form)
261
- attribute(String, :keytype, :keytype)
262
- attribute(String, :name, :name)
263
- attribute(String, :type, :type)
264
- attribute("Boolean", :willvalidate?, :willValidate)
265
- attribute(String, :validity, :validity)
266
- attribute(String, :validationmessage, :validationMessage)
267
- attribute(String, :labels, :labels)
268
- end
269
- class KeygenCollection < ElementCollection
270
- end
271
-
272
- class TextArea < HTMLElement
273
- attribute(String, :autocomplete, :autocomplete)
274
- attribute("Boolean", :autofocus?, :autofocus)
275
- attribute(Integer, :cols, :cols)
276
- attribute(String, :dirname, :dirName)
277
- attribute("Boolean", :disabled?, :disabled)
278
- attribute(String, :form, :form)
279
- attribute(String, :inputmode, :inputMode)
280
- attribute(Integer, :maxlength, :maxLength)
281
- attribute(Integer, :minlength, :minLength)
282
- attribute(String, :name, :name)
283
- attribute(String, :placeholder, :placeholder)
284
- attribute("Boolean", :readonly?, :readOnly)
285
- attribute("Boolean", :required?, :required)
286
- attribute(String, :wrap, :wrap)
287
- attribute(String, :type, :type)
288
- attribute(String, :defaultvalue, :defaultValue)
289
- attribute(String, :value, :value)
290
- attribute(Integer, :textlength, :textLength)
291
- attribute("Boolean", :willvalidate?, :willValidate)
292
- attribute(String, :validity, :validity)
293
- attribute(String, :validationmessage, :validationMessage)
294
- attribute(String, :labels, :labels)
295
- attribute(Integer, :selectionstart, :selectionStart)
296
- attribute(Integer, :selectionend, :selectionEnd)
297
- attribute(String, :selectiondirection, :selectionDirection)
298
- end
299
- class TextAreaCollection < ElementCollection
300
- end
301
-
302
- class Option < HTMLElement
303
- attribute("Boolean", :disabled?, :disabled)
304
- attribute(String, :form, :form)
305
- attribute(String, :label, :label)
306
- attribute("Boolean", :defaultselected?, :defaultSelected)
307
- attribute("Boolean", :selected?, :selected)
308
- attribute(String, :value, :value)
309
- attribute(Integer, :index, :index)
310
- end
311
- class OptionCollection < ElementCollection
312
- end
313
-
314
- class OptGroup < HTMLElement
315
- attribute("Boolean", :disabled?, :disabled)
316
- attribute(String, :label, :label)
317
- end
318
- class OptGroupCollection < ElementCollection
319
- end
320
-
321
- class DataList < HTMLElement
322
- attribute(String, :options, :options)
323
- end
324
- class DataListCollection < ElementCollection
325
- end
326
-
327
- class Select < HTMLElement
328
- attribute(String, :autocomplete, :autocomplete)
329
- attribute("Boolean", :autofocus?, :autofocus)
330
- attribute("Boolean", :disabled?, :disabled)
331
- attribute(String, :form, :form)
332
- attribute("Boolean", :multiple?, :multiple)
333
- attribute(String, :name, :name)
334
- attribute("Boolean", :required?, :required)
335
- attribute(String, :type, :type)
336
- attribute(String, :options, :options)
337
- attribute(Integer, :length, :length)
338
- attribute(String, :selectedoptions, :selectedOptions)
339
- attribute(Integer, :selectedindex, :selectedIndex)
340
- attribute(String, :value, :value)
341
- attribute("Boolean", :willvalidate?, :willValidate)
342
- attribute(String, :validity, :validity)
343
- attribute(String, :validationmessage, :validationMessage)
344
- attribute(String, :labels, :labels)
345
- end
346
- class SelectCollection < ElementCollection
347
- end
348
-
349
- class Button < HTMLElement
350
- attribute("Boolean", :autofocus?, :autofocus)
351
- attribute("Boolean", :disabled?, :disabled)
352
- attribute(String, :form, :form)
353
- attribute(String, :formaction, :formAction)
354
- attribute(String, :formenctype, :formEnctype)
355
- attribute(String, :formmethod, :formMethod)
356
- attribute("Boolean", :formnovalidate?, :formNoValidate)
357
- attribute(String, :formtarget, :formTarget)
358
- attribute(String, :name, :name)
359
- attribute(String, :type, :type)
360
- attribute(String, :value, :value)
361
- attribute(String, :menu, :menu)
362
- attribute("Boolean", :willvalidate?, :willValidate)
363
- attribute(String, :validity, :validity)
364
- attribute(String, :validationmessage, :validationMessage)
365
- attribute(String, :labels, :labels)
366
- end
367
- class ButtonCollection < ElementCollection
368
- end
369
-
370
- class Input < HTMLElement
371
- attribute(String, :accept, :accept)
372
- attribute(String, :alt, :alt)
373
- attribute(String, :autocomplete, :autocomplete)
374
- attribute("Boolean", :autofocus?, :autofocus)
375
- attribute("Boolean", :defaultchecked?, :defaultChecked)
376
- attribute("Boolean", :checked?, :checked)
377
- attribute(String, :dirname, :dirName)
378
- attribute("Boolean", :disabled?, :disabled)
379
- attribute(String, :form, :form)
380
- attribute(String, :files, :files)
381
- attribute(String, :formaction, :formAction)
382
- attribute(String, :formenctype, :formEnctype)
383
- attribute(String, :formmethod, :formMethod)
384
- attribute("Boolean", :formnovalidate?, :formNoValidate)
385
- attribute(String, :formtarget, :formTarget)
386
- attribute("Boolean", :indeterminate?, :indeterminate)
387
- attribute(String, :inputmode, :inputMode)
388
- attribute(String, :list, :list)
389
- attribute(String, :max, :max)
390
- attribute(Integer, :maxlength, :maxLength)
391
- attribute(String, :min, :min)
392
- attribute(Integer, :minlength, :minLength)
393
- attribute("Boolean", :multiple?, :multiple)
394
- attribute(String, :name, :name)
395
- attribute(String, :pattern, :pattern)
396
- attribute(String, :placeholder, :placeholder)
397
- attribute("Boolean", :readonly?, :readOnly)
398
- attribute("Boolean", :required?, :required)
399
- attribute(String, :src, :src)
400
- attribute(String, :step, :step)
401
- attribute(String, :type, :type)
402
- attribute(String, :defaultvalue, :defaultValue)
403
- attribute(String, :value, :value)
404
- attribute(String, :valueasdate, :valueAsDate)
405
- attribute(Float, :valueasnumber, :valueAsNumber)
406
- attribute("Boolean", :willvalidate?, :willValidate)
407
- attribute(String, :validity, :validity)
408
- attribute(String, :validationmessage, :validationMessage)
409
- attribute(String, :labels, :labels)
410
- attribute(Integer, :selectionstart, :selectionStart)
411
- attribute(Integer, :selectionend, :selectionEnd)
412
- attribute(String, :selectiondirection, :selectionDirection)
413
- attribute(String, :align, :align)
414
- attribute(String, :usemap, :useMap)
415
- end
416
- class InputCollection < ElementCollection
417
- end
418
-
419
- class Label < HTMLElement
420
- attribute(String, :form, :form)
421
- attribute(String, :for, :htmlFor)
422
- attribute(String, :control, :control)
423
- end
424
- class LabelCollection < ElementCollection
425
- end
426
-
427
- class Form < HTMLElement
428
- attribute(String, :accept_charset, :acceptCharset)
429
- attribute(String, :action, :action)
430
- attribute(String, :autocomplete, :autocomplete)
431
- attribute(String, :enctype, :enctype)
432
- attribute(String, :encoding, :encoding)
433
- attribute(String, :method, :method)
434
- attribute(String, :name, :name)
435
- attribute("Boolean", :novalidate?, :noValidate)
436
- attribute(String, :target, :target)
437
- attribute(Integer, :length, :length)
438
- end
439
- class FormCollection < ElementCollection
440
- end
441
-
442
- class TableCell < HTMLElement
443
- attribute(Integer, :colspan, :colSpan)
444
- attribute(Integer, :rowspan, :rowSpan)
445
- attribute(String, :headers, :headers)
446
- attribute(Integer, :cellindex, :cellIndex)
447
- attribute(String, :align, :align)
448
- attribute(String, :axis, :axis)
449
- attribute(String, :ch, :ch)
450
- attribute(String, :choff, :chOff)
451
- attribute("Boolean", :nowrap?, :noWrap)
452
- attribute(String, :valign, :vAlign)
453
- attribute(String, :bgcolor, :bgColor)
454
- end
455
- class TableCellCollection < ElementCollection
456
- end
457
-
458
- class TableHeaderCell < TableCell
459
- attribute(String, :scope, :scope)
460
- attribute(String, :abbr, :abbr)
461
- end
462
- class TableHeaderCellCollection < ElementCollection
463
- end
464
-
465
- class TableDataCell < TableCell
466
- attribute(String, :abbr, :abbr)
467
- end
468
- class TableDataCellCollection < ElementCollection
469
- end
470
-
471
- class TableRow < HTMLElement
472
- attribute(Integer, :rowindex, :rowIndex)
473
- attribute(Integer, :sectionrowindex, :sectionRowIndex)
474
- attribute(String, :align, :align)
475
- attribute(String, :ch, :ch)
476
- attribute(String, :choff, :chOff)
477
- attribute(String, :valign, :vAlign)
478
- attribute(String, :bgcolor, :bgColor)
479
- end
480
- class TableRowCollection < ElementCollection
481
- end
482
-
483
- class TableSection < HTMLElement
484
- attribute(String, :align, :align)
485
- attribute(String, :ch, :ch)
486
- attribute(String, :choff, :chOff)
487
- attribute(String, :valign, :vAlign)
488
- end
489
- class TableSectionCollection < ElementCollection
490
- end
491
-
492
- class TableCol < HTMLElement
493
- attribute(String, :align, :align)
494
- attribute(String, :ch, :ch)
495
- attribute(String, :choff, :chOff)
496
- attribute(String, :valign, :vAlign)
497
- end
498
- class TableColCollection < ElementCollection
499
- end
500
-
501
- class TableCaption < HTMLElement
502
- attribute(String, :align, :align)
503
- end
504
- class TableCaptionCollection < ElementCollection
505
- end
506
-
507
- class Table < HTMLElement
508
- attribute(String, :caption, :caption)
509
- attribute(String, :tbodies, :tBodies)
510
- attribute(String, :align, :align)
511
- attribute(String, :border, :border)
512
- attribute(String, :frame, :frame)
513
- attribute(String, :rules, :rules)
514
- attribute(String, :summary, :summary)
515
- attribute(String, :bgcolor, :bgColor)
516
- attribute(String, :cellpadding, :cellPadding)
517
- attribute(String, :cellspacing, :cellSpacing)
518
- end
519
- class TableCollection < ElementCollection
520
- end
521
-
522
- class Area < HTMLElement
523
- attribute(String, :alt, :alt)
524
- attribute(String, :coords, :coords)
525
- attribute(String, :shape, :shape)
526
- attribute(String, :target, :target)
527
- attribute(String, :download, :download)
528
- attribute(String, :rel, :rel)
529
- attribute(String, :rellist, :relList)
530
- attribute(String, :hreflang, :hreflang)
531
- attribute(String, :type, :type)
532
- attribute("Boolean", :nohref?, :noHref)
533
- attribute(String, :href, :href)
534
- attribute(String, :origin, :origin)
535
- attribute(String, :protocol, :protocol)
536
- attribute(String, :username, :username)
537
- attribute(String, :password, :password)
538
- attribute(String, :host, :host)
539
- attribute(String, :hostname, :hostname)
540
- attribute(String, :port, :port)
541
- attribute(String, :pathname, :pathname)
542
- attribute(String, :search, :search)
543
- end
544
- class AreaCollection < ElementCollection
545
- end
546
-
547
- class Map < HTMLElement
548
- attribute(String, :name, :name)
549
- attribute(String, :areas, :areas)
550
- attribute(String, :images, :images)
551
- end
552
- class MapCollection < ElementCollection
553
- end
554
-
555
- class Media < HTMLElement
556
- attribute(String, :error, :error)
557
- attribute(String, :src, :src)
558
- attribute(String, :srcobject, :srcObject)
559
- attribute(String, :currentsrc, :currentSrc)
560
- attribute(String, :crossorigin, :crossOrigin)
561
- attribute(Integer, :networkstate, :networkState)
562
- attribute(String, :preload, :preload)
563
- attribute(String, :buffered, :buffered)
564
- attribute(Integer, :readystate, :readyState)
565
- attribute("Boolean", :seeking?, :seeking)
566
- attribute(Float, :currenttime, :currentTime)
567
- attribute(Float, :duration, :duration)
568
- attribute("Boolean", :paused?, :paused)
569
- attribute(Float, :defaultplaybackrate, :defaultPlaybackRate)
570
- attribute(Float, :playbackrate, :playbackRate)
571
- attribute(String, :played, :played)
572
- attribute(String, :seekable, :seekable)
573
- attribute("Boolean", :ended?, :ended)
574
- attribute("Boolean", :autoplay?, :autoplay)
575
- attribute("Boolean", :loop?, :loop)
576
- attribute("Boolean", :controls?, :controls)
577
- attribute(Float, :volume, :volume)
578
- attribute("Boolean", :muted?, :muted)
579
- attribute("Boolean", :defaultmuted?, :defaultMuted)
580
- attribute(String, :audiotracks, :audioTracks)
581
- attribute(String, :videotracks, :videoTracks)
582
- attribute(String, :texttracks, :textTracks)
583
- end
584
- class MediaCollection < ElementCollection
585
- end
586
-
587
- class Audio < Media
588
- end
589
- class AudioCollection < ElementCollection
590
- end
591
-
592
- class Video < Media
593
- attribute(Integer, :videowidth, :videoWidth)
594
- attribute(Integer, :videoheight, :videoHeight)
595
- attribute(String, :poster, :poster)
596
- end
597
- class VideoCollection < ElementCollection
598
- end
599
-
600
- class Track < HTMLElement
601
- attribute(String, :kind, :kind)
602
- attribute(String, :src, :src)
603
- attribute(String, :srclang, :srclang)
604
- attribute(String, :label, :label)
605
- attribute("Boolean", :default?, :default)
606
- attribute(Integer, :readystate, :readyState)
607
- attribute(String, :track, :track)
608
- end
609
- class TrackCollection < ElementCollection
610
- end
611
-
612
- class Param < HTMLElement
613
- attribute(String, :name, :name)
614
- attribute(String, :value, :value)
615
- attribute(String, :type, :type)
616
- attribute(String, :valuetype, :valueType)
617
- end
618
- class ParamCollection < ElementCollection
619
- end
620
-
621
- class Object < HTMLElement
622
- attribute(String, :data, :data)
623
- attribute(String, :type, :type)
624
- attribute("Boolean", :typemustmatch?, :typeMustMatch)
625
- attribute(String, :name, :name)
626
- attribute(String, :form, :form)
627
- attribute(String, :contentdocument, :contentDocument)
628
- attribute(String, :contentwindow, :contentWindow)
629
- attribute("Boolean", :willvalidate?, :willValidate)
630
- attribute(String, :validity, :validity)
631
- attribute(String, :validationmessage, :validationMessage)
632
- attribute(String, :align, :align)
633
- attribute(String, :archive, :archive)
634
- attribute(String, :code, :code)
635
- attribute("Boolean", :declare?, :declare)
636
- attribute(Integer, :hspace, :hspace)
637
- attribute(String, :standby, :standby)
638
- attribute(Integer, :vspace, :vspace)
639
- attribute(String, :codebase, :codeBase)
640
- attribute(String, :codetype, :codeType)
641
- attribute(String, :usemap, :useMap)
642
- attribute(String, :border, :border)
643
- end
644
- class ObjectCollection < ElementCollection
645
- end
646
-
647
- class Embed < HTMLElement
648
- attribute(String, :src, :src)
649
- attribute(String, :type, :type)
650
- attribute(String, :align, :align)
651
- attribute(String, :name, :name)
652
- end
653
- class EmbedCollection < ElementCollection
654
- end
655
-
656
- class IFrame < HTMLElement
657
- attribute(String, :src, :src)
658
- attribute(String, :srcdoc, :srcdoc)
659
- attribute(String, :name, :name)
660
- attribute(String, :sandbox, :sandbox)
661
- attribute("Boolean", :allowfullscreen?, :allowFullscreen)
662
- attribute(String, :contentdocument, :contentDocument)
663
- attribute(String, :contentwindow, :contentWindow)
664
- attribute(String, :align, :align)
665
- attribute(String, :scrolling, :scrolling)
666
- attribute(String, :frameborder, :frameBorder)
667
- attribute(String, :marginheight, :marginHeight)
668
- attribute(String, :marginwidth, :marginWidth)
669
- end
670
- class IFrameCollection < ElementCollection
671
- end
672
-
673
- class Image < HTMLElement
674
- attribute(String, :alt, :alt)
675
- attribute(String, :src, :src)
676
- attribute(String, :srcset, :srcset)
677
- attribute(String, :sizes, :sizes)
678
- attribute(String, :crossorigin, :crossOrigin)
679
- attribute(String, :usemap, :useMap)
680
- attribute("Boolean", :ismap?, :isMap)
681
- attribute(Integer, :naturalwidth, :naturalWidth)
682
- attribute(Integer, :naturalheight, :naturalHeight)
683
- attribute("Boolean", :complete?, :complete)
684
- attribute(String, :currentsrc, :currentSrc)
685
- attribute(String, :name, :name)
686
- attribute(String, :lowsrc, :lowsrc)
687
- attribute(String, :align, :align)
688
- attribute(Integer, :hspace, :hspace)
689
- attribute(Integer, :vspace, :vspace)
690
- attribute(String, :border, :border)
691
- end
692
- class ImageCollection < ElementCollection
693
- end
694
-
695
- class Source < HTMLElement
696
- attribute(String, :srcset, :srcset)
697
- attribute(String, :sizes, :sizes)
698
- attribute(String, :media, :media)
699
- attribute(String, :src, :src)
700
- attribute(String, :type, :type)
701
- end
702
- class SourceCollection < ElementCollection
703
- end
704
-
705
- class Picture < HTMLElement
706
- end
707
- class PictureCollection < ElementCollection
708
- end
709
-
710
- class Mod < HTMLElement
711
- attribute(String, :cite, :cite)
712
- attribute(String, :datetime, :dateTime)
713
- end
714
- class ModCollection < ElementCollection
715
- end
716
-
717
- class BR < HTMLElement
718
- attribute(String, :clear, :clear)
719
- end
720
- class BRCollection < ElementCollection
721
- end
722
-
723
- class Span < HTMLElement
724
- end
725
- class SpanCollection < ElementCollection
726
- end
727
-
728
- class Time < HTMLElement
729
- attribute(String, :datetime, :dateTime)
730
- end
731
- class TimeCollection < ElementCollection
732
- end
733
-
734
- class Data < HTMLElement
735
- attribute(String, :value, :value)
736
- end
737
- class DataCollection < ElementCollection
738
- end
739
-
740
- class Anchor < HTMLElement
741
- attribute(String, :target, :target)
742
- attribute(String, :download, :download)
743
- attribute(String, :rel, :rel)
744
- attribute(String, :rev, :rev)
745
- attribute(String, :rellist, :relList)
746
- attribute(String, :hreflang, :hreflang)
747
- attribute(String, :type, :type)
748
- attribute(String, :coords, :coords)
749
- attribute(String, :charset, :charset)
750
- attribute(String, :name, :name)
751
- attribute(String, :shape, :shape)
752
- attribute(String, :href, :href)
753
- attribute(String, :origin, :origin)
754
- attribute(String, :protocol, :protocol)
755
- attribute(String, :username, :username)
756
- attribute(String, :password, :password)
757
- attribute(String, :host, :host)
758
- attribute(String, :hostname, :hostname)
759
- attribute(String, :port, :port)
760
- attribute(String, :pathname, :pathname)
761
- attribute(String, :search, :search)
762
- end
763
- class AnchorCollection < ElementCollection
764
- end
765
-
766
- class Div < HTMLElement
767
- attribute(String, :align, :align)
768
- end
769
- class DivCollection < ElementCollection
770
- end
771
-
772
- class DList < HTMLElement
773
- attribute("Boolean", :compact?, :compact)
774
- end
775
- class DListCollection < ElementCollection
776
- end
777
-
778
- class LI < HTMLElement
779
- attribute(Integer, :value, :value)
780
- attribute(String, :type, :type)
781
- end
782
- class LICollection < ElementCollection
783
- end
784
-
785
- class UList < HTMLElement
786
- attribute("Boolean", :compact?, :compact)
787
- attribute(String, :type, :type)
788
- end
789
- class UListCollection < ElementCollection
790
- end
791
-
792
- class OList < HTMLElement
793
- attribute("Boolean", :reversed?, :reversed)
794
- attribute(Integer, :start, :start)
795
- attribute(String, :type, :type)
796
- attribute("Boolean", :compact?, :compact)
797
- end
798
- class OListCollection < ElementCollection
799
- end
800
-
801
- class Quote < HTMLElement
802
- attribute(String, :cite, :cite)
803
- end
804
- class QuoteCollection < ElementCollection
805
- end
806
-
807
- class Pre < HTMLElement
808
- end
809
- class PreCollection < ElementCollection
810
- end
811
-
812
- class HR < HTMLElement
813
- attribute(String, :align, :align)
814
- attribute(String, :color, :color)
815
- attribute("Boolean", :noshade?, :noShade)
816
- end
817
- class HRCollection < ElementCollection
818
- end
819
-
820
- class Paragraph < HTMLElement
821
- attribute(String, :align, :align)
822
- end
823
- class ParagraphCollection < ElementCollection
824
- end
825
-
826
- class Heading < HTMLElement
827
- attribute(String, :align, :align)
828
- end
829
- class HeadingCollection < ElementCollection
830
- end
831
-
832
- class Body < HTMLElement
833
- attribute(String, :link, :link)
834
- attribute(String, :vlink, :vLink)
835
- attribute(String, :alink, :aLink)
836
- attribute(String, :bgcolor, :bgColor)
837
- attribute(String, :background, :background)
838
- attribute(String, :onafterprint, :onafterprint)
839
- attribute(String, :onbeforeprint, :onbeforeprint)
840
- attribute(String, :onbeforeunload, :onbeforeunload)
841
- attribute(String, :onhashchange, :onhashchange)
842
- attribute(String, :onlanguagechange, :onlanguagechange)
843
- attribute(String, :onmessage, :onmessage)
844
- attribute(String, :onoffline, :onoffline)
845
- attribute(String, :ononline, :ononline)
846
- attribute(String, :onpagehide, :onpagehide)
847
- attribute(String, :onpageshow, :onpageshow)
848
- attribute(String, :onrejectionhandled, :onrejectionhandled)
849
- attribute(String, :onpopstate, :onpopstate)
850
- attribute(String, :onstorage, :onstorage)
851
- attribute(String, :onunhandledrejection, :onunhandledrejection)
852
- attribute(String, :onunload, :onunload)
853
- end
854
- class BodyCollection < ElementCollection
855
- end
856
-
857
- class Style < HTMLElement
858
- attribute(String, :media, :media)
859
- attribute(String, :nonce, :nonce)
860
- attribute(String, :type, :type)
861
- end
862
- class StyleCollection < ElementCollection
863
- end
864
-
865
- class Meta < HTMLElement
866
- attribute(String, :name, :name)
867
- attribute(String, :http_equiv, :httpEquiv)
868
- attribute(String, :content, :content)
869
- attribute(String, :scheme, :scheme)
870
- end
871
- class MetaCollection < ElementCollection
872
- end
873
-
874
- class Base < HTMLElement
875
- attribute(String, :href, :href)
876
- attribute(String, :target, :target)
877
- end
878
- class BaseCollection < ElementCollection
879
- end
880
-
881
- class Title < HTMLElement
882
- end
883
- class TitleCollection < ElementCollection
884
- end
885
-
886
- class Head < HTMLElement
887
- end
888
- class HeadCollection < ElementCollection
889
- end
890
-
891
- class Html < HTMLElement
892
- attribute(String, :version, :version)
893
- end
894
- class HtmlCollection < ElementCollection
895
- end
896
-
897
- class Unknown < HTMLElement
898
- end
899
- class UnknownCollection < ElementCollection
900
- end
901
-
902
-
903
- module Container
904
-
905
- # @return [Anchor]
906
- def a(*args)
907
- Anchor.new(self, extract_selector(args).merge(tag_name: "a"))
908
- end
909
- # @return [AnchorCollection]
910
- def as(*args)
911
- AnchorCollection.new(self, extract_selector(args).merge(tag_name: "a"))
912
- end
913
- Watir.tag_to_class[:a] = Anchor
914
-
915
- # @return [HTMLElement]
916
- def abbr(*args)
917
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "abbr"))
918
- end
919
- # @return [HTMLElementCollection]
920
- def abbrs(*args)
921
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "abbr"))
922
- end
923
- Watir.tag_to_class[:abbr] = HTMLElement
924
-
925
- # @return [HTMLElement]
926
- def address(*args)
927
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "address"))
928
- end
929
- # @return [HTMLElementCollection]
930
- def addresses(*args)
931
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "address"))
932
- end
933
- Watir.tag_to_class[:address] = HTMLElement
934
-
935
- # @return [Area]
936
- def area(*args)
937
- Area.new(self, extract_selector(args).merge(tag_name: "area"))
938
- end
939
- # @return [AreaCollection]
940
- def areas(*args)
941
- AreaCollection.new(self, extract_selector(args).merge(tag_name: "area"))
942
- end
943
- Watir.tag_to_class[:area] = Area
944
-
945
- # @return [HTMLElement]
946
- def article(*args)
947
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "article"))
948
- end
949
- # @return [HTMLElementCollection]
950
- def articles(*args)
951
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "article"))
952
- end
953
- Watir.tag_to_class[:article] = HTMLElement
954
-
955
- # @return [HTMLElement]
956
- def aside(*args)
957
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "aside"))
958
- end
959
- # @return [HTMLElementCollection]
960
- def asides(*args)
961
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "aside"))
962
- end
963
- Watir.tag_to_class[:aside] = HTMLElement
964
-
965
- # @return [Audio]
966
- def audio(*args)
967
- Audio.new(self, extract_selector(args).merge(tag_name: "audio"))
968
- end
969
- # @return [AudioCollection]
970
- def audios(*args)
971
- AudioCollection.new(self, extract_selector(args).merge(tag_name: "audio"))
972
- end
973
- Watir.tag_to_class[:audio] = Audio
974
-
975
- # @return [HTMLElement]
976
- def b(*args)
977
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "b"))
978
- end
979
- # @return [HTMLElementCollection]
980
- def bs(*args)
981
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "b"))
982
- end
983
- Watir.tag_to_class[:b] = HTMLElement
984
-
985
- # @return [Base]
986
- def base(*args)
987
- Base.new(self, extract_selector(args).merge(tag_name: "base"))
988
- end
989
- # @return [BaseCollection]
990
- def bases(*args)
991
- BaseCollection.new(self, extract_selector(args).merge(tag_name: "base"))
992
- end
993
- Watir.tag_to_class[:base] = Base
994
-
995
- # @return [HTMLElement]
996
- def bdi(*args)
997
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "bdi"))
998
- end
999
- # @return [HTMLElementCollection]
1000
- def bdis(*args)
1001
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "bdi"))
1002
- end
1003
- Watir.tag_to_class[:bdi] = HTMLElement
1004
-
1005
- # @return [HTMLElement]
1006
- def bdo(*args)
1007
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "bdo"))
1008
- end
1009
- # @return [HTMLElementCollection]
1010
- def bdos(*args)
1011
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "bdo"))
1012
- end
1013
- Watir.tag_to_class[:bdo] = HTMLElement
1014
-
1015
- # @return [Quote]
1016
- def blockquote(*args)
1017
- Quote.new(self, extract_selector(args).merge(tag_name: "blockquote"))
1018
- end
1019
- # @return [QuoteCollection]
1020
- def blockquotes(*args)
1021
- QuoteCollection.new(self, extract_selector(args).merge(tag_name: "blockquote"))
1022
- end
1023
- Watir.tag_to_class[:blockquote] = Quote
1024
-
1025
- # @return [Body]
1026
- def body(*args)
1027
- Body.new(self, extract_selector(args).merge(tag_name: "body"))
1028
- end
1029
- # @return [BodyCollection]
1030
- def bodys(*args)
1031
- BodyCollection.new(self, extract_selector(args).merge(tag_name: "body"))
1032
- end
1033
- Watir.tag_to_class[:body] = Body
1034
-
1035
- # @return [BR]
1036
- def br(*args)
1037
- BR.new(self, extract_selector(args).merge(tag_name: "br"))
1038
- end
1039
- # @return [BRCollection]
1040
- def brs(*args)
1041
- BRCollection.new(self, extract_selector(args).merge(tag_name: "br"))
1042
- end
1043
- Watir.tag_to_class[:br] = BR
1044
-
1045
- # @return [Button]
1046
- def button(*args)
1047
- Button.new(self, extract_selector(args).merge(tag_name: "button"))
1048
- end
1049
- # @return [ButtonCollection]
1050
- def buttons(*args)
1051
- ButtonCollection.new(self, extract_selector(args).merge(tag_name: "button"))
1052
- end
1053
- Watir.tag_to_class[:button] = Button
1054
-
1055
- # @return [Canvas]
1056
- def canvas(*args)
1057
- Canvas.new(self, extract_selector(args).merge(tag_name: "canvas"))
1058
- end
1059
- # @return [CanvasCollection]
1060
- def canvases(*args)
1061
- CanvasCollection.new(self, extract_selector(args).merge(tag_name: "canvas"))
1062
- end
1063
- Watir.tag_to_class[:canvas] = Canvas
1064
-
1065
- # @return [TableCaption]
1066
- def caption(*args)
1067
- TableCaption.new(self, extract_selector(args).merge(tag_name: "caption"))
1068
- end
1069
- # @return [TableCaptionCollection]
1070
- def captions(*args)
1071
- TableCaptionCollection.new(self, extract_selector(args).merge(tag_name: "caption"))
1072
- end
1073
- Watir.tag_to_class[:caption] = TableCaption
1074
-
1075
- # @return [HTMLElement]
1076
- def cite(*args)
1077
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "cite"))
1078
- end
1079
- # @return [HTMLElementCollection]
1080
- def cites(*args)
1081
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "cite"))
1082
- end
1083
- Watir.tag_to_class[:cite] = HTMLElement
1084
-
1085
- # @return [HTMLElement]
1086
- def code(*args)
1087
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "code"))
1088
- end
1089
- # @return [HTMLElementCollection]
1090
- def codes(*args)
1091
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "code"))
1092
- end
1093
- Watir.tag_to_class[:code] = HTMLElement
1094
-
1095
- # @return [TableCol]
1096
- def col(*args)
1097
- TableCol.new(self, extract_selector(args).merge(tag_name: "col"))
1098
- end
1099
- # @return [TableColCollection]
1100
- def cols(*args)
1101
- TableColCollection.new(self, extract_selector(args).merge(tag_name: "col"))
1102
- end
1103
- Watir.tag_to_class[:col] = TableCol
1104
-
1105
- # @return [TableCol]
1106
- def colgroup(*args)
1107
- TableCol.new(self, extract_selector(args).merge(tag_name: "colgroup"))
1108
- end
1109
- # @return [TableColCollection]
1110
- def colgroups(*args)
1111
- TableColCollection.new(self, extract_selector(args).merge(tag_name: "colgroup"))
1112
- end
1113
- Watir.tag_to_class[:colgroup] = TableCol
1114
-
1115
- # @return [Data]
1116
- def data(*args)
1117
- Data.new(self, extract_selector(args).merge(tag_name: "data"))
1118
- end
1119
- # @return [DataCollection]
1120
- def datas(*args)
1121
- DataCollection.new(self, extract_selector(args).merge(tag_name: "data"))
1122
- end
1123
- Watir.tag_to_class[:data] = Data
1124
-
1125
- # @return [DataList]
1126
- def datalist(*args)
1127
- DataList.new(self, extract_selector(args).merge(tag_name: "datalist"))
1128
- end
1129
- # @return [DataListCollection]
1130
- def datalists(*args)
1131
- DataListCollection.new(self, extract_selector(args).merge(tag_name: "datalist"))
1132
- end
1133
- Watir.tag_to_class[:datalist] = DataList
1134
-
1135
- # @return [HTMLElement]
1136
- def dd(*args)
1137
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "dd"))
1138
- end
1139
- # @return [HTMLElementCollection]
1140
- def dds(*args)
1141
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dd"))
1142
- end
1143
- Watir.tag_to_class[:dd] = HTMLElement
1144
-
1145
- # @return [Mod]
1146
- def del(*args)
1147
- Mod.new(self, extract_selector(args).merge(tag_name: "del"))
1148
- end
1149
- # @return [ModCollection]
1150
- def dels(*args)
1151
- ModCollection.new(self, extract_selector(args).merge(tag_name: "del"))
1152
- end
1153
- Watir.tag_to_class[:del] = Mod
1154
-
1155
- # @return [Details]
1156
- def details(*args)
1157
- Details.new(self, extract_selector(args).merge(tag_name: "details"))
1158
- end
1159
- # @return [DetailsCollection]
1160
- def detailses(*args)
1161
- DetailsCollection.new(self, extract_selector(args).merge(tag_name: "details"))
1162
- end
1163
- Watir.tag_to_class[:details] = Details
1164
-
1165
- # @return [HTMLElement]
1166
- def dfn(*args)
1167
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "dfn"))
1168
- end
1169
- # @return [HTMLElementCollection]
1170
- def dfns(*args)
1171
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dfn"))
1172
- end
1173
- Watir.tag_to_class[:dfn] = HTMLElement
1174
-
1175
- # @return [Div]
1176
- def div(*args)
1177
- Div.new(self, extract_selector(args).merge(tag_name: "div"))
1178
- end
1179
- # @return [DivCollection]
1180
- def divs(*args)
1181
- DivCollection.new(self, extract_selector(args).merge(tag_name: "div"))
1182
- end
1183
- Watir.tag_to_class[:div] = Div
1184
-
1185
- # @return [DList]
1186
- def dl(*args)
1187
- DList.new(self, extract_selector(args).merge(tag_name: "dl"))
1188
- end
1189
- # @return [DListCollection]
1190
- def dls(*args)
1191
- DListCollection.new(self, extract_selector(args).merge(tag_name: "dl"))
1192
- end
1193
- Watir.tag_to_class[:dl] = DList
1194
-
1195
- # @return [HTMLElement]
1196
- def dt(*args)
1197
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "dt"))
1198
- end
1199
- # @return [HTMLElementCollection]
1200
- def dts(*args)
1201
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dt"))
1202
- end
1203
- Watir.tag_to_class[:dt] = HTMLElement
1204
-
1205
- # @return [HTMLElement]
1206
- def em(*args)
1207
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "em"))
1208
- end
1209
- # @return [HTMLElementCollection]
1210
- def ems(*args)
1211
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "em"))
1212
- end
1213
- Watir.tag_to_class[:em] = HTMLElement
1214
-
1215
- # @return [Embed]
1216
- def embed(*args)
1217
- Embed.new(self, extract_selector(args).merge(tag_name: "embed"))
1218
- end
1219
- # @return [EmbedCollection]
1220
- def embeds(*args)
1221
- EmbedCollection.new(self, extract_selector(args).merge(tag_name: "embed"))
1222
- end
1223
- Watir.tag_to_class[:embed] = Embed
1224
-
1225
- # @return [FieldSet]
1226
- def fieldset(*args)
1227
- FieldSet.new(self, extract_selector(args).merge(tag_name: "fieldset"))
1228
- end
1229
- # @return [FieldSetCollection]
1230
- def fieldsets(*args)
1231
- FieldSetCollection.new(self, extract_selector(args).merge(tag_name: "fieldset"))
1232
- end
1233
- Watir.tag_to_class[:fieldset] = FieldSet
1234
-
1235
- # @return [HTMLElement]
1236
- def figcaption(*args)
1237
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "figcaption"))
1238
- end
1239
- # @return [HTMLElementCollection]
1240
- def figcaptions(*args)
1241
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "figcaption"))
1242
- end
1243
- Watir.tag_to_class[:figcaption] = HTMLElement
1244
-
1245
- # @return [HTMLElement]
1246
- def figure(*args)
1247
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "figure"))
1248
- end
1249
- # @return [HTMLElementCollection]
1250
- def figures(*args)
1251
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "figure"))
1252
- end
1253
- Watir.tag_to_class[:figure] = HTMLElement
1254
-
1255
- # @return [HTMLElement]
1256
- def footer(*args)
1257
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "footer"))
1258
- end
1259
- # @return [HTMLElementCollection]
1260
- def footers(*args)
1261
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "footer"))
1262
- end
1263
- Watir.tag_to_class[:footer] = HTMLElement
1264
-
1265
- # @return [Form]
1266
- def form(*args)
1267
- Form.new(self, extract_selector(args).merge(tag_name: "form"))
1268
- end
1269
- # @return [FormCollection]
1270
- def forms(*args)
1271
- FormCollection.new(self, extract_selector(args).merge(tag_name: "form"))
1272
- end
1273
- Watir.tag_to_class[:form] = Form
1274
-
1275
- # @return [FrameSet]
1276
- def frameset(*args)
1277
- FrameSet.new(self, extract_selector(args).merge(tag_name: "frameset"))
1278
- end
1279
- # @return [FrameSetCollection]
1280
- def framesets(*args)
1281
- FrameSetCollection.new(self, extract_selector(args).merge(tag_name: "frameset"))
1282
- end
1283
- Watir.tag_to_class[:frameset] = FrameSet
1284
-
1285
- # @return [Heading]
1286
- def h1(*args)
1287
- Heading.new(self, extract_selector(args).merge(tag_name: "h1"))
1288
- end
1289
- # @return [HeadingCollection]
1290
- def h1s(*args)
1291
- HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h1"))
1292
- end
1293
- Watir.tag_to_class[:h1] = Heading
1294
-
1295
- # @return [Heading]
1296
- def h2(*args)
1297
- Heading.new(self, extract_selector(args).merge(tag_name: "h2"))
1298
- end
1299
- # @return [HeadingCollection]
1300
- def h2s(*args)
1301
- HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h2"))
1302
- end
1303
- Watir.tag_to_class[:h2] = Heading
1304
-
1305
- # @return [Heading]
1306
- def h3(*args)
1307
- Heading.new(self, extract_selector(args).merge(tag_name: "h3"))
1308
- end
1309
- # @return [HeadingCollection]
1310
- def h3s(*args)
1311
- HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h3"))
1312
- end
1313
- Watir.tag_to_class[:h3] = Heading
1314
-
1315
- # @return [Heading]
1316
- def h4(*args)
1317
- Heading.new(self, extract_selector(args).merge(tag_name: "h4"))
1318
- end
1319
- # @return [HeadingCollection]
1320
- def h4s(*args)
1321
- HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h4"))
1322
- end
1323
- Watir.tag_to_class[:h4] = Heading
1324
-
1325
- # @return [Heading]
1326
- def h5(*args)
1327
- Heading.new(self, extract_selector(args).merge(tag_name: "h5"))
1328
- end
1329
- # @return [HeadingCollection]
1330
- def h5s(*args)
1331
- HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h5"))
1332
- end
1333
- Watir.tag_to_class[:h5] = Heading
1334
-
1335
- # @return [Heading]
1336
- def h6(*args)
1337
- Heading.new(self, extract_selector(args).merge(tag_name: "h6"))
1338
- end
1339
- # @return [HeadingCollection]
1340
- def h6s(*args)
1341
- HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h6"))
1342
- end
1343
- Watir.tag_to_class[:h6] = Heading
1344
-
1345
- # @return [Head]
1346
- def head(*args)
1347
- Head.new(self, extract_selector(args).merge(tag_name: "head"))
1348
- end
1349
- # @return [HeadCollection]
1350
- def heads(*args)
1351
- HeadCollection.new(self, extract_selector(args).merge(tag_name: "head"))
1352
- end
1353
- Watir.tag_to_class[:head] = Head
1354
-
1355
- # @return [HTMLElement]
1356
- def header(*args)
1357
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "header"))
1358
- end
1359
- # @return [HTMLElementCollection]
1360
- def headers(*args)
1361
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "header"))
1362
- end
1363
- Watir.tag_to_class[:header] = HTMLElement
1364
-
1365
- # @return [HR]
1366
- def hr(*args)
1367
- HR.new(self, extract_selector(args).merge(tag_name: "hr"))
1368
- end
1369
- # @return [HRCollection]
1370
- def hrs(*args)
1371
- HRCollection.new(self, extract_selector(args).merge(tag_name: "hr"))
1372
- end
1373
- Watir.tag_to_class[:hr] = HR
1374
-
1375
- # @return [Html]
1376
- def html(*args)
1377
- Html.new(self, extract_selector(args).merge(tag_name: "html"))
1378
- end
1379
- # @return [HtmlCollection]
1380
- def htmls(*args)
1381
- HtmlCollection.new(self, extract_selector(args).merge(tag_name: "html"))
1382
- end
1383
- Watir.tag_to_class[:html] = Html
1384
-
1385
- # @return [HTMLElement]
1386
- def i(*args)
1387
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "i"))
1388
- end
1389
- # @return [HTMLElementCollection]
1390
- def is(*args)
1391
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "i"))
1392
- end
1393
- Watir.tag_to_class[:i] = HTMLElement
1394
-
1395
- # @return [IFrame]
1396
- def iframe(*args)
1397
- IFrame.new(self, extract_selector(args).merge(tag_name: "iframe"))
1398
- end
1399
- # @return [IFrameCollection]
1400
- def iframes(*args)
1401
- IFrameCollection.new(self, extract_selector(args).merge(tag_name: "iframe"))
1402
- end
1403
- Watir.tag_to_class[:iframe] = IFrame
1404
-
1405
- # @return [Image]
1406
- def img(*args)
1407
- Image.new(self, extract_selector(args).merge(tag_name: "img"))
1408
- end
1409
- # @return [ImageCollection]
1410
- def imgs(*args)
1411
- ImageCollection.new(self, extract_selector(args).merge(tag_name: "img"))
1412
- end
1413
- Watir.tag_to_class[:img] = Image
1414
-
1415
- # @return [Input]
1416
- def input(*args)
1417
- Input.new(self, extract_selector(args).merge(tag_name: "input"))
1418
- end
1419
- # @return [InputCollection]
1420
- def inputs(*args)
1421
- InputCollection.new(self, extract_selector(args).merge(tag_name: "input"))
1422
- end
1423
- Watir.tag_to_class[:input] = Input
1424
-
1425
- # @return [Mod]
1426
- def ins(*args)
1427
- Mod.new(self, extract_selector(args).merge(tag_name: "ins"))
1428
- end
1429
- # @return [ModCollection]
1430
- def inses(*args)
1431
- ModCollection.new(self, extract_selector(args).merge(tag_name: "ins"))
1432
- end
1433
- Watir.tag_to_class[:ins] = Mod
1434
-
1435
- # @return [HTMLElement]
1436
- def kbd(*args)
1437
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "kbd"))
1438
- end
1439
- # @return [HTMLElementCollection]
1440
- def kbds(*args)
1441
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "kbd"))
1442
- end
1443
- Watir.tag_to_class[:kbd] = HTMLElement
1444
-
1445
- # @return [Keygen]
1446
- def keygen(*args)
1447
- Keygen.new(self, extract_selector(args).merge(tag_name: "keygen"))
1448
- end
1449
- # @return [KeygenCollection]
1450
- def keygens(*args)
1451
- KeygenCollection.new(self, extract_selector(args).merge(tag_name: "keygen"))
1452
- end
1453
- Watir.tag_to_class[:keygen] = Keygen
1454
-
1455
- # @return [Label]
1456
- def label(*args)
1457
- Label.new(self, extract_selector(args).merge(tag_name: "label"))
1458
- end
1459
- # @return [LabelCollection]
1460
- def labels(*args)
1461
- LabelCollection.new(self, extract_selector(args).merge(tag_name: "label"))
1462
- end
1463
- Watir.tag_to_class[:label] = Label
1464
-
1465
- # @return [Legend]
1466
- def legend(*args)
1467
- Legend.new(self, extract_selector(args).merge(tag_name: "legend"))
1468
- end
1469
- # @return [LegendCollection]
1470
- def legends(*args)
1471
- LegendCollection.new(self, extract_selector(args).merge(tag_name: "legend"))
1472
- end
1473
- Watir.tag_to_class[:legend] = Legend
1474
-
1475
- # @return [LI]
1476
- def li(*args)
1477
- LI.new(self, extract_selector(args).merge(tag_name: "li"))
1478
- end
1479
- # @return [LICollection]
1480
- def lis(*args)
1481
- LICollection.new(self, extract_selector(args).merge(tag_name: "li"))
1482
- end
1483
- Watir.tag_to_class[:li] = LI
1484
-
1485
- # @return [HTMLElement]
1486
- def main(*args)
1487
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "main"))
1488
- end
1489
- # @return [HTMLElementCollection]
1490
- def mains(*args)
1491
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "main"))
1492
- end
1493
- Watir.tag_to_class[:main] = HTMLElement
1494
-
1495
- # @return [Map]
1496
- def map(*args)
1497
- Map.new(self, extract_selector(args).merge(tag_name: "map"))
1498
- end
1499
- # @return [MapCollection]
1500
- def maps(*args)
1501
- MapCollection.new(self, extract_selector(args).merge(tag_name: "map"))
1502
- end
1503
- Watir.tag_to_class[:map] = Map
1504
-
1505
- # @return [HTMLElement]
1506
- def mark(*args)
1507
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "mark"))
1508
- end
1509
- # @return [HTMLElementCollection]
1510
- def marks(*args)
1511
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "mark"))
1512
- end
1513
- Watir.tag_to_class[:mark] = HTMLElement
1514
-
1515
- # @return [Menu]
1516
- def menu(*args)
1517
- Menu.new(self, extract_selector(args).merge(tag_name: "menu"))
1518
- end
1519
- # @return [MenuCollection]
1520
- def menus(*args)
1521
- MenuCollection.new(self, extract_selector(args).merge(tag_name: "menu"))
1522
- end
1523
- Watir.tag_to_class[:menu] = Menu
1524
-
1525
- # @return [MenuItem]
1526
- def menuitem(*args)
1527
- MenuItem.new(self, extract_selector(args).merge(tag_name: "menuitem"))
1528
- end
1529
- # @return [MenuItemCollection]
1530
- def menuitems(*args)
1531
- MenuItemCollection.new(self, extract_selector(args).merge(tag_name: "menuitem"))
1532
- end
1533
- Watir.tag_to_class[:menuitem] = MenuItem
1534
-
1535
- # @return [Meta]
1536
- def meta(*args)
1537
- Meta.new(self, extract_selector(args).merge(tag_name: "meta"))
1538
- end
1539
- # @return [MetaCollection]
1540
- def metas(*args)
1541
- MetaCollection.new(self, extract_selector(args).merge(tag_name: "meta"))
1542
- end
1543
- Watir.tag_to_class[:meta] = Meta
1544
-
1545
- # @return [Meter]
1546
- def meter(*args)
1547
- Meter.new(self, extract_selector(args).merge(tag_name: "meter"))
1548
- end
1549
- # @return [MeterCollection]
1550
- def meters(*args)
1551
- MeterCollection.new(self, extract_selector(args).merge(tag_name: "meter"))
1552
- end
1553
- Watir.tag_to_class[:meter] = Meter
1554
-
1555
- # @return [HTMLElement]
1556
- def nav(*args)
1557
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "nav"))
1558
- end
1559
- # @return [HTMLElementCollection]
1560
- def navs(*args)
1561
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "nav"))
1562
- end
1563
- Watir.tag_to_class[:nav] = HTMLElement
1564
-
1565
- # @return [HTMLElement]
1566
- def noscript(*args)
1567
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "noscript"))
1568
- end
1569
- # @return [HTMLElementCollection]
1570
- def noscripts(*args)
1571
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "noscript"))
1572
- end
1573
- Watir.tag_to_class[:noscript] = HTMLElement
1574
-
1575
- # @return [Object]
1576
- def object(*args)
1577
- Object.new(self, extract_selector(args).merge(tag_name: "object"))
1578
- end
1579
- # @return [ObjectCollection]
1580
- def objects(*args)
1581
- ObjectCollection.new(self, extract_selector(args).merge(tag_name: "object"))
1582
- end
1583
- Watir.tag_to_class[:object] = Object
1584
-
1585
- # @return [OList]
1586
- def ol(*args)
1587
- OList.new(self, extract_selector(args).merge(tag_name: "ol"))
1588
- end
1589
- # @return [OListCollection]
1590
- def ols(*args)
1591
- OListCollection.new(self, extract_selector(args).merge(tag_name: "ol"))
1592
- end
1593
- Watir.tag_to_class[:ol] = OList
1594
-
1595
- # @return [OptGroup]
1596
- def optgroup(*args)
1597
- OptGroup.new(self, extract_selector(args).merge(tag_name: "optgroup"))
1598
- end
1599
- # @return [OptGroupCollection]
1600
- def optgroups(*args)
1601
- OptGroupCollection.new(self, extract_selector(args).merge(tag_name: "optgroup"))
1602
- end
1603
- Watir.tag_to_class[:optgroup] = OptGroup
1604
-
1605
- # @return [Option]
1606
- def option(*args)
1607
- Option.new(self, extract_selector(args).merge(tag_name: "option"))
1608
- end
1609
- # @return [OptionCollection]
1610
- def options(*args)
1611
- OptionCollection.new(self, extract_selector(args).merge(tag_name: "option"))
1612
- end
1613
- Watir.tag_to_class[:option] = Option
1614
-
1615
- # @return [Output]
1616
- def output(*args)
1617
- Output.new(self, extract_selector(args).merge(tag_name: "output"))
1618
- end
1619
- # @return [OutputCollection]
1620
- def outputs(*args)
1621
- OutputCollection.new(self, extract_selector(args).merge(tag_name: "output"))
1622
- end
1623
- Watir.tag_to_class[:output] = Output
1624
-
1625
- # @return [Paragraph]
1626
- def p(*args)
1627
- Paragraph.new(self, extract_selector(args).merge(tag_name: "p"))
1628
- end
1629
- # @return [ParagraphCollection]
1630
- def ps(*args)
1631
- ParagraphCollection.new(self, extract_selector(args).merge(tag_name: "p"))
1632
- end
1633
- Watir.tag_to_class[:p] = Paragraph
1634
-
1635
- # @return [Param]
1636
- def param(*args)
1637
- Param.new(self, extract_selector(args).merge(tag_name: "param"))
1638
- end
1639
- # @return [ParamCollection]
1640
- def params(*args)
1641
- ParamCollection.new(self, extract_selector(args).merge(tag_name: "param"))
1642
- end
1643
- Watir.tag_to_class[:param] = Param
1644
-
1645
- # @return [Picture]
1646
- def picture(*args)
1647
- Picture.new(self, extract_selector(args).merge(tag_name: "picture"))
1648
- end
1649
- # @return [PictureCollection]
1650
- def pictures(*args)
1651
- PictureCollection.new(self, extract_selector(args).merge(tag_name: "picture"))
1652
- end
1653
- Watir.tag_to_class[:picture] = Picture
1654
-
1655
- # @return [Pre]
1656
- def pre(*args)
1657
- Pre.new(self, extract_selector(args).merge(tag_name: "pre"))
1658
- end
1659
- # @return [PreCollection]
1660
- def pres(*args)
1661
- PreCollection.new(self, extract_selector(args).merge(tag_name: "pre"))
1662
- end
1663
- Watir.tag_to_class[:pre] = Pre
1664
-
1665
- # @return [Progress]
1666
- def progress(*args)
1667
- Progress.new(self, extract_selector(args).merge(tag_name: "progress"))
1668
- end
1669
- # @return [ProgressCollection]
1670
- def progresses(*args)
1671
- ProgressCollection.new(self, extract_selector(args).merge(tag_name: "progress"))
1672
- end
1673
- Watir.tag_to_class[:progress] = Progress
1674
-
1675
- # @return [Quote]
1676
- def q(*args)
1677
- Quote.new(self, extract_selector(args).merge(tag_name: "q"))
1678
- end
1679
- # @return [QuoteCollection]
1680
- def qs(*args)
1681
- QuoteCollection.new(self, extract_selector(args).merge(tag_name: "q"))
1682
- end
1683
- Watir.tag_to_class[:q] = Quote
1684
-
1685
- # @return [HTMLElement]
1686
- def rb(*args)
1687
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "rb"))
1688
- end
1689
- # @return [HTMLElementCollection]
1690
- def rbs(*args)
1691
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rb"))
1692
- end
1693
- Watir.tag_to_class[:rb] = HTMLElement
1694
-
1695
- # @return [HTMLElement]
1696
- def rp(*args)
1697
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "rp"))
1698
- end
1699
- # @return [HTMLElementCollection]
1700
- def rps(*args)
1701
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rp"))
1702
- end
1703
- Watir.tag_to_class[:rp] = HTMLElement
1704
-
1705
- # @return [HTMLElement]
1706
- def rt(*args)
1707
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "rt"))
1708
- end
1709
- # @return [HTMLElementCollection]
1710
- def rts(*args)
1711
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rt"))
1712
- end
1713
- Watir.tag_to_class[:rt] = HTMLElement
1714
-
1715
- # @return [HTMLElement]
1716
- def rtc(*args)
1717
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "rtc"))
1718
- end
1719
- # @return [HTMLElementCollection]
1720
- def rtcs(*args)
1721
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rtc"))
1722
- end
1723
- Watir.tag_to_class[:rtc] = HTMLElement
1724
-
1725
- # @return [HTMLElement]
1726
- def ruby(*args)
1727
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "ruby"))
1728
- end
1729
- # @return [HTMLElementCollection]
1730
- def rubies(*args)
1731
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "ruby"))
1732
- end
1733
- Watir.tag_to_class[:ruby] = HTMLElement
1734
-
1735
- # @return [HTMLElement]
1736
- def s(*args)
1737
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "s"))
1738
- end
1739
- # @return [HTMLElementCollection]
1740
- def ss(*args)
1741
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "s"))
1742
- end
1743
- Watir.tag_to_class[:s] = HTMLElement
1744
-
1745
- # @return [HTMLElement]
1746
- def samp(*args)
1747
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "samp"))
1748
- end
1749
- # @return [HTMLElementCollection]
1750
- def samps(*args)
1751
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "samp"))
1752
- end
1753
- Watir.tag_to_class[:samp] = HTMLElement
1754
-
1755
- # @return [Script]
1756
- def script(*args)
1757
- Script.new(self, extract_selector(args).merge(tag_name: "script"))
1758
- end
1759
- # @return [ScriptCollection]
1760
- def scripts(*args)
1761
- ScriptCollection.new(self, extract_selector(args).merge(tag_name: "script"))
1762
- end
1763
- Watir.tag_to_class[:script] = Script
1764
-
1765
- # @return [HTMLElement]
1766
- def section(*args)
1767
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "section"))
1768
- end
1769
- # @return [HTMLElementCollection]
1770
- def sections(*args)
1771
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "section"))
1772
- end
1773
- Watir.tag_to_class[:section] = HTMLElement
1774
-
1775
- # @return [Select]
1776
- def select(*args)
1777
- Select.new(self, extract_selector(args).merge(tag_name: "select"))
1778
- end
1779
- # @return [SelectCollection]
1780
- def selects(*args)
1781
- SelectCollection.new(self, extract_selector(args).merge(tag_name: "select"))
1782
- end
1783
- Watir.tag_to_class[:select] = Select
1784
-
1785
- # @return [HTMLElement]
1786
- def small(*args)
1787
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "small"))
1788
- end
1789
- # @return [HTMLElementCollection]
1790
- def smalls(*args)
1791
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "small"))
1792
- end
1793
- Watir.tag_to_class[:small] = HTMLElement
1794
-
1795
- # @return [Source]
1796
- def source(*args)
1797
- Source.new(self, extract_selector(args).merge(tag_name: "source"))
1798
- end
1799
- # @return [SourceCollection]
1800
- def sources(*args)
1801
- SourceCollection.new(self, extract_selector(args).merge(tag_name: "source"))
1802
- end
1803
- Watir.tag_to_class[:source] = Source
1804
-
1805
- # @return [Span]
1806
- def span(*args)
1807
- Span.new(self, extract_selector(args).merge(tag_name: "span"))
1808
- end
1809
- # @return [SpanCollection]
1810
- def spans(*args)
1811
- SpanCollection.new(self, extract_selector(args).merge(tag_name: "span"))
1812
- end
1813
- Watir.tag_to_class[:span] = Span
1814
-
1815
- # @return [HTMLElement]
1816
- def strong(*args)
1817
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "strong"))
1818
- end
1819
- # @return [HTMLElementCollection]
1820
- def strongs(*args)
1821
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "strong"))
1822
- end
1823
- Watir.tag_to_class[:strong] = HTMLElement
1824
-
1825
- # @return [Style]
1826
- def style(*args)
1827
- Style.new(self, extract_selector(args).merge(tag_name: "style"))
1828
- end
1829
- # @return [StyleCollection]
1830
- def styles(*args)
1831
- StyleCollection.new(self, extract_selector(args).merge(tag_name: "style"))
1832
- end
1833
- Watir.tag_to_class[:style] = Style
1834
-
1835
- # @return [HTMLElement]
1836
- def sub(*args)
1837
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "sub"))
1838
- end
1839
- # @return [HTMLElementCollection]
1840
- def subs(*args)
1841
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "sub"))
1842
- end
1843
- Watir.tag_to_class[:sub] = HTMLElement
1844
-
1845
- # @return [HTMLElement]
1846
- def summary(*args)
1847
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "summary"))
1848
- end
1849
- # @return [HTMLElementCollection]
1850
- def summaries(*args)
1851
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "summary"))
1852
- end
1853
- Watir.tag_to_class[:summary] = HTMLElement
1854
-
1855
- # @return [HTMLElement]
1856
- def sup(*args)
1857
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "sup"))
1858
- end
1859
- # @return [HTMLElementCollection]
1860
- def sups(*args)
1861
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "sup"))
1862
- end
1863
- Watir.tag_to_class[:sup] = HTMLElement
1864
-
1865
- # @return [Table]
1866
- def table(*args)
1867
- Table.new(self, extract_selector(args).merge(tag_name: "table"))
1868
- end
1869
- # @return [TableCollection]
1870
- def tables(*args)
1871
- TableCollection.new(self, extract_selector(args).merge(tag_name: "table"))
1872
- end
1873
- Watir.tag_to_class[:table] = Table
1874
-
1875
- # @return [TableSection]
1876
- def tbody(*args)
1877
- TableSection.new(self, extract_selector(args).merge(tag_name: "tbody"))
1878
- end
1879
- # @return [TableSectionCollection]
1880
- def tbodys(*args)
1881
- TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "tbody"))
1882
- end
1883
- Watir.tag_to_class[:tbody] = TableSection
1884
-
1885
- # @return [TableDataCell]
1886
- def td(*args)
1887
- TableDataCell.new(self, extract_selector(args).merge(tag_name: "td"))
1888
- end
1889
- # @return [TableDataCellCollection]
1890
- def tds(*args)
1891
- TableDataCellCollection.new(self, extract_selector(args).merge(tag_name: "td"))
1892
- end
1893
- Watir.tag_to_class[:td] = TableDataCell
1894
-
1895
- # @return [Template]
1896
- def template(*args)
1897
- Template.new(self, extract_selector(args).merge(tag_name: "template"))
1898
- end
1899
- # @return [TemplateCollection]
1900
- def templates(*args)
1901
- TemplateCollection.new(self, extract_selector(args).merge(tag_name: "template"))
1902
- end
1903
- Watir.tag_to_class[:template] = Template
1904
-
1905
- # @return [TextArea]
1906
- def textarea(*args)
1907
- TextArea.new(self, extract_selector(args).merge(tag_name: "textarea"))
1908
- end
1909
- # @return [TextAreaCollection]
1910
- def textareas(*args)
1911
- TextAreaCollection.new(self, extract_selector(args).merge(tag_name: "textarea"))
1912
- end
1913
- Watir.tag_to_class[:textarea] = TextArea
1914
-
1915
- # @return [TableSection]
1916
- def tfoot(*args)
1917
- TableSection.new(self, extract_selector(args).merge(tag_name: "tfoot"))
1918
- end
1919
- # @return [TableSectionCollection]
1920
- def tfoots(*args)
1921
- TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "tfoot"))
1922
- end
1923
- Watir.tag_to_class[:tfoot] = TableSection
1924
-
1925
- # @return [TableHeaderCell]
1926
- def th(*args)
1927
- TableHeaderCell.new(self, extract_selector(args).merge(tag_name: "th"))
1928
- end
1929
- # @return [TableHeaderCellCollection]
1930
- def ths(*args)
1931
- TableHeaderCellCollection.new(self, extract_selector(args).merge(tag_name: "th"))
1932
- end
1933
- Watir.tag_to_class[:th] = TableHeaderCell
1934
-
1935
- # @return [TableSection]
1936
- def thead(*args)
1937
- TableSection.new(self, extract_selector(args).merge(tag_name: "thead"))
1938
- end
1939
- # @return [TableSectionCollection]
1940
- def theads(*args)
1941
- TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "thead"))
1942
- end
1943
- Watir.tag_to_class[:thead] = TableSection
1944
-
1945
- # @return [Time]
1946
- def time(*args)
1947
- Time.new(self, extract_selector(args).merge(tag_name: "time"))
1948
- end
1949
- # @return [TimeCollection]
1950
- def times(*args)
1951
- TimeCollection.new(self, extract_selector(args).merge(tag_name: "time"))
1952
- end
1953
- Watir.tag_to_class[:time] = Time
1954
-
1955
- # @return [Title]
1956
- def title(*args)
1957
- Title.new(self, extract_selector(args).merge(tag_name: "title"))
1958
- end
1959
- # @return [TitleCollection]
1960
- def titles(*args)
1961
- TitleCollection.new(self, extract_selector(args).merge(tag_name: "title"))
1962
- end
1963
- Watir.tag_to_class[:title] = Title
1964
-
1965
- # @return [TableRow]
1966
- def tr(*args)
1967
- TableRow.new(self, extract_selector(args).merge(tag_name: "tr"))
1968
- end
1969
- # @return [TableRowCollection]
1970
- def trs(*args)
1971
- TableRowCollection.new(self, extract_selector(args).merge(tag_name: "tr"))
1972
- end
1973
- Watir.tag_to_class[:tr] = TableRow
1974
-
1975
- # @return [Track]
1976
- def track(*args)
1977
- Track.new(self, extract_selector(args).merge(tag_name: "track"))
1978
- end
1979
- # @return [TrackCollection]
1980
- def tracks(*args)
1981
- TrackCollection.new(self, extract_selector(args).merge(tag_name: "track"))
1982
- end
1983
- Watir.tag_to_class[:track] = Track
1984
-
1985
- # @return [HTMLElement]
1986
- def u(*args)
1987
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "u"))
1988
- end
1989
- # @return [HTMLElementCollection]
1990
- def us(*args)
1991
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "u"))
1992
- end
1993
- Watir.tag_to_class[:u] = HTMLElement
1994
-
1995
- # @return [UList]
1996
- def ul(*args)
1997
- UList.new(self, extract_selector(args).merge(tag_name: "ul"))
1998
- end
1999
- # @return [UListCollection]
2000
- def uls(*args)
2001
- UListCollection.new(self, extract_selector(args).merge(tag_name: "ul"))
2002
- end
2003
- Watir.tag_to_class[:ul] = UList
2004
-
2005
- # @return [HTMLElement]
2006
- def var(*args)
2007
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "var"))
2008
- end
2009
- # @return [HTMLElementCollection]
2010
- def vars(*args)
2011
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "var"))
2012
- end
2013
- Watir.tag_to_class[:var] = HTMLElement
2014
-
2015
- # @return [Video]
2016
- def video(*args)
2017
- Video.new(self, extract_selector(args).merge(tag_name: "video"))
2018
- end
2019
- # @return [VideoCollection]
2020
- def videos(*args)
2021
- VideoCollection.new(self, extract_selector(args).merge(tag_name: "video"))
2022
- end
2023
- Watir.tag_to_class[:video] = Video
2024
-
2025
- # @return [HTMLElement]
2026
- def wbr(*args)
2027
- HTMLElement.new(self, extract_selector(args).merge(tag_name: "wbr"))
2028
- end
2029
- # @return [HTMLElementCollection]
2030
- def wbrs(*args)
2031
- HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "wbr"))
2032
- end
2033
- Watir.tag_to_class[:wbr] = HTMLElement
2034
- end # Container
2035
- end # Watir
1
+ # Autogenerated from HTML specification. Edits may be lost.
2
+ module Watir
3
+ class HTMLElement < Element
4
+ attribute(String, :title, :title)
5
+ attribute(String, :lang, :lang)
6
+ attribute("Boolean", :translate?, :translate)
7
+ attribute(String, :dir, :dir)
8
+ attribute(String, :dataset, :dataset)
9
+ attribute("Boolean", :hidden?, :hidden)
10
+ attribute(Integer, :tabindex, :tabIndex)
11
+ attribute(String, :accesskey, :accessKey)
12
+ attribute("Boolean", :draggable?, :draggable)
13
+ attribute(String, :dropzone, :dropzone)
14
+ attribute(String, :contextmenu, :contextMenu)
15
+ attribute("Boolean", :spellcheck?, :spellcheck)
16
+ attribute(String, :onabort, :onabort)
17
+ attribute(String, :onblur, :onblur)
18
+ attribute(String, :oncancel, :oncancel)
19
+ attribute(String, :oncanplay, :oncanplay)
20
+ attribute(String, :oncanplaythrough, :oncanplaythrough)
21
+ attribute(String, :onchange, :onchange)
22
+ attribute(String, :onclick, :onclick)
23
+ attribute(String, :onclose, :onclose)
24
+ attribute(String, :oncontextmenu, :oncontextmenu)
25
+ attribute(String, :oncuechange, :oncuechange)
26
+ attribute(String, :ondblclick, :ondblclick)
27
+ attribute(String, :ondrag, :ondrag)
28
+ attribute(String, :ondragend, :ondragend)
29
+ attribute(String, :ondragenter, :ondragenter)
30
+ attribute(String, :ondragexit, :ondragexit)
31
+ attribute(String, :ondragleave, :ondragleave)
32
+ attribute(String, :ondragover, :ondragover)
33
+ attribute(String, :ondragstart, :ondragstart)
34
+ attribute(String, :ondrop, :ondrop)
35
+ attribute(String, :ondurationchange, :ondurationchange)
36
+ attribute(String, :onemptied, :onemptied)
37
+ attribute(String, :onended, :onended)
38
+ attribute(String, :onerror, :onerror)
39
+ attribute(String, :onfocus, :onfocus)
40
+ attribute(String, :oninput, :oninput)
41
+ attribute(String, :oninvalid, :oninvalid)
42
+ attribute(String, :onkeydown, :onkeydown)
43
+ attribute(String, :onkeypress, :onkeypress)
44
+ attribute(String, :onkeyup, :onkeyup)
45
+ attribute(String, :onload, :onload)
46
+ attribute(String, :onloadeddata, :onloadeddata)
47
+ attribute(String, :onloadedmetadata, :onloadedmetadata)
48
+ attribute(String, :onloadstart, :onloadstart)
49
+ attribute(String, :onmousedown, :onmousedown)
50
+ attribute(String, :onmouseenter, :onmouseenter)
51
+ attribute(String, :onmouseleave, :onmouseleave)
52
+ attribute(String, :onmousemove, :onmousemove)
53
+ attribute(String, :onmouseout, :onmouseout)
54
+ attribute(String, :onmouseover, :onmouseover)
55
+ attribute(String, :onmouseup, :onmouseup)
56
+ attribute(String, :onwheel, :onwheel)
57
+ attribute(String, :onpause, :onpause)
58
+ attribute(String, :onplay, :onplay)
59
+ attribute(String, :onplaying, :onplaying)
60
+ attribute(String, :onprogress, :onprogress)
61
+ attribute(String, :onratechange, :onratechange)
62
+ attribute(String, :onreset, :onreset)
63
+ attribute(String, :onresize, :onresize)
64
+ attribute(String, :onscroll, :onscroll)
65
+ attribute(String, :onseeked, :onseeked)
66
+ attribute(String, :onseeking, :onseeking)
67
+ attribute(String, :onselect, :onselect)
68
+ attribute(String, :onshow, :onshow)
69
+ attribute(String, :onstalled, :onstalled)
70
+ attribute(String, :onsubmit, :onsubmit)
71
+ attribute(String, :onsuspend, :onsuspend)
72
+ attribute(String, :ontimeupdate, :ontimeupdate)
73
+ attribute(String, :ontoggle, :ontoggle)
74
+ attribute(String, :onvolumechange, :onvolumechange)
75
+ attribute(String, :onwaiting, :onwaiting)
76
+ attribute(String, :oncopy, :oncopy)
77
+ attribute(String, :oncut, :oncut)
78
+ attribute(String, :onpaste, :onpaste)
79
+ attribute(String, :content_editable, :contentEditable)
80
+ attribute("Boolean", :content_editable?, :isContentEditable)
81
+ end
82
+ class HTMLElementCollection < ElementCollection
83
+ end
84
+
85
+ class Font < HTMLElement
86
+ attribute(String, :color, :color)
87
+ attribute(String, :face, :face)
88
+ end
89
+ class FontCollection < ElementCollection
90
+ end
91
+
92
+ class Directory < HTMLElement
93
+ attribute("Boolean", :compact?, :compact)
94
+ end
95
+ class DirectoryCollection < ElementCollection
96
+ end
97
+
98
+ class FrameSet < HTMLElement
99
+ attribute(String, :cols, :cols)
100
+ attribute(String, :onafterprint, :onafterprint)
101
+ attribute(String, :onbeforeprint, :onbeforeprint)
102
+ attribute(String, :onbeforeunload, :onbeforeunload)
103
+ attribute(String, :onhashchange, :onhashchange)
104
+ attribute(String, :onlanguagechange, :onlanguagechange)
105
+ attribute(String, :onmessage, :onmessage)
106
+ attribute(String, :onoffline, :onoffline)
107
+ attribute(String, :ononline, :ononline)
108
+ attribute(String, :onpagehide, :onpagehide)
109
+ attribute(String, :onpageshow, :onpageshow)
110
+ attribute(String, :onrejectionhandled, :onrejectionhandled)
111
+ attribute(String, :onpopstate, :onpopstate)
112
+ attribute(String, :onstorage, :onstorage)
113
+ attribute(String, :onunhandledrejection, :onunhandledrejection)
114
+ attribute(String, :onunload, :onunload)
115
+ end
116
+ class FrameSetCollection < ElementCollection
117
+ end
118
+
119
+ class Marquee < HTMLElement
120
+ attribute(String, :behavior, :behavior)
121
+ attribute(String, :bgcolor, :bgColor)
122
+ attribute(String, :direction, :direction)
123
+ attribute(Integer, :hspace, :hspace)
124
+ attribute(Integer, :loop, :loop)
125
+ attribute(Integer, :scrollamount, :scrollAmount)
126
+ attribute(Integer, :scrolldelay, :scrollDelay)
127
+ attribute("Boolean", :truespeed?, :trueSpeed)
128
+ attribute(Integer, :vspace, :vspace)
129
+ attribute(String, :onbounce, :onbounce)
130
+ attribute(String, :onfinish, :onfinish)
131
+ attribute(String, :onstart, :onstart)
132
+ end
133
+ class MarqueeCollection < ElementCollection
134
+ end
135
+
136
+ class Applet < HTMLElement
137
+ attribute(String, :align, :align)
138
+ attribute(String, :alt, :alt)
139
+ attribute(String, :archive, :archive)
140
+ attribute(String, :code, :code)
141
+ attribute(String, :codebase, :codeBase)
142
+ attribute(Integer, :hspace, :hspace)
143
+ attribute(String, :name, :name)
144
+ attribute(String, :object, :object)
145
+ attribute(Integer, :vspace, :vspace)
146
+ end
147
+ class AppletCollection < ElementCollection
148
+ end
149
+
150
+ class Canvas < HTMLElement
151
+ end
152
+ class CanvasCollection < ElementCollection
153
+ end
154
+
155
+ class Template < HTMLElement
156
+ attribute(String, :content, :content)
157
+ end
158
+ class TemplateCollection < ElementCollection
159
+ end
160
+
161
+ class Script < HTMLElement
162
+ attribute(String, :src, :src)
163
+ attribute(String, :type, :type)
164
+ attribute(String, :charset, :charset)
165
+ attribute("Boolean", :async?, :async)
166
+ attribute("Boolean", :defer?, :defer)
167
+ attribute(String, :crossorigin, :crossOrigin)
168
+ attribute(String, :nonce, :nonce)
169
+ attribute(String, :event, :event)
170
+ attribute(String, :for, :htmlFor)
171
+ end
172
+ class ScriptCollection < ElementCollection
173
+ end
174
+
175
+ class MenuItem < HTMLElement
176
+ attribute(String, :type, :type)
177
+ attribute(String, :label, :label)
178
+ attribute(String, :icon, :icon)
179
+ attribute("Boolean", :disabled?, :disabled)
180
+ attribute("Boolean", :checked?, :checked)
181
+ attribute(String, :radiogroup, :radiogroup)
182
+ attribute("Boolean", :default?, :default)
183
+ end
184
+ class MenuItemCollection < ElementCollection
185
+ end
186
+
187
+ class Menu < HTMLElement
188
+ attribute(String, :type, :type)
189
+ attribute(String, :label, :label)
190
+ attribute("Boolean", :compact?, :compact)
191
+ end
192
+ class MenuCollection < ElementCollection
193
+ end
194
+
195
+ class Details < HTMLElement
196
+ attribute("Boolean", :open?, :open)
197
+ end
198
+ class DetailsCollection < ElementCollection
199
+ end
200
+
201
+ class Legend < HTMLElement
202
+ attribute(String, :form, :form)
203
+ attribute(String, :align, :align)
204
+ end
205
+ class LegendCollection < ElementCollection
206
+ end
207
+
208
+ class FieldSet < HTMLElement
209
+ attribute("Boolean", :disabled?, :disabled)
210
+ attribute(String, :form, :form)
211
+ attribute(String, :name, :name)
212
+ attribute(String, :type, :type)
213
+ attribute("Boolean", :willvalidate?, :willValidate)
214
+ attribute(String, :validity, :validity)
215
+ attribute(String, :validationmessage, :validationMessage)
216
+ end
217
+ class FieldSetCollection < ElementCollection
218
+ end
219
+
220
+ class Meter < HTMLElement
221
+ attribute(Float, :value, :value)
222
+ attribute(Float, :min, :min)
223
+ attribute(Float, :max, :max)
224
+ attribute(Float, :low, :low)
225
+ attribute(Float, :high, :high)
226
+ attribute(Float, :optimum, :optimum)
227
+ attribute(String, :labels, :labels)
228
+ end
229
+ class MeterCollection < ElementCollection
230
+ end
231
+
232
+ class Progress < HTMLElement
233
+ attribute(Float, :value, :value)
234
+ attribute(Float, :max, :max)
235
+ attribute(Float, :position, :position)
236
+ attribute(String, :labels, :labels)
237
+ end
238
+ class ProgressCollection < ElementCollection
239
+ end
240
+
241
+ class Output < HTMLElement
242
+ attribute(String, :for, :htmlFor)
243
+ attribute(String, :form, :form)
244
+ attribute(String, :name, :name)
245
+ attribute(String, :type, :type)
246
+ attribute(String, :defaultvalue, :defaultValue)
247
+ attribute(String, :value, :value)
248
+ attribute("Boolean", :willvalidate?, :willValidate)
249
+ attribute(String, :validity, :validity)
250
+ attribute(String, :validationmessage, :validationMessage)
251
+ attribute(String, :labels, :labels)
252
+ end
253
+ class OutputCollection < ElementCollection
254
+ end
255
+
256
+ class Keygen < HTMLElement
257
+ attribute("Boolean", :autofocus?, :autofocus)
258
+ attribute(String, :challenge, :challenge)
259
+ attribute("Boolean", :disabled?, :disabled)
260
+ attribute(String, :form, :form)
261
+ attribute(String, :keytype, :keytype)
262
+ attribute(String, :name, :name)
263
+ attribute(String, :type, :type)
264
+ attribute("Boolean", :willvalidate?, :willValidate)
265
+ attribute(String, :validity, :validity)
266
+ attribute(String, :validationmessage, :validationMessage)
267
+ attribute(String, :labels, :labels)
268
+ end
269
+ class KeygenCollection < ElementCollection
270
+ end
271
+
272
+ class TextArea < HTMLElement
273
+ attribute(String, :autocomplete, :autocomplete)
274
+ attribute("Boolean", :autofocus?, :autofocus)
275
+ attribute(Integer, :cols, :cols)
276
+ attribute(String, :dirname, :dirName)
277
+ attribute("Boolean", :disabled?, :disabled)
278
+ attribute(String, :form, :form)
279
+ attribute(String, :inputmode, :inputMode)
280
+ attribute(Integer, :maxlength, :maxLength)
281
+ attribute(Integer, :minlength, :minLength)
282
+ attribute(String, :name, :name)
283
+ attribute(String, :placeholder, :placeholder)
284
+ attribute("Boolean", :readonly?, :readOnly)
285
+ attribute("Boolean", :required?, :required)
286
+ attribute(String, :wrap, :wrap)
287
+ attribute(String, :type, :type)
288
+ attribute(String, :defaultvalue, :defaultValue)
289
+ attribute(String, :value, :value)
290
+ attribute(Integer, :textlength, :textLength)
291
+ attribute("Boolean", :willvalidate?, :willValidate)
292
+ attribute(String, :validity, :validity)
293
+ attribute(String, :validationmessage, :validationMessage)
294
+ attribute(String, :labels, :labels)
295
+ attribute(Integer, :selectionstart, :selectionStart)
296
+ attribute(Integer, :selectionend, :selectionEnd)
297
+ attribute(String, :selectiondirection, :selectionDirection)
298
+ end
299
+ class TextAreaCollection < ElementCollection
300
+ end
301
+
302
+ class Option < HTMLElement
303
+ attribute("Boolean", :disabled?, :disabled)
304
+ attribute(String, :form, :form)
305
+ attribute(String, :label, :label)
306
+ attribute("Boolean", :defaultselected?, :defaultSelected)
307
+ attribute("Boolean", :selected?, :selected)
308
+ attribute(String, :value, :value)
309
+ attribute(Integer, :index, :index)
310
+ end
311
+ class OptionCollection < ElementCollection
312
+ end
313
+
314
+ class OptGroup < HTMLElement
315
+ attribute("Boolean", :disabled?, :disabled)
316
+ attribute(String, :label, :label)
317
+ end
318
+ class OptGroupCollection < ElementCollection
319
+ end
320
+
321
+ class DataList < HTMLElement
322
+ attribute(String, :options, :options)
323
+ end
324
+ class DataListCollection < ElementCollection
325
+ end
326
+
327
+ class Select < HTMLElement
328
+ attribute(String, :autocomplete, :autocomplete)
329
+ attribute("Boolean", :autofocus?, :autofocus)
330
+ attribute("Boolean", :disabled?, :disabled)
331
+ attribute(String, :form, :form)
332
+ attribute("Boolean", :multiple?, :multiple)
333
+ attribute(String, :name, :name)
334
+ attribute("Boolean", :required?, :required)
335
+ attribute(String, :type, :type)
336
+ attribute(String, :options, :options)
337
+ attribute(Integer, :length, :length)
338
+ attribute(String, :selectedoptions, :selectedOptions)
339
+ attribute(Integer, :selectedindex, :selectedIndex)
340
+ attribute(String, :value, :value)
341
+ attribute("Boolean", :willvalidate?, :willValidate)
342
+ attribute(String, :validity, :validity)
343
+ attribute(String, :validationmessage, :validationMessage)
344
+ attribute(String, :labels, :labels)
345
+ end
346
+ class SelectCollection < ElementCollection
347
+ end
348
+
349
+ class Button < HTMLElement
350
+ attribute("Boolean", :autofocus?, :autofocus)
351
+ attribute("Boolean", :disabled?, :disabled)
352
+ attribute(String, :form, :form)
353
+ attribute(String, :formaction, :formAction)
354
+ attribute(String, :formenctype, :formEnctype)
355
+ attribute(String, :formmethod, :formMethod)
356
+ attribute("Boolean", :formnovalidate?, :formNoValidate)
357
+ attribute(String, :formtarget, :formTarget)
358
+ attribute(String, :name, :name)
359
+ attribute(String, :type, :type)
360
+ attribute(String, :value, :value)
361
+ attribute(String, :menu, :menu)
362
+ attribute("Boolean", :willvalidate?, :willValidate)
363
+ attribute(String, :validity, :validity)
364
+ attribute(String, :validationmessage, :validationMessage)
365
+ attribute(String, :labels, :labels)
366
+ end
367
+ class ButtonCollection < ElementCollection
368
+ end
369
+
370
+ class Input < HTMLElement
371
+ attribute(String, :accept, :accept)
372
+ attribute(String, :alt, :alt)
373
+ attribute(String, :autocomplete, :autocomplete)
374
+ attribute("Boolean", :autofocus?, :autofocus)
375
+ attribute("Boolean", :defaultchecked?, :defaultChecked)
376
+ attribute("Boolean", :checked?, :checked)
377
+ attribute(String, :dirname, :dirName)
378
+ attribute("Boolean", :disabled?, :disabled)
379
+ attribute(String, :form, :form)
380
+ attribute(String, :files, :files)
381
+ attribute(String, :formaction, :formAction)
382
+ attribute(String, :formenctype, :formEnctype)
383
+ attribute(String, :formmethod, :formMethod)
384
+ attribute("Boolean", :formnovalidate?, :formNoValidate)
385
+ attribute(String, :formtarget, :formTarget)
386
+ attribute("Boolean", :indeterminate?, :indeterminate)
387
+ attribute(String, :inputmode, :inputMode)
388
+ attribute(String, :list, :list)
389
+ attribute(String, :max, :max)
390
+ attribute(Integer, :maxlength, :maxLength)
391
+ attribute(String, :min, :min)
392
+ attribute(Integer, :minlength, :minLength)
393
+ attribute("Boolean", :multiple?, :multiple)
394
+ attribute(String, :name, :name)
395
+ attribute(String, :pattern, :pattern)
396
+ attribute(String, :placeholder, :placeholder)
397
+ attribute("Boolean", :readonly?, :readOnly)
398
+ attribute("Boolean", :required?, :required)
399
+ attribute(String, :src, :src)
400
+ attribute(String, :step, :step)
401
+ attribute(String, :type, :type)
402
+ attribute(String, :defaultvalue, :defaultValue)
403
+ attribute(String, :value, :value)
404
+ attribute(String, :valueasdate, :valueAsDate)
405
+ attribute(Float, :valueasnumber, :valueAsNumber)
406
+ attribute("Boolean", :willvalidate?, :willValidate)
407
+ attribute(String, :validity, :validity)
408
+ attribute(String, :validationmessage, :validationMessage)
409
+ attribute(String, :labels, :labels)
410
+ attribute(Integer, :selectionstart, :selectionStart)
411
+ attribute(Integer, :selectionend, :selectionEnd)
412
+ attribute(String, :selectiondirection, :selectionDirection)
413
+ attribute(String, :align, :align)
414
+ attribute(String, :usemap, :useMap)
415
+ end
416
+ class InputCollection < ElementCollection
417
+ end
418
+
419
+ class Label < HTMLElement
420
+ attribute(String, :form, :form)
421
+ attribute(String, :for, :htmlFor)
422
+ attribute(String, :control, :control)
423
+ end
424
+ class LabelCollection < ElementCollection
425
+ end
426
+
427
+ class Form < HTMLElement
428
+ attribute(String, :accept_charset, :acceptCharset)
429
+ attribute(String, :action, :action)
430
+ attribute(String, :autocomplete, :autocomplete)
431
+ attribute(String, :enctype, :enctype)
432
+ attribute(String, :encoding, :encoding)
433
+ attribute(String, :method, :method)
434
+ attribute(String, :name, :name)
435
+ attribute("Boolean", :novalidate?, :noValidate)
436
+ attribute(String, :target, :target)
437
+ attribute(Integer, :length, :length)
438
+ end
439
+ class FormCollection < ElementCollection
440
+ end
441
+
442
+ class TableCell < HTMLElement
443
+ attribute(Integer, :colspan, :colSpan)
444
+ attribute(Integer, :rowspan, :rowSpan)
445
+ attribute(String, :headers, :headers)
446
+ attribute(Integer, :cellindex, :cellIndex)
447
+ attribute(String, :align, :align)
448
+ attribute(String, :axis, :axis)
449
+ attribute(String, :ch, :ch)
450
+ attribute(String, :choff, :chOff)
451
+ attribute("Boolean", :nowrap?, :noWrap)
452
+ attribute(String, :valign, :vAlign)
453
+ attribute(String, :bgcolor, :bgColor)
454
+ end
455
+ class TableCellCollection < ElementCollection
456
+ end
457
+
458
+ class TableHeaderCell < TableCell
459
+ attribute(String, :scope, :scope)
460
+ attribute(String, :abbr, :abbr)
461
+ end
462
+ class TableHeaderCellCollection < ElementCollection
463
+ end
464
+
465
+ class TableDataCell < TableCell
466
+ attribute(String, :abbr, :abbr)
467
+ end
468
+ class TableDataCellCollection < ElementCollection
469
+ end
470
+
471
+ class TableRow < HTMLElement
472
+ attribute(Integer, :rowindex, :rowIndex)
473
+ attribute(Integer, :sectionrowindex, :sectionRowIndex)
474
+ attribute(String, :align, :align)
475
+ attribute(String, :ch, :ch)
476
+ attribute(String, :choff, :chOff)
477
+ attribute(String, :valign, :vAlign)
478
+ attribute(String, :bgcolor, :bgColor)
479
+ end
480
+ class TableRowCollection < ElementCollection
481
+ end
482
+
483
+ class TableSection < HTMLElement
484
+ attribute(String, :align, :align)
485
+ attribute(String, :ch, :ch)
486
+ attribute(String, :choff, :chOff)
487
+ attribute(String, :valign, :vAlign)
488
+ end
489
+ class TableSectionCollection < ElementCollection
490
+ end
491
+
492
+ class TableCol < HTMLElement
493
+ attribute(String, :align, :align)
494
+ attribute(String, :ch, :ch)
495
+ attribute(String, :choff, :chOff)
496
+ attribute(String, :valign, :vAlign)
497
+ end
498
+ class TableColCollection < ElementCollection
499
+ end
500
+
501
+ class TableCaption < HTMLElement
502
+ attribute(String, :align, :align)
503
+ end
504
+ class TableCaptionCollection < ElementCollection
505
+ end
506
+
507
+ class Table < HTMLElement
508
+ attribute(String, :caption, :caption)
509
+ attribute(String, :tbodies, :tBodies)
510
+ attribute(String, :align, :align)
511
+ attribute(String, :border, :border)
512
+ attribute(String, :frame, :frame)
513
+ attribute(String, :rules, :rules)
514
+ attribute(String, :summary, :summary)
515
+ attribute(String, :bgcolor, :bgColor)
516
+ attribute(String, :cellpadding, :cellPadding)
517
+ attribute(String, :cellspacing, :cellSpacing)
518
+ end
519
+ class TableCollection < ElementCollection
520
+ end
521
+
522
+ class Area < HTMLElement
523
+ attribute(String, :alt, :alt)
524
+ attribute(String, :coords, :coords)
525
+ attribute(String, :shape, :shape)
526
+ attribute(String, :target, :target)
527
+ attribute(String, :download, :download)
528
+ attribute(String, :rel, :rel)
529
+ attribute(String, :rellist, :relList)
530
+ attribute(String, :hreflang, :hreflang)
531
+ attribute(String, :type, :type)
532
+ attribute("Boolean", :nohref?, :noHref)
533
+ attribute(String, :href, :href)
534
+ attribute(String, :origin, :origin)
535
+ attribute(String, :protocol, :protocol)
536
+ attribute(String, :username, :username)
537
+ attribute(String, :password, :password)
538
+ attribute(String, :host, :host)
539
+ attribute(String, :hostname, :hostname)
540
+ attribute(String, :port, :port)
541
+ attribute(String, :pathname, :pathname)
542
+ attribute(String, :search, :search)
543
+ end
544
+ class AreaCollection < ElementCollection
545
+ end
546
+
547
+ class Map < HTMLElement
548
+ attribute(String, :name, :name)
549
+ attribute(String, :areas, :areas)
550
+ attribute(String, :images, :images)
551
+ end
552
+ class MapCollection < ElementCollection
553
+ end
554
+
555
+ class Media < HTMLElement
556
+ attribute(String, :error, :error)
557
+ attribute(String, :src, :src)
558
+ attribute(String, :srcobject, :srcObject)
559
+ attribute(String, :currentsrc, :currentSrc)
560
+ attribute(String, :crossorigin, :crossOrigin)
561
+ attribute(Integer, :networkstate, :networkState)
562
+ attribute(String, :preload, :preload)
563
+ attribute(String, :buffered, :buffered)
564
+ attribute(Integer, :readystate, :readyState)
565
+ attribute("Boolean", :seeking?, :seeking)
566
+ attribute(Float, :currenttime, :currentTime)
567
+ attribute(Float, :duration, :duration)
568
+ attribute("Boolean", :paused?, :paused)
569
+ attribute(Float, :defaultplaybackrate, :defaultPlaybackRate)
570
+ attribute(Float, :playbackrate, :playbackRate)
571
+ attribute(String, :played, :played)
572
+ attribute(String, :seekable, :seekable)
573
+ attribute("Boolean", :ended?, :ended)
574
+ attribute("Boolean", :autoplay?, :autoplay)
575
+ attribute("Boolean", :loop?, :loop)
576
+ attribute("Boolean", :controls?, :controls)
577
+ attribute(Float, :volume, :volume)
578
+ attribute("Boolean", :muted?, :muted)
579
+ attribute("Boolean", :defaultmuted?, :defaultMuted)
580
+ attribute(String, :audiotracks, :audioTracks)
581
+ attribute(String, :videotracks, :videoTracks)
582
+ attribute(String, :texttracks, :textTracks)
583
+ end
584
+ class MediaCollection < ElementCollection
585
+ end
586
+
587
+ class Audio < Media
588
+ end
589
+ class AudioCollection < ElementCollection
590
+ end
591
+
592
+ class Video < Media
593
+ attribute(Integer, :videowidth, :videoWidth)
594
+ attribute(Integer, :videoheight, :videoHeight)
595
+ attribute(String, :poster, :poster)
596
+ end
597
+ class VideoCollection < ElementCollection
598
+ end
599
+
600
+ class Track < HTMLElement
601
+ attribute(String, :kind, :kind)
602
+ attribute(String, :src, :src)
603
+ attribute(String, :srclang, :srclang)
604
+ attribute(String, :label, :label)
605
+ attribute("Boolean", :default?, :default)
606
+ attribute(Integer, :readystate, :readyState)
607
+ attribute(String, :track, :track)
608
+ end
609
+ class TrackCollection < ElementCollection
610
+ end
611
+
612
+ class Param < HTMLElement
613
+ attribute(String, :name, :name)
614
+ attribute(String, :value, :value)
615
+ attribute(String, :type, :type)
616
+ attribute(String, :valuetype, :valueType)
617
+ end
618
+ class ParamCollection < ElementCollection
619
+ end
620
+
621
+ class Object < HTMLElement
622
+ attribute(String, :data, :data)
623
+ attribute(String, :type, :type)
624
+ attribute("Boolean", :typemustmatch?, :typeMustMatch)
625
+ attribute(String, :name, :name)
626
+ attribute(String, :form, :form)
627
+ attribute(String, :contentdocument, :contentDocument)
628
+ attribute(String, :contentwindow, :contentWindow)
629
+ attribute("Boolean", :willvalidate?, :willValidate)
630
+ attribute(String, :validity, :validity)
631
+ attribute(String, :validationmessage, :validationMessage)
632
+ attribute(String, :align, :align)
633
+ attribute(String, :archive, :archive)
634
+ attribute(String, :code, :code)
635
+ attribute("Boolean", :declare?, :declare)
636
+ attribute(Integer, :hspace, :hspace)
637
+ attribute(String, :standby, :standby)
638
+ attribute(Integer, :vspace, :vspace)
639
+ attribute(String, :codebase, :codeBase)
640
+ attribute(String, :codetype, :codeType)
641
+ attribute(String, :usemap, :useMap)
642
+ attribute(String, :border, :border)
643
+ end
644
+ class ObjectCollection < ElementCollection
645
+ end
646
+
647
+ class Embed < HTMLElement
648
+ attribute(String, :src, :src)
649
+ attribute(String, :type, :type)
650
+ attribute(String, :align, :align)
651
+ attribute(String, :name, :name)
652
+ end
653
+ class EmbedCollection < ElementCollection
654
+ end
655
+
656
+ class IFrame < HTMLElement
657
+ attribute(String, :src, :src)
658
+ attribute(String, :srcdoc, :srcdoc)
659
+ attribute(String, :name, :name)
660
+ attribute(String, :sandbox, :sandbox)
661
+ attribute("Boolean", :allowfullscreen?, :allowFullscreen)
662
+ attribute(String, :contentdocument, :contentDocument)
663
+ attribute(String, :contentwindow, :contentWindow)
664
+ attribute(String, :align, :align)
665
+ attribute(String, :scrolling, :scrolling)
666
+ attribute(String, :frameborder, :frameBorder)
667
+ attribute(String, :marginheight, :marginHeight)
668
+ attribute(String, :marginwidth, :marginWidth)
669
+ end
670
+ class IFrameCollection < ElementCollection
671
+ end
672
+
673
+ class Image < HTMLElement
674
+ attribute(String, :alt, :alt)
675
+ attribute(String, :src, :src)
676
+ attribute(String, :srcset, :srcset)
677
+ attribute(String, :sizes, :sizes)
678
+ attribute(String, :crossorigin, :crossOrigin)
679
+ attribute(String, :usemap, :useMap)
680
+ attribute("Boolean", :ismap?, :isMap)
681
+ attribute(Integer, :naturalwidth, :naturalWidth)
682
+ attribute(Integer, :naturalheight, :naturalHeight)
683
+ attribute("Boolean", :complete?, :complete)
684
+ attribute(String, :currentsrc, :currentSrc)
685
+ attribute(String, :name, :name)
686
+ attribute(String, :lowsrc, :lowsrc)
687
+ attribute(String, :align, :align)
688
+ attribute(Integer, :hspace, :hspace)
689
+ attribute(Integer, :vspace, :vspace)
690
+ attribute(String, :border, :border)
691
+ end
692
+ class ImageCollection < ElementCollection
693
+ end
694
+
695
+ class Source < HTMLElement
696
+ attribute(String, :srcset, :srcset)
697
+ attribute(String, :sizes, :sizes)
698
+ attribute(String, :media, :media)
699
+ attribute(String, :src, :src)
700
+ attribute(String, :type, :type)
701
+ end
702
+ class SourceCollection < ElementCollection
703
+ end
704
+
705
+ class Picture < HTMLElement
706
+ end
707
+ class PictureCollection < ElementCollection
708
+ end
709
+
710
+ class Mod < HTMLElement
711
+ attribute(String, :cite, :cite)
712
+ attribute(String, :datetime, :dateTime)
713
+ end
714
+ class ModCollection < ElementCollection
715
+ end
716
+
717
+ class BR < HTMLElement
718
+ attribute(String, :clear, :clear)
719
+ end
720
+ class BRCollection < ElementCollection
721
+ end
722
+
723
+ class Span < HTMLElement
724
+ end
725
+ class SpanCollection < ElementCollection
726
+ end
727
+
728
+ class Time < HTMLElement
729
+ attribute(String, :datetime, :dateTime)
730
+ end
731
+ class TimeCollection < ElementCollection
732
+ end
733
+
734
+ class Data < HTMLElement
735
+ attribute(String, :value, :value)
736
+ end
737
+ class DataCollection < ElementCollection
738
+ end
739
+
740
+ class Anchor < HTMLElement
741
+ attribute(String, :target, :target)
742
+ attribute(String, :download, :download)
743
+ attribute(String, :rel, :rel)
744
+ attribute(String, :rev, :rev)
745
+ attribute(String, :rellist, :relList)
746
+ attribute(String, :hreflang, :hreflang)
747
+ attribute(String, :type, :type)
748
+ attribute(String, :coords, :coords)
749
+ attribute(String, :charset, :charset)
750
+ attribute(String, :name, :name)
751
+ attribute(String, :shape, :shape)
752
+ attribute(String, :href, :href)
753
+ attribute(String, :origin, :origin)
754
+ attribute(String, :protocol, :protocol)
755
+ attribute(String, :username, :username)
756
+ attribute(String, :password, :password)
757
+ attribute(String, :host, :host)
758
+ attribute(String, :hostname, :hostname)
759
+ attribute(String, :port, :port)
760
+ attribute(String, :pathname, :pathname)
761
+ attribute(String, :search, :search)
762
+ end
763
+ class AnchorCollection < ElementCollection
764
+ end
765
+
766
+ class Div < HTMLElement
767
+ attribute(String, :align, :align)
768
+ end
769
+ class DivCollection < ElementCollection
770
+ end
771
+
772
+ class DList < HTMLElement
773
+ attribute("Boolean", :compact?, :compact)
774
+ end
775
+ class DListCollection < ElementCollection
776
+ end
777
+
778
+ class LI < HTMLElement
779
+ attribute(Integer, :value, :value)
780
+ attribute(String, :type, :type)
781
+ end
782
+ class LICollection < ElementCollection
783
+ end
784
+
785
+ class UList < HTMLElement
786
+ attribute("Boolean", :compact?, :compact)
787
+ attribute(String, :type, :type)
788
+ end
789
+ class UListCollection < ElementCollection
790
+ end
791
+
792
+ class OList < HTMLElement
793
+ attribute("Boolean", :reversed?, :reversed)
794
+ attribute(Integer, :start, :start)
795
+ attribute(String, :type, :type)
796
+ attribute("Boolean", :compact?, :compact)
797
+ end
798
+ class OListCollection < ElementCollection
799
+ end
800
+
801
+ class Quote < HTMLElement
802
+ attribute(String, :cite, :cite)
803
+ end
804
+ class QuoteCollection < ElementCollection
805
+ end
806
+
807
+ class Pre < HTMLElement
808
+ end
809
+ class PreCollection < ElementCollection
810
+ end
811
+
812
+ class HR < HTMLElement
813
+ attribute(String, :align, :align)
814
+ attribute(String, :color, :color)
815
+ attribute("Boolean", :noshade?, :noShade)
816
+ end
817
+ class HRCollection < ElementCollection
818
+ end
819
+
820
+ class Paragraph < HTMLElement
821
+ attribute(String, :align, :align)
822
+ end
823
+ class ParagraphCollection < ElementCollection
824
+ end
825
+
826
+ class Heading < HTMLElement
827
+ attribute(String, :align, :align)
828
+ end
829
+ class HeadingCollection < ElementCollection
830
+ end
831
+
832
+ class Body < HTMLElement
833
+ attribute(String, :link, :link)
834
+ attribute(String, :vlink, :vLink)
835
+ attribute(String, :alink, :aLink)
836
+ attribute(String, :bgcolor, :bgColor)
837
+ attribute(String, :background, :background)
838
+ attribute(String, :onafterprint, :onafterprint)
839
+ attribute(String, :onbeforeprint, :onbeforeprint)
840
+ attribute(String, :onbeforeunload, :onbeforeunload)
841
+ attribute(String, :onhashchange, :onhashchange)
842
+ attribute(String, :onlanguagechange, :onlanguagechange)
843
+ attribute(String, :onmessage, :onmessage)
844
+ attribute(String, :onoffline, :onoffline)
845
+ attribute(String, :ononline, :ononline)
846
+ attribute(String, :onpagehide, :onpagehide)
847
+ attribute(String, :onpageshow, :onpageshow)
848
+ attribute(String, :onrejectionhandled, :onrejectionhandled)
849
+ attribute(String, :onpopstate, :onpopstate)
850
+ attribute(String, :onstorage, :onstorage)
851
+ attribute(String, :onunhandledrejection, :onunhandledrejection)
852
+ attribute(String, :onunload, :onunload)
853
+ end
854
+ class BodyCollection < ElementCollection
855
+ end
856
+
857
+ class Style < HTMLElement
858
+ attribute(String, :media, :media)
859
+ attribute(String, :nonce, :nonce)
860
+ attribute(String, :type, :type)
861
+ end
862
+ class StyleCollection < ElementCollection
863
+ end
864
+
865
+ class Meta < HTMLElement
866
+ attribute(String, :name, :name)
867
+ attribute(String, :http_equiv, :httpEquiv)
868
+ attribute(String, :content, :content)
869
+ attribute(String, :scheme, :scheme)
870
+ end
871
+ class MetaCollection < ElementCollection
872
+ end
873
+
874
+ class Base < HTMLElement
875
+ attribute(String, :href, :href)
876
+ attribute(String, :target, :target)
877
+ end
878
+ class BaseCollection < ElementCollection
879
+ end
880
+
881
+ class Title < HTMLElement
882
+ end
883
+ class TitleCollection < ElementCollection
884
+ end
885
+
886
+ class Head < HTMLElement
887
+ end
888
+ class HeadCollection < ElementCollection
889
+ end
890
+
891
+ class Html < HTMLElement
892
+ attribute(String, :version, :version)
893
+ end
894
+ class HtmlCollection < ElementCollection
895
+ end
896
+
897
+ class Unknown < HTMLElement
898
+ end
899
+ class UnknownCollection < ElementCollection
900
+ end
901
+
902
+
903
+ module Container
904
+
905
+ # @return [Anchor]
906
+ def a(*args)
907
+ Anchor.new(self, extract_selector(args).merge(tag_name: "a"))
908
+ end
909
+ # @return [AnchorCollection]
910
+ def as(*args)
911
+ AnchorCollection.new(self, extract_selector(args).merge(tag_name: "a"))
912
+ end
913
+ Watir.tag_to_class[:a] = Anchor
914
+
915
+ # @return [HTMLElement]
916
+ def abbr(*args)
917
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "abbr"))
918
+ end
919
+ # @return [HTMLElementCollection]
920
+ def abbrs(*args)
921
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "abbr"))
922
+ end
923
+ Watir.tag_to_class[:abbr] = HTMLElement
924
+
925
+ # @return [HTMLElement]
926
+ def address(*args)
927
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "address"))
928
+ end
929
+ # @return [HTMLElementCollection]
930
+ def addresses(*args)
931
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "address"))
932
+ end
933
+ Watir.tag_to_class[:address] = HTMLElement
934
+
935
+ # @return [Area]
936
+ def area(*args)
937
+ Area.new(self, extract_selector(args).merge(tag_name: "area"))
938
+ end
939
+ # @return [AreaCollection]
940
+ def areas(*args)
941
+ AreaCollection.new(self, extract_selector(args).merge(tag_name: "area"))
942
+ end
943
+ Watir.tag_to_class[:area] = Area
944
+
945
+ # @return [HTMLElement]
946
+ def article(*args)
947
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "article"))
948
+ end
949
+ # @return [HTMLElementCollection]
950
+ def articles(*args)
951
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "article"))
952
+ end
953
+ Watir.tag_to_class[:article] = HTMLElement
954
+
955
+ # @return [HTMLElement]
956
+ def aside(*args)
957
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "aside"))
958
+ end
959
+ # @return [HTMLElementCollection]
960
+ def asides(*args)
961
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "aside"))
962
+ end
963
+ Watir.tag_to_class[:aside] = HTMLElement
964
+
965
+ # @return [Audio]
966
+ def audio(*args)
967
+ Audio.new(self, extract_selector(args).merge(tag_name: "audio"))
968
+ end
969
+ # @return [AudioCollection]
970
+ def audios(*args)
971
+ AudioCollection.new(self, extract_selector(args).merge(tag_name: "audio"))
972
+ end
973
+ Watir.tag_to_class[:audio] = Audio
974
+
975
+ # @return [HTMLElement]
976
+ def b(*args)
977
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "b"))
978
+ end
979
+ # @return [HTMLElementCollection]
980
+ def bs(*args)
981
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "b"))
982
+ end
983
+ Watir.tag_to_class[:b] = HTMLElement
984
+
985
+ # @return [Base]
986
+ def base(*args)
987
+ Base.new(self, extract_selector(args).merge(tag_name: "base"))
988
+ end
989
+ # @return [BaseCollection]
990
+ def bases(*args)
991
+ BaseCollection.new(self, extract_selector(args).merge(tag_name: "base"))
992
+ end
993
+ Watir.tag_to_class[:base] = Base
994
+
995
+ # @return [HTMLElement]
996
+ def bdi(*args)
997
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "bdi"))
998
+ end
999
+ # @return [HTMLElementCollection]
1000
+ def bdis(*args)
1001
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "bdi"))
1002
+ end
1003
+ Watir.tag_to_class[:bdi] = HTMLElement
1004
+
1005
+ # @return [HTMLElement]
1006
+ def bdo(*args)
1007
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "bdo"))
1008
+ end
1009
+ # @return [HTMLElementCollection]
1010
+ def bdos(*args)
1011
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "bdo"))
1012
+ end
1013
+ Watir.tag_to_class[:bdo] = HTMLElement
1014
+
1015
+ # @return [Quote]
1016
+ def blockquote(*args)
1017
+ Quote.new(self, extract_selector(args).merge(tag_name: "blockquote"))
1018
+ end
1019
+ # @return [QuoteCollection]
1020
+ def blockquotes(*args)
1021
+ QuoteCollection.new(self, extract_selector(args).merge(tag_name: "blockquote"))
1022
+ end
1023
+ Watir.tag_to_class[:blockquote] = Quote
1024
+
1025
+ # @return [Body]
1026
+ def body(*args)
1027
+ Body.new(self, extract_selector(args).merge(tag_name: "body"))
1028
+ end
1029
+ # @return [BodyCollection]
1030
+ def bodys(*args)
1031
+ BodyCollection.new(self, extract_selector(args).merge(tag_name: "body"))
1032
+ end
1033
+ Watir.tag_to_class[:body] = Body
1034
+
1035
+ # @return [BR]
1036
+ def br(*args)
1037
+ BR.new(self, extract_selector(args).merge(tag_name: "br"))
1038
+ end
1039
+ # @return [BRCollection]
1040
+ def brs(*args)
1041
+ BRCollection.new(self, extract_selector(args).merge(tag_name: "br"))
1042
+ end
1043
+ Watir.tag_to_class[:br] = BR
1044
+
1045
+ # @return [Button]
1046
+ def button(*args)
1047
+ Button.new(self, extract_selector(args).merge(tag_name: "button"))
1048
+ end
1049
+ # @return [ButtonCollection]
1050
+ def buttons(*args)
1051
+ ButtonCollection.new(self, extract_selector(args).merge(tag_name: "button"))
1052
+ end
1053
+ Watir.tag_to_class[:button] = Button
1054
+
1055
+ # @return [Canvas]
1056
+ def canvas(*args)
1057
+ Canvas.new(self, extract_selector(args).merge(tag_name: "canvas"))
1058
+ end
1059
+ # @return [CanvasCollection]
1060
+ def canvases(*args)
1061
+ CanvasCollection.new(self, extract_selector(args).merge(tag_name: "canvas"))
1062
+ end
1063
+ Watir.tag_to_class[:canvas] = Canvas
1064
+
1065
+ # @return [TableCaption]
1066
+ def caption(*args)
1067
+ TableCaption.new(self, extract_selector(args).merge(tag_name: "caption"))
1068
+ end
1069
+ # @return [TableCaptionCollection]
1070
+ def captions(*args)
1071
+ TableCaptionCollection.new(self, extract_selector(args).merge(tag_name: "caption"))
1072
+ end
1073
+ Watir.tag_to_class[:caption] = TableCaption
1074
+
1075
+ # @return [HTMLElement]
1076
+ def cite(*args)
1077
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "cite"))
1078
+ end
1079
+ # @return [HTMLElementCollection]
1080
+ def cites(*args)
1081
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "cite"))
1082
+ end
1083
+ Watir.tag_to_class[:cite] = HTMLElement
1084
+
1085
+ # @return [HTMLElement]
1086
+ def code(*args)
1087
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "code"))
1088
+ end
1089
+ # @return [HTMLElementCollection]
1090
+ def codes(*args)
1091
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "code"))
1092
+ end
1093
+ Watir.tag_to_class[:code] = HTMLElement
1094
+
1095
+ # @return [TableCol]
1096
+ def col(*args)
1097
+ TableCol.new(self, extract_selector(args).merge(tag_name: "col"))
1098
+ end
1099
+ # @return [TableColCollection]
1100
+ def cols(*args)
1101
+ TableColCollection.new(self, extract_selector(args).merge(tag_name: "col"))
1102
+ end
1103
+ Watir.tag_to_class[:col] = TableCol
1104
+
1105
+ # @return [TableCol]
1106
+ def colgroup(*args)
1107
+ TableCol.new(self, extract_selector(args).merge(tag_name: "colgroup"))
1108
+ end
1109
+ # @return [TableColCollection]
1110
+ def colgroups(*args)
1111
+ TableColCollection.new(self, extract_selector(args).merge(tag_name: "colgroup"))
1112
+ end
1113
+ Watir.tag_to_class[:colgroup] = TableCol
1114
+
1115
+ # @return [Data]
1116
+ def data(*args)
1117
+ Data.new(self, extract_selector(args).merge(tag_name: "data"))
1118
+ end
1119
+ # @return [DataCollection]
1120
+ def datas(*args)
1121
+ DataCollection.new(self, extract_selector(args).merge(tag_name: "data"))
1122
+ end
1123
+ Watir.tag_to_class[:data] = Data
1124
+
1125
+ # @return [DataList]
1126
+ def datalist(*args)
1127
+ DataList.new(self, extract_selector(args).merge(tag_name: "datalist"))
1128
+ end
1129
+ # @return [DataListCollection]
1130
+ def datalists(*args)
1131
+ DataListCollection.new(self, extract_selector(args).merge(tag_name: "datalist"))
1132
+ end
1133
+ Watir.tag_to_class[:datalist] = DataList
1134
+
1135
+ # @return [HTMLElement]
1136
+ def dd(*args)
1137
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "dd"))
1138
+ end
1139
+ # @return [HTMLElementCollection]
1140
+ def dds(*args)
1141
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dd"))
1142
+ end
1143
+ Watir.tag_to_class[:dd] = HTMLElement
1144
+
1145
+ # @return [Mod]
1146
+ def del(*args)
1147
+ Mod.new(self, extract_selector(args).merge(tag_name: "del"))
1148
+ end
1149
+ # @return [ModCollection]
1150
+ def dels(*args)
1151
+ ModCollection.new(self, extract_selector(args).merge(tag_name: "del"))
1152
+ end
1153
+ Watir.tag_to_class[:del] = Mod
1154
+
1155
+ # @return [Details]
1156
+ def details(*args)
1157
+ Details.new(self, extract_selector(args).merge(tag_name: "details"))
1158
+ end
1159
+ # @return [DetailsCollection]
1160
+ def detailses(*args)
1161
+ DetailsCollection.new(self, extract_selector(args).merge(tag_name: "details"))
1162
+ end
1163
+ Watir.tag_to_class[:details] = Details
1164
+
1165
+ # @return [HTMLElement]
1166
+ def dfn(*args)
1167
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "dfn"))
1168
+ end
1169
+ # @return [HTMLElementCollection]
1170
+ def dfns(*args)
1171
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dfn"))
1172
+ end
1173
+ Watir.tag_to_class[:dfn] = HTMLElement
1174
+
1175
+ # @return [Div]
1176
+ def div(*args)
1177
+ Div.new(self, extract_selector(args).merge(tag_name: "div"))
1178
+ end
1179
+ # @return [DivCollection]
1180
+ def divs(*args)
1181
+ DivCollection.new(self, extract_selector(args).merge(tag_name: "div"))
1182
+ end
1183
+ Watir.tag_to_class[:div] = Div
1184
+
1185
+ # @return [DList]
1186
+ def dl(*args)
1187
+ DList.new(self, extract_selector(args).merge(tag_name: "dl"))
1188
+ end
1189
+ # @return [DListCollection]
1190
+ def dls(*args)
1191
+ DListCollection.new(self, extract_selector(args).merge(tag_name: "dl"))
1192
+ end
1193
+ Watir.tag_to_class[:dl] = DList
1194
+
1195
+ # @return [HTMLElement]
1196
+ def dt(*args)
1197
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "dt"))
1198
+ end
1199
+ # @return [HTMLElementCollection]
1200
+ def dts(*args)
1201
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dt"))
1202
+ end
1203
+ Watir.tag_to_class[:dt] = HTMLElement
1204
+
1205
+ # @return [HTMLElement]
1206
+ def em(*args)
1207
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "em"))
1208
+ end
1209
+ # @return [HTMLElementCollection]
1210
+ def ems(*args)
1211
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "em"))
1212
+ end
1213
+ Watir.tag_to_class[:em] = HTMLElement
1214
+
1215
+ # @return [Embed]
1216
+ def embed(*args)
1217
+ Embed.new(self, extract_selector(args).merge(tag_name: "embed"))
1218
+ end
1219
+ # @return [EmbedCollection]
1220
+ def embeds(*args)
1221
+ EmbedCollection.new(self, extract_selector(args).merge(tag_name: "embed"))
1222
+ end
1223
+ Watir.tag_to_class[:embed] = Embed
1224
+
1225
+ # @return [FieldSet]
1226
+ def fieldset(*args)
1227
+ FieldSet.new(self, extract_selector(args).merge(tag_name: "fieldset"))
1228
+ end
1229
+ # @return [FieldSetCollection]
1230
+ def fieldsets(*args)
1231
+ FieldSetCollection.new(self, extract_selector(args).merge(tag_name: "fieldset"))
1232
+ end
1233
+ Watir.tag_to_class[:fieldset] = FieldSet
1234
+
1235
+ # @return [HTMLElement]
1236
+ def figcaption(*args)
1237
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "figcaption"))
1238
+ end
1239
+ # @return [HTMLElementCollection]
1240
+ def figcaptions(*args)
1241
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "figcaption"))
1242
+ end
1243
+ Watir.tag_to_class[:figcaption] = HTMLElement
1244
+
1245
+ # @return [HTMLElement]
1246
+ def figure(*args)
1247
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "figure"))
1248
+ end
1249
+ # @return [HTMLElementCollection]
1250
+ def figures(*args)
1251
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "figure"))
1252
+ end
1253
+ Watir.tag_to_class[:figure] = HTMLElement
1254
+
1255
+ # @return [HTMLElement]
1256
+ def footer(*args)
1257
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "footer"))
1258
+ end
1259
+ # @return [HTMLElementCollection]
1260
+ def footers(*args)
1261
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "footer"))
1262
+ end
1263
+ Watir.tag_to_class[:footer] = HTMLElement
1264
+
1265
+ # @return [Form]
1266
+ def form(*args)
1267
+ Form.new(self, extract_selector(args).merge(tag_name: "form"))
1268
+ end
1269
+ # @return [FormCollection]
1270
+ def forms(*args)
1271
+ FormCollection.new(self, extract_selector(args).merge(tag_name: "form"))
1272
+ end
1273
+ Watir.tag_to_class[:form] = Form
1274
+
1275
+ # @return [FrameSet]
1276
+ def frameset(*args)
1277
+ FrameSet.new(self, extract_selector(args).merge(tag_name: "frameset"))
1278
+ end
1279
+ # @return [FrameSetCollection]
1280
+ def framesets(*args)
1281
+ FrameSetCollection.new(self, extract_selector(args).merge(tag_name: "frameset"))
1282
+ end
1283
+ Watir.tag_to_class[:frameset] = FrameSet
1284
+
1285
+ # @return [Heading]
1286
+ def h1(*args)
1287
+ Heading.new(self, extract_selector(args).merge(tag_name: "h1"))
1288
+ end
1289
+ # @return [HeadingCollection]
1290
+ def h1s(*args)
1291
+ HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h1"))
1292
+ end
1293
+ Watir.tag_to_class[:h1] = Heading
1294
+
1295
+ # @return [Heading]
1296
+ def h2(*args)
1297
+ Heading.new(self, extract_selector(args).merge(tag_name: "h2"))
1298
+ end
1299
+ # @return [HeadingCollection]
1300
+ def h2s(*args)
1301
+ HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h2"))
1302
+ end
1303
+ Watir.tag_to_class[:h2] = Heading
1304
+
1305
+ # @return [Heading]
1306
+ def h3(*args)
1307
+ Heading.new(self, extract_selector(args).merge(tag_name: "h3"))
1308
+ end
1309
+ # @return [HeadingCollection]
1310
+ def h3s(*args)
1311
+ HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h3"))
1312
+ end
1313
+ Watir.tag_to_class[:h3] = Heading
1314
+
1315
+ # @return [Heading]
1316
+ def h4(*args)
1317
+ Heading.new(self, extract_selector(args).merge(tag_name: "h4"))
1318
+ end
1319
+ # @return [HeadingCollection]
1320
+ def h4s(*args)
1321
+ HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h4"))
1322
+ end
1323
+ Watir.tag_to_class[:h4] = Heading
1324
+
1325
+ # @return [Heading]
1326
+ def h5(*args)
1327
+ Heading.new(self, extract_selector(args).merge(tag_name: "h5"))
1328
+ end
1329
+ # @return [HeadingCollection]
1330
+ def h5s(*args)
1331
+ HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h5"))
1332
+ end
1333
+ Watir.tag_to_class[:h5] = Heading
1334
+
1335
+ # @return [Heading]
1336
+ def h6(*args)
1337
+ Heading.new(self, extract_selector(args).merge(tag_name: "h6"))
1338
+ end
1339
+ # @return [HeadingCollection]
1340
+ def h6s(*args)
1341
+ HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h6"))
1342
+ end
1343
+ Watir.tag_to_class[:h6] = Heading
1344
+
1345
+ # @return [Head]
1346
+ def head(*args)
1347
+ Head.new(self, extract_selector(args).merge(tag_name: "head"))
1348
+ end
1349
+ # @return [HeadCollection]
1350
+ def heads(*args)
1351
+ HeadCollection.new(self, extract_selector(args).merge(tag_name: "head"))
1352
+ end
1353
+ Watir.tag_to_class[:head] = Head
1354
+
1355
+ # @return [HTMLElement]
1356
+ def header(*args)
1357
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "header"))
1358
+ end
1359
+ # @return [HTMLElementCollection]
1360
+ def headers(*args)
1361
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "header"))
1362
+ end
1363
+ Watir.tag_to_class[:header] = HTMLElement
1364
+
1365
+ # @return [HR]
1366
+ def hr(*args)
1367
+ HR.new(self, extract_selector(args).merge(tag_name: "hr"))
1368
+ end
1369
+ # @return [HRCollection]
1370
+ def hrs(*args)
1371
+ HRCollection.new(self, extract_selector(args).merge(tag_name: "hr"))
1372
+ end
1373
+ Watir.tag_to_class[:hr] = HR
1374
+
1375
+ # @return [Html]
1376
+ def html(*args)
1377
+ Html.new(self, extract_selector(args).merge(tag_name: "html"))
1378
+ end
1379
+ # @return [HtmlCollection]
1380
+ def htmls(*args)
1381
+ HtmlCollection.new(self, extract_selector(args).merge(tag_name: "html"))
1382
+ end
1383
+ Watir.tag_to_class[:html] = Html
1384
+
1385
+ # @return [HTMLElement]
1386
+ def i(*args)
1387
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "i"))
1388
+ end
1389
+ # @return [HTMLElementCollection]
1390
+ def is(*args)
1391
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "i"))
1392
+ end
1393
+ Watir.tag_to_class[:i] = HTMLElement
1394
+
1395
+ # @return [IFrame]
1396
+ def iframe(*args)
1397
+ IFrame.new(self, extract_selector(args).merge(tag_name: "iframe"))
1398
+ end
1399
+ # @return [IFrameCollection]
1400
+ def iframes(*args)
1401
+ IFrameCollection.new(self, extract_selector(args).merge(tag_name: "iframe"))
1402
+ end
1403
+ Watir.tag_to_class[:iframe] = IFrame
1404
+
1405
+ # @return [Image]
1406
+ def img(*args)
1407
+ Image.new(self, extract_selector(args).merge(tag_name: "img"))
1408
+ end
1409
+ # @return [ImageCollection]
1410
+ def imgs(*args)
1411
+ ImageCollection.new(self, extract_selector(args).merge(tag_name: "img"))
1412
+ end
1413
+ Watir.tag_to_class[:img] = Image
1414
+
1415
+ # @return [Input]
1416
+ def input(*args)
1417
+ Input.new(self, extract_selector(args).merge(tag_name: "input"))
1418
+ end
1419
+ # @return [InputCollection]
1420
+ def inputs(*args)
1421
+ InputCollection.new(self, extract_selector(args).merge(tag_name: "input"))
1422
+ end
1423
+ Watir.tag_to_class[:input] = Input
1424
+
1425
+ # @return [Mod]
1426
+ def ins(*args)
1427
+ Mod.new(self, extract_selector(args).merge(tag_name: "ins"))
1428
+ end
1429
+ # @return [ModCollection]
1430
+ def inses(*args)
1431
+ ModCollection.new(self, extract_selector(args).merge(tag_name: "ins"))
1432
+ end
1433
+ Watir.tag_to_class[:ins] = Mod
1434
+
1435
+ # @return [HTMLElement]
1436
+ def kbd(*args)
1437
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "kbd"))
1438
+ end
1439
+ # @return [HTMLElementCollection]
1440
+ def kbds(*args)
1441
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "kbd"))
1442
+ end
1443
+ Watir.tag_to_class[:kbd] = HTMLElement
1444
+
1445
+ # @return [Keygen]
1446
+ def keygen(*args)
1447
+ Keygen.new(self, extract_selector(args).merge(tag_name: "keygen"))
1448
+ end
1449
+ # @return [KeygenCollection]
1450
+ def keygens(*args)
1451
+ KeygenCollection.new(self, extract_selector(args).merge(tag_name: "keygen"))
1452
+ end
1453
+ Watir.tag_to_class[:keygen] = Keygen
1454
+
1455
+ # @return [Label]
1456
+ def label(*args)
1457
+ Label.new(self, extract_selector(args).merge(tag_name: "label"))
1458
+ end
1459
+ # @return [LabelCollection]
1460
+ def labels(*args)
1461
+ LabelCollection.new(self, extract_selector(args).merge(tag_name: "label"))
1462
+ end
1463
+ Watir.tag_to_class[:label] = Label
1464
+
1465
+ # @return [Legend]
1466
+ def legend(*args)
1467
+ Legend.new(self, extract_selector(args).merge(tag_name: "legend"))
1468
+ end
1469
+ # @return [LegendCollection]
1470
+ def legends(*args)
1471
+ LegendCollection.new(self, extract_selector(args).merge(tag_name: "legend"))
1472
+ end
1473
+ Watir.tag_to_class[:legend] = Legend
1474
+
1475
+ # @return [LI]
1476
+ def li(*args)
1477
+ LI.new(self, extract_selector(args).merge(tag_name: "li"))
1478
+ end
1479
+ # @return [LICollection]
1480
+ def lis(*args)
1481
+ LICollection.new(self, extract_selector(args).merge(tag_name: "li"))
1482
+ end
1483
+ Watir.tag_to_class[:li] = LI
1484
+
1485
+ # @return [HTMLElement]
1486
+ def main(*args)
1487
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "main"))
1488
+ end
1489
+ # @return [HTMLElementCollection]
1490
+ def mains(*args)
1491
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "main"))
1492
+ end
1493
+ Watir.tag_to_class[:main] = HTMLElement
1494
+
1495
+ # @return [Map]
1496
+ def map(*args)
1497
+ Map.new(self, extract_selector(args).merge(tag_name: "map"))
1498
+ end
1499
+ # @return [MapCollection]
1500
+ def maps(*args)
1501
+ MapCollection.new(self, extract_selector(args).merge(tag_name: "map"))
1502
+ end
1503
+ Watir.tag_to_class[:map] = Map
1504
+
1505
+ # @return [HTMLElement]
1506
+ def mark(*args)
1507
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "mark"))
1508
+ end
1509
+ # @return [HTMLElementCollection]
1510
+ def marks(*args)
1511
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "mark"))
1512
+ end
1513
+ Watir.tag_to_class[:mark] = HTMLElement
1514
+
1515
+ # @return [Menu]
1516
+ def menu(*args)
1517
+ Menu.new(self, extract_selector(args).merge(tag_name: "menu"))
1518
+ end
1519
+ # @return [MenuCollection]
1520
+ def menus(*args)
1521
+ MenuCollection.new(self, extract_selector(args).merge(tag_name: "menu"))
1522
+ end
1523
+ Watir.tag_to_class[:menu] = Menu
1524
+
1525
+ # @return [MenuItem]
1526
+ def menuitem(*args)
1527
+ MenuItem.new(self, extract_selector(args).merge(tag_name: "menuitem"))
1528
+ end
1529
+ # @return [MenuItemCollection]
1530
+ def menuitems(*args)
1531
+ MenuItemCollection.new(self, extract_selector(args).merge(tag_name: "menuitem"))
1532
+ end
1533
+ Watir.tag_to_class[:menuitem] = MenuItem
1534
+
1535
+ # @return [Meta]
1536
+ def meta(*args)
1537
+ Meta.new(self, extract_selector(args).merge(tag_name: "meta"))
1538
+ end
1539
+ # @return [MetaCollection]
1540
+ def metas(*args)
1541
+ MetaCollection.new(self, extract_selector(args).merge(tag_name: "meta"))
1542
+ end
1543
+ Watir.tag_to_class[:meta] = Meta
1544
+
1545
+ # @return [Meter]
1546
+ def meter(*args)
1547
+ Meter.new(self, extract_selector(args).merge(tag_name: "meter"))
1548
+ end
1549
+ # @return [MeterCollection]
1550
+ def meters(*args)
1551
+ MeterCollection.new(self, extract_selector(args).merge(tag_name: "meter"))
1552
+ end
1553
+ Watir.tag_to_class[:meter] = Meter
1554
+
1555
+ # @return [HTMLElement]
1556
+ def nav(*args)
1557
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "nav"))
1558
+ end
1559
+ # @return [HTMLElementCollection]
1560
+ def navs(*args)
1561
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "nav"))
1562
+ end
1563
+ Watir.tag_to_class[:nav] = HTMLElement
1564
+
1565
+ # @return [HTMLElement]
1566
+ def noscript(*args)
1567
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "noscript"))
1568
+ end
1569
+ # @return [HTMLElementCollection]
1570
+ def noscripts(*args)
1571
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "noscript"))
1572
+ end
1573
+ Watir.tag_to_class[:noscript] = HTMLElement
1574
+
1575
+ # @return [Object]
1576
+ def object(*args)
1577
+ Object.new(self, extract_selector(args).merge(tag_name: "object"))
1578
+ end
1579
+ # @return [ObjectCollection]
1580
+ def objects(*args)
1581
+ ObjectCollection.new(self, extract_selector(args).merge(tag_name: "object"))
1582
+ end
1583
+ Watir.tag_to_class[:object] = Object
1584
+
1585
+ # @return [OList]
1586
+ def ol(*args)
1587
+ OList.new(self, extract_selector(args).merge(tag_name: "ol"))
1588
+ end
1589
+ # @return [OListCollection]
1590
+ def ols(*args)
1591
+ OListCollection.new(self, extract_selector(args).merge(tag_name: "ol"))
1592
+ end
1593
+ Watir.tag_to_class[:ol] = OList
1594
+
1595
+ # @return [OptGroup]
1596
+ def optgroup(*args)
1597
+ OptGroup.new(self, extract_selector(args).merge(tag_name: "optgroup"))
1598
+ end
1599
+ # @return [OptGroupCollection]
1600
+ def optgroups(*args)
1601
+ OptGroupCollection.new(self, extract_selector(args).merge(tag_name: "optgroup"))
1602
+ end
1603
+ Watir.tag_to_class[:optgroup] = OptGroup
1604
+
1605
+ # @return [Option]
1606
+ def option(*args)
1607
+ Option.new(self, extract_selector(args).merge(tag_name: "option"))
1608
+ end
1609
+ # @return [OptionCollection]
1610
+ def options(*args)
1611
+ OptionCollection.new(self, extract_selector(args).merge(tag_name: "option"))
1612
+ end
1613
+ Watir.tag_to_class[:option] = Option
1614
+
1615
+ # @return [Output]
1616
+ def output(*args)
1617
+ Output.new(self, extract_selector(args).merge(tag_name: "output"))
1618
+ end
1619
+ # @return [OutputCollection]
1620
+ def outputs(*args)
1621
+ OutputCollection.new(self, extract_selector(args).merge(tag_name: "output"))
1622
+ end
1623
+ Watir.tag_to_class[:output] = Output
1624
+
1625
+ # @return [Paragraph]
1626
+ def p(*args)
1627
+ Paragraph.new(self, extract_selector(args).merge(tag_name: "p"))
1628
+ end
1629
+ # @return [ParagraphCollection]
1630
+ def ps(*args)
1631
+ ParagraphCollection.new(self, extract_selector(args).merge(tag_name: "p"))
1632
+ end
1633
+ Watir.tag_to_class[:p] = Paragraph
1634
+
1635
+ # @return [Param]
1636
+ def param(*args)
1637
+ Param.new(self, extract_selector(args).merge(tag_name: "param"))
1638
+ end
1639
+ # @return [ParamCollection]
1640
+ def params(*args)
1641
+ ParamCollection.new(self, extract_selector(args).merge(tag_name: "param"))
1642
+ end
1643
+ Watir.tag_to_class[:param] = Param
1644
+
1645
+ # @return [Picture]
1646
+ def picture(*args)
1647
+ Picture.new(self, extract_selector(args).merge(tag_name: "picture"))
1648
+ end
1649
+ # @return [PictureCollection]
1650
+ def pictures(*args)
1651
+ PictureCollection.new(self, extract_selector(args).merge(tag_name: "picture"))
1652
+ end
1653
+ Watir.tag_to_class[:picture] = Picture
1654
+
1655
+ # @return [Pre]
1656
+ def pre(*args)
1657
+ Pre.new(self, extract_selector(args).merge(tag_name: "pre"))
1658
+ end
1659
+ # @return [PreCollection]
1660
+ def pres(*args)
1661
+ PreCollection.new(self, extract_selector(args).merge(tag_name: "pre"))
1662
+ end
1663
+ Watir.tag_to_class[:pre] = Pre
1664
+
1665
+ # @return [Progress]
1666
+ def progress(*args)
1667
+ Progress.new(self, extract_selector(args).merge(tag_name: "progress"))
1668
+ end
1669
+ # @return [ProgressCollection]
1670
+ def progresses(*args)
1671
+ ProgressCollection.new(self, extract_selector(args).merge(tag_name: "progress"))
1672
+ end
1673
+ Watir.tag_to_class[:progress] = Progress
1674
+
1675
+ # @return [Quote]
1676
+ def q(*args)
1677
+ Quote.new(self, extract_selector(args).merge(tag_name: "q"))
1678
+ end
1679
+ # @return [QuoteCollection]
1680
+ def qs(*args)
1681
+ QuoteCollection.new(self, extract_selector(args).merge(tag_name: "q"))
1682
+ end
1683
+ Watir.tag_to_class[:q] = Quote
1684
+
1685
+ # @return [HTMLElement]
1686
+ def rb(*args)
1687
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "rb"))
1688
+ end
1689
+ # @return [HTMLElementCollection]
1690
+ def rbs(*args)
1691
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rb"))
1692
+ end
1693
+ Watir.tag_to_class[:rb] = HTMLElement
1694
+
1695
+ # @return [HTMLElement]
1696
+ def rp(*args)
1697
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "rp"))
1698
+ end
1699
+ # @return [HTMLElementCollection]
1700
+ def rps(*args)
1701
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rp"))
1702
+ end
1703
+ Watir.tag_to_class[:rp] = HTMLElement
1704
+
1705
+ # @return [HTMLElement]
1706
+ def rt(*args)
1707
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "rt"))
1708
+ end
1709
+ # @return [HTMLElementCollection]
1710
+ def rts(*args)
1711
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rt"))
1712
+ end
1713
+ Watir.tag_to_class[:rt] = HTMLElement
1714
+
1715
+ # @return [HTMLElement]
1716
+ def rtc(*args)
1717
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "rtc"))
1718
+ end
1719
+ # @return [HTMLElementCollection]
1720
+ def rtcs(*args)
1721
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rtc"))
1722
+ end
1723
+ Watir.tag_to_class[:rtc] = HTMLElement
1724
+
1725
+ # @return [HTMLElement]
1726
+ def ruby(*args)
1727
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "ruby"))
1728
+ end
1729
+ # @return [HTMLElementCollection]
1730
+ def rubies(*args)
1731
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "ruby"))
1732
+ end
1733
+ Watir.tag_to_class[:ruby] = HTMLElement
1734
+
1735
+ # @return [HTMLElement]
1736
+ def s(*args)
1737
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "s"))
1738
+ end
1739
+ # @return [HTMLElementCollection]
1740
+ def ss(*args)
1741
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "s"))
1742
+ end
1743
+ Watir.tag_to_class[:s] = HTMLElement
1744
+
1745
+ # @return [HTMLElement]
1746
+ def samp(*args)
1747
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "samp"))
1748
+ end
1749
+ # @return [HTMLElementCollection]
1750
+ def samps(*args)
1751
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "samp"))
1752
+ end
1753
+ Watir.tag_to_class[:samp] = HTMLElement
1754
+
1755
+ # @return [Script]
1756
+ def script(*args)
1757
+ Script.new(self, extract_selector(args).merge(tag_name: "script"))
1758
+ end
1759
+ # @return [ScriptCollection]
1760
+ def scripts(*args)
1761
+ ScriptCollection.new(self, extract_selector(args).merge(tag_name: "script"))
1762
+ end
1763
+ Watir.tag_to_class[:script] = Script
1764
+
1765
+ # @return [HTMLElement]
1766
+ def section(*args)
1767
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "section"))
1768
+ end
1769
+ # @return [HTMLElementCollection]
1770
+ def sections(*args)
1771
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "section"))
1772
+ end
1773
+ Watir.tag_to_class[:section] = HTMLElement
1774
+
1775
+ # @return [Select]
1776
+ def select(*args)
1777
+ Select.new(self, extract_selector(args).merge(tag_name: "select"))
1778
+ end
1779
+ # @return [SelectCollection]
1780
+ def selects(*args)
1781
+ SelectCollection.new(self, extract_selector(args).merge(tag_name: "select"))
1782
+ end
1783
+ Watir.tag_to_class[:select] = Select
1784
+
1785
+ # @return [HTMLElement]
1786
+ def small(*args)
1787
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "small"))
1788
+ end
1789
+ # @return [HTMLElementCollection]
1790
+ def smalls(*args)
1791
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "small"))
1792
+ end
1793
+ Watir.tag_to_class[:small] = HTMLElement
1794
+
1795
+ # @return [Source]
1796
+ def source(*args)
1797
+ Source.new(self, extract_selector(args).merge(tag_name: "source"))
1798
+ end
1799
+ # @return [SourceCollection]
1800
+ def sources(*args)
1801
+ SourceCollection.new(self, extract_selector(args).merge(tag_name: "source"))
1802
+ end
1803
+ Watir.tag_to_class[:source] = Source
1804
+
1805
+ # @return [Span]
1806
+ def span(*args)
1807
+ Span.new(self, extract_selector(args).merge(tag_name: "span"))
1808
+ end
1809
+ # @return [SpanCollection]
1810
+ def spans(*args)
1811
+ SpanCollection.new(self, extract_selector(args).merge(tag_name: "span"))
1812
+ end
1813
+ Watir.tag_to_class[:span] = Span
1814
+
1815
+ # @return [HTMLElement]
1816
+ def strong(*args)
1817
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "strong"))
1818
+ end
1819
+ # @return [HTMLElementCollection]
1820
+ def strongs(*args)
1821
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "strong"))
1822
+ end
1823
+ Watir.tag_to_class[:strong] = HTMLElement
1824
+
1825
+ # @return [Style]
1826
+ def style(*args)
1827
+ Style.new(self, extract_selector(args).merge(tag_name: "style"))
1828
+ end
1829
+ # @return [StyleCollection]
1830
+ def styles(*args)
1831
+ StyleCollection.new(self, extract_selector(args).merge(tag_name: "style"))
1832
+ end
1833
+ Watir.tag_to_class[:style] = Style
1834
+
1835
+ # @return [HTMLElement]
1836
+ def sub(*args)
1837
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "sub"))
1838
+ end
1839
+ # @return [HTMLElementCollection]
1840
+ def subs(*args)
1841
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "sub"))
1842
+ end
1843
+ Watir.tag_to_class[:sub] = HTMLElement
1844
+
1845
+ # @return [HTMLElement]
1846
+ def summary(*args)
1847
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "summary"))
1848
+ end
1849
+ # @return [HTMLElementCollection]
1850
+ def summaries(*args)
1851
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "summary"))
1852
+ end
1853
+ Watir.tag_to_class[:summary] = HTMLElement
1854
+
1855
+ # @return [HTMLElement]
1856
+ def sup(*args)
1857
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "sup"))
1858
+ end
1859
+ # @return [HTMLElementCollection]
1860
+ def sups(*args)
1861
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "sup"))
1862
+ end
1863
+ Watir.tag_to_class[:sup] = HTMLElement
1864
+
1865
+ # @return [Table]
1866
+ def table(*args)
1867
+ Table.new(self, extract_selector(args).merge(tag_name: "table"))
1868
+ end
1869
+ # @return [TableCollection]
1870
+ def tables(*args)
1871
+ TableCollection.new(self, extract_selector(args).merge(tag_name: "table"))
1872
+ end
1873
+ Watir.tag_to_class[:table] = Table
1874
+
1875
+ # @return [TableSection]
1876
+ def tbody(*args)
1877
+ TableSection.new(self, extract_selector(args).merge(tag_name: "tbody"))
1878
+ end
1879
+ # @return [TableSectionCollection]
1880
+ def tbodys(*args)
1881
+ TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "tbody"))
1882
+ end
1883
+ Watir.tag_to_class[:tbody] = TableSection
1884
+
1885
+ # @return [TableDataCell]
1886
+ def td(*args)
1887
+ TableDataCell.new(self, extract_selector(args).merge(tag_name: "td"))
1888
+ end
1889
+ # @return [TableDataCellCollection]
1890
+ def tds(*args)
1891
+ TableDataCellCollection.new(self, extract_selector(args).merge(tag_name: "td"))
1892
+ end
1893
+ Watir.tag_to_class[:td] = TableDataCell
1894
+
1895
+ # @return [Template]
1896
+ def template(*args)
1897
+ Template.new(self, extract_selector(args).merge(tag_name: "template"))
1898
+ end
1899
+ # @return [TemplateCollection]
1900
+ def templates(*args)
1901
+ TemplateCollection.new(self, extract_selector(args).merge(tag_name: "template"))
1902
+ end
1903
+ Watir.tag_to_class[:template] = Template
1904
+
1905
+ # @return [TextArea]
1906
+ def textarea(*args)
1907
+ TextArea.new(self, extract_selector(args).merge(tag_name: "textarea"))
1908
+ end
1909
+ # @return [TextAreaCollection]
1910
+ def textareas(*args)
1911
+ TextAreaCollection.new(self, extract_selector(args).merge(tag_name: "textarea"))
1912
+ end
1913
+ Watir.tag_to_class[:textarea] = TextArea
1914
+
1915
+ # @return [TableSection]
1916
+ def tfoot(*args)
1917
+ TableSection.new(self, extract_selector(args).merge(tag_name: "tfoot"))
1918
+ end
1919
+ # @return [TableSectionCollection]
1920
+ def tfoots(*args)
1921
+ TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "tfoot"))
1922
+ end
1923
+ Watir.tag_to_class[:tfoot] = TableSection
1924
+
1925
+ # @return [TableHeaderCell]
1926
+ def th(*args)
1927
+ TableHeaderCell.new(self, extract_selector(args).merge(tag_name: "th"))
1928
+ end
1929
+ # @return [TableHeaderCellCollection]
1930
+ def ths(*args)
1931
+ TableHeaderCellCollection.new(self, extract_selector(args).merge(tag_name: "th"))
1932
+ end
1933
+ Watir.tag_to_class[:th] = TableHeaderCell
1934
+
1935
+ # @return [TableSection]
1936
+ def thead(*args)
1937
+ TableSection.new(self, extract_selector(args).merge(tag_name: "thead"))
1938
+ end
1939
+ # @return [TableSectionCollection]
1940
+ def theads(*args)
1941
+ TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "thead"))
1942
+ end
1943
+ Watir.tag_to_class[:thead] = TableSection
1944
+
1945
+ # @return [Time]
1946
+ def time(*args)
1947
+ Time.new(self, extract_selector(args).merge(tag_name: "time"))
1948
+ end
1949
+ # @return [TimeCollection]
1950
+ def times(*args)
1951
+ TimeCollection.new(self, extract_selector(args).merge(tag_name: "time"))
1952
+ end
1953
+ Watir.tag_to_class[:time] = Time
1954
+
1955
+ # @return [Title]
1956
+ def title(*args)
1957
+ Title.new(self, extract_selector(args).merge(tag_name: "title"))
1958
+ end
1959
+ # @return [TitleCollection]
1960
+ def titles(*args)
1961
+ TitleCollection.new(self, extract_selector(args).merge(tag_name: "title"))
1962
+ end
1963
+ Watir.tag_to_class[:title] = Title
1964
+
1965
+ # @return [TableRow]
1966
+ def tr(*args)
1967
+ TableRow.new(self, extract_selector(args).merge(tag_name: "tr"))
1968
+ end
1969
+ # @return [TableRowCollection]
1970
+ def trs(*args)
1971
+ TableRowCollection.new(self, extract_selector(args).merge(tag_name: "tr"))
1972
+ end
1973
+ Watir.tag_to_class[:tr] = TableRow
1974
+
1975
+ # @return [Track]
1976
+ def track(*args)
1977
+ Track.new(self, extract_selector(args).merge(tag_name: "track"))
1978
+ end
1979
+ # @return [TrackCollection]
1980
+ def tracks(*args)
1981
+ TrackCollection.new(self, extract_selector(args).merge(tag_name: "track"))
1982
+ end
1983
+ Watir.tag_to_class[:track] = Track
1984
+
1985
+ # @return [HTMLElement]
1986
+ def u(*args)
1987
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "u"))
1988
+ end
1989
+ # @return [HTMLElementCollection]
1990
+ def us(*args)
1991
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "u"))
1992
+ end
1993
+ Watir.tag_to_class[:u] = HTMLElement
1994
+
1995
+ # @return [UList]
1996
+ def ul(*args)
1997
+ UList.new(self, extract_selector(args).merge(tag_name: "ul"))
1998
+ end
1999
+ # @return [UListCollection]
2000
+ def uls(*args)
2001
+ UListCollection.new(self, extract_selector(args).merge(tag_name: "ul"))
2002
+ end
2003
+ Watir.tag_to_class[:ul] = UList
2004
+
2005
+ # @return [HTMLElement]
2006
+ def var(*args)
2007
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "var"))
2008
+ end
2009
+ # @return [HTMLElementCollection]
2010
+ def vars(*args)
2011
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "var"))
2012
+ end
2013
+ Watir.tag_to_class[:var] = HTMLElement
2014
+
2015
+ # @return [Video]
2016
+ def video(*args)
2017
+ Video.new(self, extract_selector(args).merge(tag_name: "video"))
2018
+ end
2019
+ # @return [VideoCollection]
2020
+ def videos(*args)
2021
+ VideoCollection.new(self, extract_selector(args).merge(tag_name: "video"))
2022
+ end
2023
+ Watir.tag_to_class[:video] = Video
2024
+
2025
+ # @return [HTMLElement]
2026
+ def wbr(*args)
2027
+ HTMLElement.new(self, extract_selector(args).merge(tag_name: "wbr"))
2028
+ end
2029
+ # @return [HTMLElementCollection]
2030
+ def wbrs(*args)
2031
+ HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "wbr"))
2032
+ end
2033
+ Watir.tag_to_class[:wbr] = HTMLElement
2034
+ end # Container
2035
+ end # Watir