Module: Watir::Container

Includes:
JSSnippets
Included in:
Browser, Element
Defined in:
lib/watir/radio_set.rb,
lib/watir/aliases.rb,
lib/watir/container.rb,
lib/watir/elements/font.rb,
lib/watir/elements/link.rb,
lib/watir/elements/image.rb,
lib/watir/elements/radio.rb,
lib/watir/elements/hidden.rb,
lib/watir/elements/iframe.rb,
lib/watir/elements/select.rb,
lib/watir/elements/checkbox.rb,
lib/watir/elements/date_field.rb,
lib/watir/elements/file_field.rb,
lib/watir/elements/text_field.rb,
lib/watir/elements/svg_elements.rb,
lib/watir/elements/html_elements.rb,
lib/watir/elements/date_time_field.rb

Overview

DateTimeField

Instance Method Summary collapse

Methods included from JSSnippets

#execute_js

Instance Method Details

#a(*args) ⇒ Anchor

Returns:


874
875
876
# File 'lib/watir/elements/html_elements.rb', line 874

def a(*args)
  Anchor.new(self, extract_selector(args).merge(tag_name: "a"))
end

#abbr(*args) ⇒ HTMLElement

Returns:


884
885
886
# File 'lib/watir/elements/html_elements.rb', line 884

def abbr(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "abbr"))
end

#abbrs(*args) ⇒ HTMLElementCollection


888
889
890
# File 'lib/watir/elements/html_elements.rb', line 888

def abbrs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "abbr"))
end

#address(*args) ⇒ HTMLElement

Returns:


894
895
896
# File 'lib/watir/elements/html_elements.rb', line 894

def address(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "address"))
end

#addresses(*args) ⇒ HTMLElementCollection


898
899
900
# File 'lib/watir/elements/html_elements.rb', line 898

def addresses(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "address"))
end

#area(*args) ⇒ Area

Returns:


904
905
906
# File 'lib/watir/elements/html_elements.rb', line 904

def area(*args)
  Area.new(self, extract_selector(args).merge(tag_name: "area"))
end

#areas(*args) ⇒ AreaCollection

Returns:


908
909
910
# File 'lib/watir/elements/html_elements.rb', line 908

def areas(*args)
  AreaCollection.new(self, extract_selector(args).merge(tag_name: "area"))
end

#article(*args) ⇒ HTMLElement

Returns:


914
915
916
# File 'lib/watir/elements/html_elements.rb', line 914

def article(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "article"))
end

#articles(*args) ⇒ HTMLElementCollection


918
919
920
# File 'lib/watir/elements/html_elements.rb', line 918

def articles(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "article"))
end

#as(*args) ⇒ AnchorCollection

Returns:


878
879
880
# File 'lib/watir/elements/html_elements.rb', line 878

def as(*args)
  AnchorCollection.new(self, extract_selector(args).merge(tag_name: "a"))
end

#aside(*args) ⇒ HTMLElement

Returns:


924
925
926
# File 'lib/watir/elements/html_elements.rb', line 924

def aside(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "aside"))
end

#asides(*args) ⇒ HTMLElementCollection


928
929
930
# File 'lib/watir/elements/html_elements.rb', line 928

def asides(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "aside"))
end

#audio(*args) ⇒ Audio

Returns:


934
935
936
# File 'lib/watir/elements/html_elements.rb', line 934

def audio(*args)
  Audio.new(self, extract_selector(args).merge(tag_name: "audio"))
end

#audios(*args) ⇒ AudioCollection

Returns:


938
939
940
# File 'lib/watir/elements/html_elements.rb', line 938

def audios(*args)
  AudioCollection.new(self, extract_selector(args).merge(tag_name: "audio"))
end

#b(*args) ⇒ HTMLElement

Returns:


944
945
946
# File 'lib/watir/elements/html_elements.rb', line 944

def b(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "b"))
end

#base(*args) ⇒ Base

Returns:


954
955
956
# File 'lib/watir/elements/html_elements.rb', line 954

def base(*args)
  Base.new(self, extract_selector(args).merge(tag_name: "base"))
end

#bases(*args) ⇒ BaseCollection

Returns:


958
959
960
# File 'lib/watir/elements/html_elements.rb', line 958

def bases(*args)
  BaseCollection.new(self, extract_selector(args).merge(tag_name: "base"))
end

#bdi(*args) ⇒ HTMLElement

Returns:


964
965
966
# File 'lib/watir/elements/html_elements.rb', line 964

def bdi(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "bdi"))
end

#bdis(*args) ⇒ HTMLElementCollection


968
969
970
# File 'lib/watir/elements/html_elements.rb', line 968

def bdis(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "bdi"))
end

#bdo(*args) ⇒ HTMLElement

Returns:


974
975
976
# File 'lib/watir/elements/html_elements.rb', line 974

def bdo(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "bdo"))
end

#bdos(*args) ⇒ HTMLElementCollection


978
979
980
# File 'lib/watir/elements/html_elements.rb', line 978

def bdos(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "bdo"))
end

#blockquote(*args) ⇒ Quote

Returns:


984
985
986
# File 'lib/watir/elements/html_elements.rb', line 984

def blockquote(*args)
  Quote.new(self, extract_selector(args).merge(tag_name: "blockquote"))
end

#blockquotes(*args) ⇒ QuoteCollection

Returns:


988
989
990
# File 'lib/watir/elements/html_elements.rb', line 988

def blockquotes(*args)
  QuoteCollection.new(self, extract_selector(args).merge(tag_name: "blockquote"))
end

#body(*args) ⇒ Body

Returns:


994
995
996
# File 'lib/watir/elements/html_elements.rb', line 994

def body(*args)
  Body.new(self, extract_selector(args).merge(tag_name: "body"))
end

#bodys(*args) ⇒ BodyCollection

Returns:


998
999
1000
# File 'lib/watir/elements/html_elements.rb', line 998

def bodys(*args)
  BodyCollection.new(self, extract_selector(args).merge(tag_name: "body"))
end

#br(*args) ⇒ BR

Returns:


1004
1005
1006
# File 'lib/watir/elements/html_elements.rb', line 1004

def br(*args)
  BR.new(self, extract_selector(args).merge(tag_name: "br"))
end

#brs(*args) ⇒ BRCollection

Returns:


1008
1009
1010
# File 'lib/watir/elements/html_elements.rb', line 1008

def brs(*args)
  BRCollection.new(self, extract_selector(args).merge(tag_name: "br"))
end

#bs(*args) ⇒ HTMLElementCollection


948
949
950
# File 'lib/watir/elements/html_elements.rb', line 948

def bs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "b"))
end

#button(*args) ⇒ Button

Returns:


1014
1015
1016
# File 'lib/watir/elements/html_elements.rb', line 1014

def button(*args)
  Button.new(self, extract_selector(args).merge(tag_name: "button"))
end

#buttons(*args) ⇒ ButtonCollection

Returns:


1018
1019
1020
# File 'lib/watir/elements/html_elements.rb', line 1018

def buttons(*args)
  ButtonCollection.new(self, extract_selector(args).merge(tag_name: "button"))
end

#canvas(*args) ⇒ Canvas

Returns:


1024
1025
1026
# File 'lib/watir/elements/html_elements.rb', line 1024

def canvas(*args)
  Canvas.new(self, extract_selector(args).merge(tag_name: "canvas"))
end

#canvases(*args) ⇒ CanvasCollection

Returns:


1028
1029
1030
# File 'lib/watir/elements/html_elements.rb', line 1028

def canvases(*args)
  CanvasCollection.new(self, extract_selector(args).merge(tag_name: "canvas"))
end

#caption(*args) ⇒ TableCaption

Returns:


1034
1035
1036
# File 'lib/watir/elements/html_elements.rb', line 1034

def caption(*args)
  TableCaption.new(self, extract_selector(args).merge(tag_name: "caption"))
end

#captions(*args) ⇒ TableCaptionCollection


1038
1039
1040
# File 'lib/watir/elements/html_elements.rb', line 1038

def captions(*args)
  TableCaptionCollection.new(self, extract_selector(args).merge(tag_name: "caption"))
end

#checkbox(*args) ⇒ Object


43
44
45
# File 'lib/watir/elements/checkbox.rb', line 43

def checkbox(*args)
  CheckBox.new(self, extract_selector(args).merge(tag_name: 'input', type: 'checkbox'))
end

#checkboxes(*args) ⇒ Object


47
48
49
# File 'lib/watir/elements/checkbox.rb', line 47

def checkboxes(*args)
  CheckBoxCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'checkbox'))
end

#circle(*args) ⇒ Circle

Returns:


258
259
260
# File 'lib/watir/elements/svg_elements.rb', line 258

def circle(*args)
  Circle.new(self, extract_selector(args).merge(tag_name: "circle"))
end

#circles(*args) ⇒ CircleCollection

Returns:


262
263
264
# File 'lib/watir/elements/svg_elements.rb', line 262

def circles(*args)
  CircleCollection.new(self, extract_selector(args).merge(tag_name: "circle"))
end

#cite(*args) ⇒ HTMLElement

Returns:


1044
1045
1046
# File 'lib/watir/elements/html_elements.rb', line 1044

def cite(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "cite"))
end

#cites(*args) ⇒ HTMLElementCollection


1048
1049
1050
# File 'lib/watir/elements/html_elements.rb', line 1048

def cites(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "cite"))
end

#code(*args) ⇒ HTMLElement

Returns:


1054
1055
1056
# File 'lib/watir/elements/html_elements.rb', line 1054

def code(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "code"))
end

#codes(*args) ⇒ HTMLElementCollection


1058
1059
1060
# File 'lib/watir/elements/html_elements.rb', line 1058

def codes(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "code"))
end

#col(*args) ⇒ TableCol

Returns:


1064
1065
1066
# File 'lib/watir/elements/html_elements.rb', line 1064

def col(*args)
  TableCol.new(self, extract_selector(args).merge(tag_name: "col"))
end

#colgroup(*args) ⇒ TableCol

Returns:


1074
1075
1076
# File 'lib/watir/elements/html_elements.rb', line 1074

def colgroup(*args)
  TableCol.new(self, extract_selector(args).merge(tag_name: "colgroup"))
end

#colgroups(*args) ⇒ TableColCollection

Returns:


1078
1079
1080
# File 'lib/watir/elements/html_elements.rb', line 1078

def colgroups(*args)
  TableColCollection.new(self, extract_selector(args).merge(tag_name: "colgroup"))
end

#cols(*args) ⇒ TableColCollection

Returns:


1068
1069
1070
# File 'lib/watir/elements/html_elements.rb', line 1068

def cols(*args)
  TableColCollection.new(self, extract_selector(args).merge(tag_name: "col"))
end

#data(*args) ⇒ Data

Returns:


1084
1085
1086
# File 'lib/watir/elements/html_elements.rb', line 1084

def data(*args)
  Data.new(self, extract_selector(args).merge(tag_name: "data"))
end

#datalist(*args) ⇒ DataList

Returns:


1094
1095
1096
# File 'lib/watir/elements/html_elements.rb', line 1094

def datalist(*args)
  DataList.new(self, extract_selector(args).merge(tag_name: "datalist"))
end

#datalists(*args) ⇒ DataListCollection

Returns:


1098
1099
1100
# File 'lib/watir/elements/html_elements.rb', line 1098

def datalists(*args)
  DataListCollection.new(self, extract_selector(args).merge(tag_name: "datalist"))
end

#datas(*args) ⇒ DataCollection

Returns:


1088
1089
1090
# File 'lib/watir/elements/html_elements.rb', line 1088

def datas(*args)
  DataCollection.new(self, extract_selector(args).merge(tag_name: "data"))
end

#date_field(*args) ⇒ Object


21
22
23
# File 'lib/watir/elements/date_field.rb', line 21

def date_field(*args)
  DateField.new(self, extract_selector(args).merge(tag_name: 'input', type: 'date'))
end

#date_fields(*args) ⇒ Object


25
26
27
# File 'lib/watir/elements/date_field.rb', line 25

def date_fields(*args)
  DateFieldCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'date'))
end

#date_time_field(*args) ⇒ Object


21
22
23
# File 'lib/watir/elements/date_time_field.rb', line 21

def date_time_field(*args)
  DateTimeField.new(self, extract_selector(args).merge(tag_name: 'input', type: 'datetime-local'))
end

#date_time_fields(*args) ⇒ Object


25
26
27
# File 'lib/watir/elements/date_time_field.rb', line 25

def date_time_fields(*args)
  DateTimeFieldCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'datetime-local'))
end

#dd(*args) ⇒ HTMLElement

Returns:


1104
1105
1106
# File 'lib/watir/elements/html_elements.rb', line 1104

def dd(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "dd"))
end

#dds(*args) ⇒ HTMLElementCollection


1108
1109
1110
# File 'lib/watir/elements/html_elements.rb', line 1108

def dds(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dd"))
end

#defs(*args) ⇒ Defs

Returns:


268
269
270
# File 'lib/watir/elements/svg_elements.rb', line 268

def defs(*args)
  Defs.new(self, extract_selector(args).merge(tag_name: "defs"))
end

#defss(*args) ⇒ DefsCollection

Returns:


272
273
274
# File 'lib/watir/elements/svg_elements.rb', line 272

def defss(*args)
  DefsCollection.new(self, extract_selector(args).merge(tag_name: "defs"))
end

#del(*args) ⇒ Mod

Returns:


1114
1115
1116
# File 'lib/watir/elements/html_elements.rb', line 1114

def del(*args)
  Mod.new(self, extract_selector(args).merge(tag_name: "del"))
end

#dels(*args) ⇒ ModCollection

Returns:


1118
1119
1120
# File 'lib/watir/elements/html_elements.rb', line 1118

def dels(*args)
  ModCollection.new(self, extract_selector(args).merge(tag_name: "del"))
end

#desc(*args) ⇒ Desc

Returns:


278
279
280
# File 'lib/watir/elements/svg_elements.rb', line 278

def desc(*args)
  Desc.new(self, extract_selector(args).merge(tag_name: "desc"))
end

#descs(*args) ⇒ DescCollection

Returns:


282
283
284
# File 'lib/watir/elements/svg_elements.rb', line 282

def descs(*args)
  DescCollection.new(self, extract_selector(args).merge(tag_name: "desc"))
end

#details(*args) ⇒ Details

Returns:


1124
1125
1126
# File 'lib/watir/elements/html_elements.rb', line 1124

def details(*args)
  Details.new(self, extract_selector(args).merge(tag_name: "details"))
end

#detailses(*args) ⇒ DetailsCollection

Returns:


1128
1129
1130
# File 'lib/watir/elements/html_elements.rb', line 1128

def detailses(*args)
  DetailsCollection.new(self, extract_selector(args).merge(tag_name: "details"))
end

#dfn(*args) ⇒ HTMLElement

Returns:


1134
1135
1136
# File 'lib/watir/elements/html_elements.rb', line 1134

def dfn(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "dfn"))
end

#dfns(*args) ⇒ HTMLElementCollection


1138
1139
1140
# File 'lib/watir/elements/html_elements.rb', line 1138

def dfns(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dfn"))
end

#dialog(*args) ⇒ Dialog

Returns:


1144
1145
1146
# File 'lib/watir/elements/html_elements.rb', line 1144

def dialog(*args)
  Dialog.new(self, extract_selector(args).merge(tag_name: "dialog"))
end

#dialogs(*args) ⇒ DialogCollection

Returns:


1148
1149
1150
# File 'lib/watir/elements/html_elements.rb', line 1148

def dialogs(*args)
  DialogCollection.new(self, extract_selector(args).merge(tag_name: "dialog"))
end

#div(*args) ⇒ Div

Returns:


1154
1155
1156
# File 'lib/watir/elements/html_elements.rb', line 1154

def div(*args)
  Div.new(self, extract_selector(args).merge(tag_name: "div"))
end

#divs(*args) ⇒ DivCollection

Returns:


1158
1159
1160
# File 'lib/watir/elements/html_elements.rb', line 1158

def divs(*args)
  DivCollection.new(self, extract_selector(args).merge(tag_name: "div"))
end

#dl(*args) ⇒ DList

Returns:


1164
1165
1166
# File 'lib/watir/elements/html_elements.rb', line 1164

def dl(*args)
  DList.new(self, extract_selector(args).merge(tag_name: "dl"))
end

#dls(*args) ⇒ DListCollection

Returns:


1168
1169
1170
# File 'lib/watir/elements/html_elements.rb', line 1168

def dls(*args)
  DListCollection.new(self, extract_selector(args).merge(tag_name: "dl"))
end

#dt(*args) ⇒ HTMLElement

Returns:


1174
1175
1176
# File 'lib/watir/elements/html_elements.rb', line 1174

def dt(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "dt"))
end

#dts(*args) ⇒ HTMLElementCollection


1178
1179
1180
# File 'lib/watir/elements/html_elements.rb', line 1178

def dts(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "dt"))
end

#element(*args) ⇒ HTMLElement

Returns element.

Examples:

browser.element(data_bind: 'func')

Returns:


14
15
16
# File 'lib/watir/container.rb', line 14

def element(*args)
  HTMLElement.new(self, extract_selector(args))
end

#elements(*args) ⇒ HTMLElementCollection

Returns element collection.

Examples:

browser.elements(data_bind: 'func')

Returns:


27
28
29
# File 'lib/watir/container.rb', line 27

def elements(*args)
  HTMLElementCollection.new(self, extract_selector(args))
end

#ellipse(*args) ⇒ Ellipse

Returns:


288
289
290
# File 'lib/watir/elements/svg_elements.rb', line 288

def ellipse(*args)
  Ellipse.new(self, extract_selector(args).merge(tag_name: "ellipse"))
end

#ellipses(*args) ⇒ EllipseCollection

Returns:


292
293
294
# File 'lib/watir/elements/svg_elements.rb', line 292

def ellipses(*args)
  EllipseCollection.new(self, extract_selector(args).merge(tag_name: "ellipse"))
end

#em(*args) ⇒ HTMLElement

Returns:


1184
1185
1186
# File 'lib/watir/elements/html_elements.rb', line 1184

def em(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "em"))
end

#embed(*args) ⇒ Embed

Returns:


1194
1195
1196
# File 'lib/watir/elements/html_elements.rb', line 1194

def embed(*args)
  Embed.new(self, extract_selector(args).merge(tag_name: "embed"))
end

#embeds(*args) ⇒ EmbedCollection

Returns:


1198
1199
1200
# File 'lib/watir/elements/html_elements.rb', line 1198

def embeds(*args)
  EmbedCollection.new(self, extract_selector(args).merge(tag_name: "embed"))
end

#ems(*args) ⇒ HTMLElementCollection


1188
1189
1190
# File 'lib/watir/elements/html_elements.rb', line 1188

def ems(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "em"))
end

#extract_selector(selector) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (ArgumentError)

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/watir/container.rb', line 35

def extract_selector(selector)
  case selector.size
  when 2
    msg = "Using ordered parameters to locate elements (:#{selector.first}, #{selector.last.inspect})"
    Watir.logger.deprecate msg,
                           "{#{selector.first}: #{selector.last.inspect}}",
                           ids: [:selector_parameters]
    return {selector[0] => selector[1]}
  when 1
    obj = selector.first
    return obj if obj.is_a? Hash
  when 0
    return {}
  end

  raise ArgumentError, "expected Hash, got #{selector.inspect}"
end

#field_setObject


3
# File 'lib/watir/aliases.rb', line 3

alias field_set fieldset

#field_setsObject


4
# File 'lib/watir/aliases.rb', line 4

alias field_sets fieldsets

#fieldset(*args) ⇒ FieldSet

Returns:


1204
1205
1206
# File 'lib/watir/elements/html_elements.rb', line 1204

def fieldset(*args)
  FieldSet.new(self, extract_selector(args).merge(tag_name: "fieldset"))
end

#fieldsets(*args) ⇒ FieldSetCollection

Returns:


1208
1209
1210
# File 'lib/watir/elements/html_elements.rb', line 1208

def fieldsets(*args)
  FieldSetCollection.new(self, extract_selector(args).merge(tag_name: "fieldset"))
end

#figcaption(*args) ⇒ HTMLElement

Returns:


1214
1215
1216
# File 'lib/watir/elements/html_elements.rb', line 1214

def figcaption(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "figcaption"))
end

#figcaptions(*args) ⇒ HTMLElementCollection


1218
1219
1220
# File 'lib/watir/elements/html_elements.rb', line 1218

def figcaptions(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "figcaption"))
end

#figure(*args) ⇒ HTMLElement

Returns:


1224
1225
1226
# File 'lib/watir/elements/html_elements.rb', line 1224

def figure(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "figure"))
end

#figures(*args) ⇒ HTMLElementCollection


1228
1229
1230
# File 'lib/watir/elements/html_elements.rb', line 1228

def figures(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "figure"))
end

#file_field(*args) ⇒ Object


29
30
31
# File 'lib/watir/elements/file_field.rb', line 29

def file_field(*args)
  FileField.new(self, extract_selector(args).merge(tag_name: 'input', type: 'file'))
end

#file_fields(*args) ⇒ Object


33
34
35
# File 'lib/watir/elements/file_field.rb', line 33

def file_fields(*args)
  FileFieldCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'file'))
end

#font(*args) ⇒ Object


15
16
17
# File 'lib/watir/elements/font.rb', line 15

def font(*args)
  Font.new(self, extract_selector(args).merge(tag_name: 'font'))
end

#fonts(*args) ⇒ Object


19
20
21
# File 'lib/watir/elements/font.rb', line 19

def fonts(*args)
  FontCollection.new(self, extract_selector(args).merge(tag_name: 'font'))
end

Returns:


1234
1235
1236
# File 'lib/watir/elements/html_elements.rb', line 1234

def footer(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "footer"))
end

#footers(*args) ⇒ HTMLElementCollection


1238
1239
1240
# File 'lib/watir/elements/html_elements.rb', line 1238

def footers(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "footer"))
end

#foreign_object(*args) ⇒ ForeignObject

Returns:


298
299
300
# File 'lib/watir/elements/svg_elements.rb', line 298

def foreign_object(*args)
  ForeignObject.new(self, extract_selector(args).merge(tag_name: "foreignObject"))
end

#foreign_objects(*args) ⇒ ForeignObjectCollection


302
303
304
# File 'lib/watir/elements/svg_elements.rb', line 302

def foreign_objects(*args)
  ForeignObjectCollection.new(self, extract_selector(args).merge(tag_name: "foreignObject"))
end

#form(*args) ⇒ Form

Returns:


1244
1245
1246
# File 'lib/watir/elements/html_elements.rb', line 1244

def form(*args)
  Form.new(self, extract_selector(args).merge(tag_name: "form"))
end

#forms(*args) ⇒ FormCollection

Returns:


1248
1249
1250
# File 'lib/watir/elements/html_elements.rb', line 1248

def forms(*args)
  FormCollection.new(self, extract_selector(args).merge(tag_name: "form"))
end

#frame(*args) ⇒ Object


93
94
95
# File 'lib/watir/elements/iframe.rb', line 93

def frame(*args)
  Frame.new(self, extract_selector(args).merge(tag_name: 'frame'))
end

#frames(*args) ⇒ Object


97
98
99
# File 'lib/watir/elements/iframe.rb', line 97

def frames(*args)
  FrameCollection.new(self, extract_selector(args).merge(tag_name: 'frame'))
end

#frameset(*args) ⇒ FrameSet

Returns:


1254
1255
1256
# File 'lib/watir/elements/html_elements.rb', line 1254

def frameset(*args)
  FrameSet.new(self, extract_selector(args).merge(tag_name: "frameset"))
end

#framesets(*args) ⇒ FrameSetCollection

Returns:


1258
1259
1260
# File 'lib/watir/elements/html_elements.rb', line 1258

def framesets(*args)
  FrameSetCollection.new(self, extract_selector(args).merge(tag_name: "frameset"))
end

#g(*args) ⇒ G

Returns:

  • (G)

308
309
310
# File 'lib/watir/elements/svg_elements.rb', line 308

def g(*args)
  G.new(self, extract_selector(args).merge(tag_name: "g"))
end

#gs(*args) ⇒ GCollection

Returns:


312
313
314
# File 'lib/watir/elements/svg_elements.rb', line 312

def gs(*args)
  GCollection.new(self, extract_selector(args).merge(tag_name: "g"))
end

#h1(*args) ⇒ Heading

Returns:


1264
1265
1266
# File 'lib/watir/elements/html_elements.rb', line 1264

def h1(*args)
  Heading.new(self, extract_selector(args).merge(tag_name: "h1"))
end

#h1s(*args) ⇒ HeadingCollection

Returns:


1268
1269
1270
# File 'lib/watir/elements/html_elements.rb', line 1268

def h1s(*args)
  HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h1"))
end

#h2(*args) ⇒ Heading

Returns:


1274
1275
1276
# File 'lib/watir/elements/html_elements.rb', line 1274

def h2(*args)
  Heading.new(self, extract_selector(args).merge(tag_name: "h2"))
end

#h2s(*args) ⇒ HeadingCollection

Returns:


1278
1279
1280
# File 'lib/watir/elements/html_elements.rb', line 1278

def h2s(*args)
  HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h2"))
end

#h3(*args) ⇒ Heading

Returns:


1284
1285
1286
# File 'lib/watir/elements/html_elements.rb', line 1284

def h3(*args)
  Heading.new(self, extract_selector(args).merge(tag_name: "h3"))
end

#h3s(*args) ⇒ HeadingCollection

Returns:


1288
1289
1290
# File 'lib/watir/elements/html_elements.rb', line 1288

def h3s(*args)
  HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h3"))
end

#h4(*args) ⇒ Heading

Returns:


1294
1295
1296
# File 'lib/watir/elements/html_elements.rb', line 1294

def h4(*args)
  Heading.new(self, extract_selector(args).merge(tag_name: "h4"))
end

#h4s(*args) ⇒ HeadingCollection

Returns:


1298
1299
1300
# File 'lib/watir/elements/html_elements.rb', line 1298

def h4s(*args)
  HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h4"))
end

#h5(*args) ⇒ Heading

Returns:


1304
1305
1306
# File 'lib/watir/elements/html_elements.rb', line 1304

def h5(*args)
  Heading.new(self, extract_selector(args).merge(tag_name: "h5"))
end

#h5s(*args) ⇒ HeadingCollection

Returns:


1308
1309
1310
# File 'lib/watir/elements/html_elements.rb', line 1308

def h5s(*args)
  HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h5"))
end

#h6(*args) ⇒ Heading

Returns:


1314
1315
1316
# File 'lib/watir/elements/html_elements.rb', line 1314

def h6(*args)
  Heading.new(self, extract_selector(args).merge(tag_name: "h6"))
end

#h6s(*args) ⇒ HeadingCollection

Returns:


1318
1319
1320
# File 'lib/watir/elements/html_elements.rb', line 1318

def h6s(*args)
  HeadingCollection.new(self, extract_selector(args).merge(tag_name: "h6"))
end

#head(*args) ⇒ Head

Returns:


1324
1325
1326
# File 'lib/watir/elements/html_elements.rb', line 1324

def head(*args)
  Head.new(self, extract_selector(args).merge(tag_name: "head"))
end

#header(*args) ⇒ HTMLElement

Returns:


1334
1335
1336
# File 'lib/watir/elements/html_elements.rb', line 1334

def header(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "header"))
end

#headers(*args) ⇒ HTMLElementCollection


1338
1339
1340
# File 'lib/watir/elements/html_elements.rb', line 1338

def headers(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "header"))
end

#heads(*args) ⇒ HeadCollection

Returns:


1328
1329
1330
# File 'lib/watir/elements/html_elements.rb', line 1328

def heads(*args)
  HeadCollection.new(self, extract_selector(args).merge(tag_name: "head"))
end

#hidden(*args) ⇒ Object


13
14
15
# File 'lib/watir/elements/hidden.rb', line 13

def hidden(*args)
  Hidden.new(self, extract_selector(args).merge(tag_name: 'input', type: 'hidden'))
end

#hiddens(*args) ⇒ Object


17
18
19
# File 'lib/watir/elements/hidden.rb', line 17

def hiddens(*args)
  HiddenCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'hidden'))
end

#hr(*args) ⇒ HR

Returns:


1344
1345
1346
# File 'lib/watir/elements/html_elements.rb', line 1344

def hr(*args)
  HR.new(self, extract_selector(args).merge(tag_name: "hr"))
end

#hrs(*args) ⇒ HRCollection

Returns:


1348
1349
1350
# File 'lib/watir/elements/html_elements.rb', line 1348

def hrs(*args)
  HRCollection.new(self, extract_selector(args).merge(tag_name: "hr"))
end

#html(*args) ⇒ Html

Returns:


1354
1355
1356
# File 'lib/watir/elements/html_elements.rb', line 1354

def html(*args)
  Html.new(self, extract_selector(args).merge(tag_name: "html"))
end

#htmls(*args) ⇒ HtmlCollection

Returns:


1358
1359
1360
# File 'lib/watir/elements/html_elements.rb', line 1358

def htmls(*args)
  HtmlCollection.new(self, extract_selector(args).merge(tag_name: "html"))
end

#i(*args) ⇒ HTMLElement

Returns:


1364
1365
1366
# File 'lib/watir/elements/html_elements.rb', line 1364

def i(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "i"))
end

#iframe(*args) ⇒ IFrame

Returns:


1374
1375
1376
# File 'lib/watir/elements/html_elements.rb', line 1374

def iframe(*args)
  IFrame.new(self, extract_selector(args).merge(tag_name: "iframe"))
end

#iframes(*args) ⇒ IFrameCollection

Returns:


1378
1379
1380
# File 'lib/watir/elements/html_elements.rb', line 1378

def iframes(*args)
  IFrameCollection.new(self, extract_selector(args).merge(tag_name: "iframe"))
end

#imageObject


17
# File 'lib/watir/elements/image.rb', line 17

alias image img

#imagesObject


18
# File 'lib/watir/elements/image.rb', line 18

alias images imgs

#img(*args) ⇒ Image

Returns:


1384
1385
1386
# File 'lib/watir/elements/html_elements.rb', line 1384

def img(*args)
  Image.new(self, extract_selector(args).merge(tag_name: "img"))
end

#imgs(*args) ⇒ ImageCollection

Returns:


1388
1389
1390
# File 'lib/watir/elements/html_elements.rb', line 1388

def imgs(*args)
  ImageCollection.new(self, extract_selector(args).merge(tag_name: "img"))
end

#input(*args) ⇒ Input

Returns:


1394
1395
1396
# File 'lib/watir/elements/html_elements.rb', line 1394

def input(*args)
  Input.new(self, extract_selector(args).merge(tag_name: "input"))
end

#inputs(*args) ⇒ InputCollection

Returns:


1398
1399
1400
# File 'lib/watir/elements/html_elements.rb', line 1398

def inputs(*args)
  InputCollection.new(self, extract_selector(args).merge(tag_name: "input"))
end

#ins(*args) ⇒ Mod

Returns:


1404
1405
1406
# File 'lib/watir/elements/html_elements.rb', line 1404

def ins(*args)
  Mod.new(self, extract_selector(args).merge(tag_name: "ins"))
end

#inses(*args) ⇒ ModCollection

Returns:


1408
1409
1410
# File 'lib/watir/elements/html_elements.rb', line 1408

def inses(*args)
  ModCollection.new(self, extract_selector(args).merge(tag_name: "ins"))
end

#is(*args) ⇒ HTMLElementCollection


1368
1369
1370
# File 'lib/watir/elements/html_elements.rb', line 1368

def is(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "i"))
end

#kbd(*args) ⇒ HTMLElement

Returns:


1414
1415
1416
# File 'lib/watir/elements/html_elements.rb', line 1414

def kbd(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "kbd"))
end

#kbds(*args) ⇒ HTMLElementCollection


1418
1419
1420
# File 'lib/watir/elements/html_elements.rb', line 1418

def kbds(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "kbd"))
end

#label(*args) ⇒ Label

Returns:


1424
1425
1426
# File 'lib/watir/elements/html_elements.rb', line 1424

def label(*args)
  Label.new(self, extract_selector(args).merge(tag_name: "label"))
end

#labels(*args) ⇒ LabelCollection

Returns:


1428
1429
1430
# File 'lib/watir/elements/html_elements.rb', line 1428

def labels(*args)
  LabelCollection.new(self, extract_selector(args).merge(tag_name: "label"))
end

#legend(*args) ⇒ Legend

Returns:


1434
1435
1436
# File 'lib/watir/elements/html_elements.rb', line 1434

def legend(*args)
  Legend.new(self, extract_selector(args).merge(tag_name: "legend"))
end

#legends(*args) ⇒ LegendCollection

Returns:


1438
1439
1440
# File 'lib/watir/elements/html_elements.rb', line 1438

def legends(*args)
  LegendCollection.new(self, extract_selector(args).merge(tag_name: "legend"))
end

#li(*args) ⇒ LI

Returns:


1444
1445
1446
# File 'lib/watir/elements/html_elements.rb', line 1444

def li(*args)
  LI.new(self, extract_selector(args).merge(tag_name: "li"))
end

#line(*args) ⇒ Line

Returns:


318
319
320
# File 'lib/watir/elements/svg_elements.rb', line 318

def line(*args)
  Line.new(self, extract_selector(args).merge(tag_name: "line"))
end

#linear_gradient(*args) ⇒ LinearGradient

Returns:


328
329
330
# File 'lib/watir/elements/svg_elements.rb', line 328

def linear_gradient(*args)
  LinearGradient.new(self, extract_selector(args).merge(tag_name: "linearGradient"))
end

#linear_gradients(*args) ⇒ LinearGradientCollection


332
333
334
# File 'lib/watir/elements/svg_elements.rb', line 332

def linear_gradients(*args)
  LinearGradientCollection.new(self, extract_selector(args).merge(tag_name: "linearGradient"))
end

#lines(*args) ⇒ LineCollection

Returns:


322
323
324
# File 'lib/watir/elements/svg_elements.rb', line 322

def lines(*args)
  LineCollection.new(self, extract_selector(args).merge(tag_name: "line"))
end

3
# File 'lib/watir/elements/link.rb', line 3

alias link a

4
# File 'lib/watir/elements/link.rb', line 4

alias links as

#lis(*args) ⇒ LICollection

Returns:


1448
1449
1450
# File 'lib/watir/elements/html_elements.rb', line 1448

def lis(*args)
  LICollection.new(self, extract_selector(args).merge(tag_name: "li"))
end

#main(*args) ⇒ HTMLElement

Returns:


1454
1455
1456
# File 'lib/watir/elements/html_elements.rb', line 1454

def main(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "main"))
end

#mains(*args) ⇒ HTMLElementCollection


1458
1459
1460
# File 'lib/watir/elements/html_elements.rb', line 1458

def mains(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "main"))
end

#map(*args) ⇒ Map

Returns:


1464
1465
1466
# File 'lib/watir/elements/html_elements.rb', line 1464

def map(*args)
  Map.new(self, extract_selector(args).merge(tag_name: "map"))
end

#maps(*args) ⇒ MapCollection

Returns:


1468
1469
1470
# File 'lib/watir/elements/html_elements.rb', line 1468

def maps(*args)
  MapCollection.new(self, extract_selector(args).merge(tag_name: "map"))
end

#mark(*args) ⇒ HTMLElement

Returns:


1474
1475
1476
# File 'lib/watir/elements/html_elements.rb', line 1474

def mark(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "mark"))
end

#marker(*args) ⇒ Marker

Returns:


338
339
340
# File 'lib/watir/elements/svg_elements.rb', line 338

def marker(*args)
  Marker.new(self, extract_selector(args).merge(tag_name: "marker"))
end

#markers(*args) ⇒ MarkerCollection

Returns:


342
343
344
# File 'lib/watir/elements/svg_elements.rb', line 342

def markers(*args)
  MarkerCollection.new(self, extract_selector(args).merge(tag_name: "marker"))
end

#marks(*args) ⇒ HTMLElementCollection


1478
1479
1480
# File 'lib/watir/elements/html_elements.rb', line 1478

def marks(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "mark"))
end

#meta(*args) ⇒ Meta

Returns:


1484
1485
1486
# File 'lib/watir/elements/html_elements.rb', line 1484

def meta(*args)
  Meta.new(self, extract_selector(args).merge(tag_name: "meta"))
end

#metadata(*args) ⇒ Metadata

Returns:


348
349
350
# File 'lib/watir/elements/svg_elements.rb', line 348

def (*args)
  .new(self, extract_selector(args).merge(tag_name: "metadata"))
end

#metadatas(*args) ⇒ MetadataCollection

Returns:


352
353
354
# File 'lib/watir/elements/svg_elements.rb', line 352

def metadatas(*args)
  MetadataCollection.new(self, extract_selector(args).merge(tag_name: "metadata"))
end

#metas(*args) ⇒ MetaCollection

Returns:


1488
1489
1490
# File 'lib/watir/elements/html_elements.rb', line 1488

def metas(*args)
  MetaCollection.new(self, extract_selector(args).merge(tag_name: "meta"))
end

#meter(*args) ⇒ Meter

Returns:


1494
1495
1496
# File 'lib/watir/elements/html_elements.rb', line 1494

def meter(*args)
  Meter.new(self, extract_selector(args).merge(tag_name: "meter"))
end

#meters(*args) ⇒ MeterCollection

Returns:


1498
1499
1500
# File 'lib/watir/elements/html_elements.rb', line 1498

def meters(*args)
  MeterCollection.new(self, extract_selector(args).merge(tag_name: "meter"))
end

Returns:


1504
1505
1506
# File 'lib/watir/elements/html_elements.rb', line 1504

def nav(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "nav"))
end

1508
1509
1510
# File 'lib/watir/elements/html_elements.rb', line 1508

def navs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "nav"))
end

#noscript(*args) ⇒ HTMLElement

Returns:


1514
1515
1516
# File 'lib/watir/elements/html_elements.rb', line 1514

def noscript(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "noscript"))
end

#noscripts(*args) ⇒ HTMLElementCollection


1518
1519
1520
# File 'lib/watir/elements/html_elements.rb', line 1518

def noscripts(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "noscript"))
end

#object(*args) ⇒ Object

Returns:


1524
1525
1526
# File 'lib/watir/elements/html_elements.rb', line 1524

def object(*args)
  Object.new(self, extract_selector(args).merge(tag_name: "object"))
end

#objects(*args) ⇒ ObjectCollection

Returns:


1528
1529
1530
# File 'lib/watir/elements/html_elements.rb', line 1528

def objects(*args)
  ObjectCollection.new(self, extract_selector(args).merge(tag_name: "object"))
end

#ol(*args) ⇒ OList

Returns:


1534
1535
1536
# File 'lib/watir/elements/html_elements.rb', line 1534

def ol(*args)
  OList.new(self, extract_selector(args).merge(tag_name: "ol"))
end

#ols(*args) ⇒ OListCollection

Returns:


1538
1539
1540
# File 'lib/watir/elements/html_elements.rb', line 1538

def ols(*args)
  OListCollection.new(self, extract_selector(args).merge(tag_name: "ol"))
end

#optgroup(*args) ⇒ OptGroup

Returns:


1544
1545
1546
# File 'lib/watir/elements/html_elements.rb', line 1544

def optgroup(*args)
  OptGroup.new(self, extract_selector(args).merge(tag_name: "optgroup"))
end

#optgroups(*args) ⇒ OptGroupCollection

Returns:


1548
1549
1550
# File 'lib/watir/elements/html_elements.rb', line 1548

def optgroups(*args)
  OptGroupCollection.new(self, extract_selector(args).merge(tag_name: "optgroup"))
end

#option(*args) ⇒ Option

Returns:


1554
1555
1556
# File 'lib/watir/elements/html_elements.rb', line 1554

def option(*args)
  Option.new(self, extract_selector(args).merge(tag_name: "option"))
end

#options(*args) ⇒ OptionCollection

Returns:


1558
1559
1560
# File 'lib/watir/elements/html_elements.rb', line 1558

def options(*args)
  OptionCollection.new(self, extract_selector(args).merge(tag_name: "option"))
end

#output(*args) ⇒ Output

Returns:


1564
1565
1566
# File 'lib/watir/elements/html_elements.rb', line 1564

def output(*args)
  Output.new(self, extract_selector(args).merge(tag_name: "output"))
end

#outputs(*args) ⇒ OutputCollection

Returns:


1568
1569
1570
# File 'lib/watir/elements/html_elements.rb', line 1568

def outputs(*args)
  OutputCollection.new(self, extract_selector(args).merge(tag_name: "output"))
end

#p(*args) ⇒ Paragraph

Returns:


1574
1575
1576
# File 'lib/watir/elements/html_elements.rb', line 1574

def p(*args)
  Paragraph.new(self, extract_selector(args).merge(tag_name: "p"))
end

#param(*args) ⇒ Param

Returns:


1584
1585
1586
# File 'lib/watir/elements/html_elements.rb', line 1584

def param(*args)
  Param.new(self, extract_selector(args).merge(tag_name: "param"))
end

#params(*args) ⇒ ParamCollection

Returns:


1588
1589
1590
# File 'lib/watir/elements/html_elements.rb', line 1588

def params(*args)
  ParamCollection.new(self, extract_selector(args).merge(tag_name: "param"))
end

#path(*args) ⇒ Path

Returns:


358
359
360
# File 'lib/watir/elements/svg_elements.rb', line 358

def path(*args)
  Path.new(self, extract_selector(args).merge(tag_name: "path"))
end

#paths(*args) ⇒ PathCollection

Returns:


362
363
364
# File 'lib/watir/elements/svg_elements.rb', line 362

def paths(*args)
  PathCollection.new(self, extract_selector(args).merge(tag_name: "path"))
end

#pattern(*args) ⇒ Pattern

Returns:


368
369
370
# File 'lib/watir/elements/svg_elements.rb', line 368

def pattern(*args)
  Pattern.new(self, extract_selector(args).merge(tag_name: "pattern"))
end

#patterns(*args) ⇒ PatternCollection

Returns:


372
373
374
# File 'lib/watir/elements/svg_elements.rb', line 372

def patterns(*args)
  PatternCollection.new(self, extract_selector(args).merge(tag_name: "pattern"))
end

#picture(*args) ⇒ Picture

Returns:


1594
1595
1596
# File 'lib/watir/elements/html_elements.rb', line 1594

def picture(*args)
  Picture.new(self, extract_selector(args).merge(tag_name: "picture"))
end

#pictures(*args) ⇒ PictureCollection

Returns:


1598
1599
1600
# File 'lib/watir/elements/html_elements.rb', line 1598

def pictures(*args)
  PictureCollection.new(self, extract_selector(args).merge(tag_name: "picture"))
end

#polygon(*args) ⇒ Polygon

Returns:


378
379
380
# File 'lib/watir/elements/svg_elements.rb', line 378

def polygon(*args)
  Polygon.new(self, extract_selector(args).merge(tag_name: "polygon"))
end

#polygons(*args) ⇒ PolygonCollection

Returns:


382
383
384
# File 'lib/watir/elements/svg_elements.rb', line 382

def polygons(*args)
  PolygonCollection.new(self, extract_selector(args).merge(tag_name: "polygon"))
end

#polyline(*args) ⇒ Polyline

Returns:


388
389
390
# File 'lib/watir/elements/svg_elements.rb', line 388

def polyline(*args)
  Polyline.new(self, extract_selector(args).merge(tag_name: "polyline"))
end

#polylines(*args) ⇒ PolylineCollection

Returns:


392
393
394
# File 'lib/watir/elements/svg_elements.rb', line 392

def polylines(*args)
  PolylineCollection.new(self, extract_selector(args).merge(tag_name: "polyline"))
end

#pre(*args) ⇒ Pre

Returns:


1604
1605
1606
# File 'lib/watir/elements/html_elements.rb', line 1604

def pre(*args)
  Pre.new(self, extract_selector(args).merge(tag_name: "pre"))
end

#pres(*args) ⇒ PreCollection

Returns:


1608
1609
1610
# File 'lib/watir/elements/html_elements.rb', line 1608

def pres(*args)
  PreCollection.new(self, extract_selector(args).merge(tag_name: "pre"))
end

#progress(*args) ⇒ Progress

Returns:


1614
1615
1616
# File 'lib/watir/elements/html_elements.rb', line 1614

def progress(*args)
  Progress.new(self, extract_selector(args).merge(tag_name: "progress"))
end

#progresses(*args) ⇒ ProgressCollection

Returns:


1618
1619
1620
# File 'lib/watir/elements/html_elements.rb', line 1618

def progresses(*args)
  ProgressCollection.new(self, extract_selector(args).merge(tag_name: "progress"))
end

#ps(*args) ⇒ ParagraphCollection

Returns:


1578
1579
1580
# File 'lib/watir/elements/html_elements.rb', line 1578

def ps(*args)
  ParagraphCollection.new(self, extract_selector(args).merge(tag_name: "p"))
end

#q(*args) ⇒ Quote

Returns:


1624
1625
1626
# File 'lib/watir/elements/html_elements.rb', line 1624

def q(*args)
  Quote.new(self, extract_selector(args).merge(tag_name: "q"))
end

#qs(*args) ⇒ QuoteCollection

Returns:


1628
1629
1630
# File 'lib/watir/elements/html_elements.rb', line 1628

def qs(*args)
  QuoteCollection.new(self, extract_selector(args).merge(tag_name: "q"))
end

#radial_gradient(*args) ⇒ RadialGradient

Returns:


398
399
400
# File 'lib/watir/elements/svg_elements.rb', line 398

def radial_gradient(*args)
  RadialGradient.new(self, extract_selector(args).merge(tag_name: "radialGradient"))
end

#radial_gradients(*args) ⇒ RadialGradientCollection


402
403
404
# File 'lib/watir/elements/svg_elements.rb', line 402

def radial_gradients(*args)
  RadialGradientCollection.new(self, extract_selector(args).merge(tag_name: "radialGradient"))
end

#radio(*args) ⇒ Object


42
43
44
# File 'lib/watir/elements/radio.rb', line 42

def radio(*args)
  Radio.new(self, extract_selector(args).merge(tag_name: 'input', type: 'radio'))
end

#radio_set(*args) ⇒ Object


221
222
223
# File 'lib/watir/radio_set.rb', line 221

def radio_set(*args)
  RadioSet.new(self, extract_selector(args).merge(tag_name: 'input', type: 'radio'))
end

#radios(*args) ⇒ Object


46
47
48
# File 'lib/watir/elements/radio.rb', line 46

def radios(*args)
  RadioCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'radio'))
end

#rb(*args) ⇒ HTMLElement

Returns:


1634
1635
1636
# File 'lib/watir/elements/html_elements.rb', line 1634

def rb(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "rb"))
end

#rbs(*args) ⇒ HTMLElementCollection


1638
1639
1640
# File 'lib/watir/elements/html_elements.rb', line 1638

def rbs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rb"))
end

#rect(*args) ⇒ Rect

Returns:


408
409
410
# File 'lib/watir/elements/svg_elements.rb', line 408

def rect(*args)
  Rect.new(self, extract_selector(args).merge(tag_name: "rect"))
end

#rects(*args) ⇒ RectCollection

Returns:


412
413
414
# File 'lib/watir/elements/svg_elements.rb', line 412

def rects(*args)
  RectCollection.new(self, extract_selector(args).merge(tag_name: "rect"))
end

#rp(*args) ⇒ HTMLElement

Returns:


1644
1645
1646
# File 'lib/watir/elements/html_elements.rb', line 1644

def rp(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "rp"))
end

#rps(*args) ⇒ HTMLElementCollection


1648
1649
1650
# File 'lib/watir/elements/html_elements.rb', line 1648

def rps(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rp"))
end

#rt(*args) ⇒ HTMLElement

Returns:


1654
1655
1656
# File 'lib/watir/elements/html_elements.rb', line 1654

def rt(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "rt"))
end

#rtc(*args) ⇒ HTMLElement

Returns:


1664
1665
1666
# File 'lib/watir/elements/html_elements.rb', line 1664

def rtc(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "rtc"))
end

#rtcs(*args) ⇒ HTMLElementCollection


1668
1669
1670
# File 'lib/watir/elements/html_elements.rb', line 1668

def rtcs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rtc"))
end

#rts(*args) ⇒ HTMLElementCollection


1658
1659
1660
# File 'lib/watir/elements/html_elements.rb', line 1658

def rts(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "rt"))
end

#rubies(*args) ⇒ HTMLElementCollection


1678
1679
1680
# File 'lib/watir/elements/html_elements.rb', line 1678

def rubies(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "ruby"))
end

#ruby(*args) ⇒ HTMLElement

Returns:


1674
1675
1676
# File 'lib/watir/elements/html_elements.rb', line 1674

def ruby(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "ruby"))
end

#s(*args) ⇒ HTMLElement

Returns:


1684
1685
1686
# File 'lib/watir/elements/html_elements.rb', line 1684

def s(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "s"))
end

#samp(*args) ⇒ HTMLElement

Returns:


1694
1695
1696
# File 'lib/watir/elements/html_elements.rb', line 1694

def samp(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "samp"))
end

#samps(*args) ⇒ HTMLElementCollection


1698
1699
1700
# File 'lib/watir/elements/html_elements.rb', line 1698

def samps(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "samp"))
end

#script(*args) ⇒ Script

Returns:


1704
1705
1706
# File 'lib/watir/elements/html_elements.rb', line 1704

def script(*args)
  Script.new(self, extract_selector(args).merge(tag_name: "script"))
end

#scripts(*args) ⇒ ScriptCollection

Returns:


1708
1709
1710
# File 'lib/watir/elements/html_elements.rb', line 1708

def scripts(*args)
  ScriptCollection.new(self, extract_selector(args).merge(tag_name: "script"))
end

#section(*args) ⇒ HTMLElement

Returns:


1714
1715
1716
# File 'lib/watir/elements/html_elements.rb', line 1714

def section(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "section"))
end

#sections(*args) ⇒ HTMLElementCollection


1718
1719
1720
# File 'lib/watir/elements/html_elements.rb', line 1718

def sections(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "section"))
end

#select(*args) ⇒ Select

Returns:


1724
1725
1726
# File 'lib/watir/elements/html_elements.rb', line 1724

def select(*args)
  Select.new(self, extract_selector(args).merge(tag_name: "select"))
end

#select_listObject


235
# File 'lib/watir/elements/select.rb', line 235

alias select_list select

#select_listsObject


236
# File 'lib/watir/elements/select.rb', line 236

alias select_lists selects

#selects(*args) ⇒ SelectCollection

Returns:


1728
1729
1730
# File 'lib/watir/elements/html_elements.rb', line 1728

def selects(*args)
  SelectCollection.new(self, extract_selector(args).merge(tag_name: "select"))
end

#small(*args) ⇒ HTMLElement

Returns:


1734
1735
1736
# File 'lib/watir/elements/html_elements.rb', line 1734

def small(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "small"))
end

#smalls(*args) ⇒ HTMLElementCollection


1738
1739
1740
# File 'lib/watir/elements/html_elements.rb', line 1738

def smalls(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "small"))
end

#source(*args) ⇒ Source

Returns:


1744
1745
1746
# File 'lib/watir/elements/html_elements.rb', line 1744

def source(*args)
  Source.new(self, extract_selector(args).merge(tag_name: "source"))
end

#sources(*args) ⇒ SourceCollection

Returns:


1748
1749
1750
# File 'lib/watir/elements/html_elements.rb', line 1748

def sources(*args)
  SourceCollection.new(self, extract_selector(args).merge(tag_name: "source"))
end

#span(*args) ⇒ Span

Returns:


1754
1755
1756
# File 'lib/watir/elements/html_elements.rb', line 1754

def span(*args)
  Span.new(self, extract_selector(args).merge(tag_name: "span"))
end

#spans(*args) ⇒ SpanCollection

Returns:


1758
1759
1760
# File 'lib/watir/elements/html_elements.rb', line 1758

def spans(*args)
  SpanCollection.new(self, extract_selector(args).merge(tag_name: "span"))
end

#ss(*args) ⇒ HTMLElementCollection


1688
1689
1690
# File 'lib/watir/elements/html_elements.rb', line 1688

def ss(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "s"))
end

#stop(*args) ⇒ Stop

Returns:


418
419
420
# File 'lib/watir/elements/svg_elements.rb', line 418

def stop(*args)
  Stop.new(self, extract_selector(args).merge(tag_name: "stop"))
end

#stops(*args) ⇒ StopCollection

Returns:


422
423
424
# File 'lib/watir/elements/svg_elements.rb', line 422

def stops(*args)
  StopCollection.new(self, extract_selector(args).merge(tag_name: "stop"))
end

#strong(*args) ⇒ HTMLElement

Returns:


1764
1765
1766
# File 'lib/watir/elements/html_elements.rb', line 1764

def strong(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "strong"))
end

#strongs(*args) ⇒ HTMLElementCollection


1768
1769
1770
# File 'lib/watir/elements/html_elements.rb', line 1768

def strongs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "strong"))
end

#style(*args) ⇒ Style

Returns:


1774
1775
1776
# File 'lib/watir/elements/html_elements.rb', line 1774

def style(*args)
  Style.new(self, extract_selector(args).merge(tag_name: "style"))
end

#styles(*args) ⇒ StyleCollection

Returns:


1778
1779
1780
# File 'lib/watir/elements/html_elements.rb', line 1778

def styles(*args)
  StyleCollection.new(self, extract_selector(args).merge(tag_name: "style"))
end

#sub(*args) ⇒ HTMLElement

Returns:


1784
1785
1786
# File 'lib/watir/elements/html_elements.rb', line 1784

def sub(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "sub"))
end

#subs(*args) ⇒ HTMLElementCollection


1788
1789
1790
# File 'lib/watir/elements/html_elements.rb', line 1788

def subs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "sub"))
end

#summaries(*args) ⇒ HTMLElementCollection


1798
1799
1800
# File 'lib/watir/elements/html_elements.rb', line 1798

def summaries(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "summary"))
end

#summary(*args) ⇒ HTMLElement

Returns:


1794
1795
1796
# File 'lib/watir/elements/html_elements.rb', line 1794

def summary(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "summary"))
end

#sup(*args) ⇒ HTMLElement

Returns:


1804
1805
1806
# File 'lib/watir/elements/html_elements.rb', line 1804

def sup(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "sup"))
end

#sups(*args) ⇒ HTMLElementCollection


1808
1809
1810
# File 'lib/watir/elements/html_elements.rb', line 1808

def sups(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "sup"))
end

#svg(*args) ⇒ SVG

Returns:


428
429
430
# File 'lib/watir/elements/svg_elements.rb', line 428

def svg(*args)
  SVG.new(self, extract_selector(args).merge(tag_name: "svg"))
end

#svgs(*args) ⇒ SVGCollection

Returns:


432
433
434
# File 'lib/watir/elements/svg_elements.rb', line 432

def svgs(*args)
  SVGCollection.new(self, extract_selector(args).merge(tag_name: "svg"))
end

#switch(*args) ⇒ Switch

Returns:


438
439
440
# File 'lib/watir/elements/svg_elements.rb', line 438

def switch(*args)
  Switch.new(self, extract_selector(args).merge(tag_name: "switch"))
end

#switches(*args) ⇒ SwitchCollection

Returns:


442
443
444
# File 'lib/watir/elements/svg_elements.rb', line 442

def switches(*args)
  SwitchCollection.new(self, extract_selector(args).merge(tag_name: "switch"))
end

#symbol(*args) ⇒ Symbol

Returns:


448
449
450
# File 'lib/watir/elements/svg_elements.rb', line 448

def symbol(*args)
  Symbol.new(self, extract_selector(args).merge(tag_name: "symbol"))
end

#symbols(*args) ⇒ SymbolCollection

Returns:


452
453
454
# File 'lib/watir/elements/svg_elements.rb', line 452

def symbols(*args)
  SymbolCollection.new(self, extract_selector(args).merge(tag_name: "symbol"))
end

#table(*args) ⇒ Table

Returns:


1814
1815
1816
# File 'lib/watir/elements/html_elements.rb', line 1814

def table(*args)
  Table.new(self, extract_selector(args).merge(tag_name: "table"))
end

#tables(*args) ⇒ TableCollection

Returns:


1818
1819
1820
# File 'lib/watir/elements/html_elements.rb', line 1818

def tables(*args)
  TableCollection.new(self, extract_selector(args).merge(tag_name: "table"))
end

#tbody(*args) ⇒ TableSection

Returns:


1824
1825
1826
# File 'lib/watir/elements/html_elements.rb', line 1824

def tbody(*args)
  TableSection.new(self, extract_selector(args).merge(tag_name: "tbody"))
end

#tbodys(*args) ⇒ TableSectionCollection


1828
1829
1830
# File 'lib/watir/elements/html_elements.rb', line 1828

def tbodys(*args)
  TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "tbody"))
end

#td(*args) ⇒ TableDataCell

Returns:


1834
1835
1836
# File 'lib/watir/elements/html_elements.rb', line 1834

def td(*args)
  TableDataCell.new(self, extract_selector(args).merge(tag_name: "td"))
end

#tds(*args) ⇒ TableDataCellCollection


1838
1839
1840
# File 'lib/watir/elements/html_elements.rb', line 1838

def tds(*args)
  TableDataCellCollection.new(self, extract_selector(args).merge(tag_name: "td"))
end

#template(*args) ⇒ Template

Returns:


1844
1845
1846
# File 'lib/watir/elements/html_elements.rb', line 1844

def template(*args)
  Template.new(self, extract_selector(args).merge(tag_name: "template"))
end

#templates(*args) ⇒ TemplateCollection

Returns:


1848
1849
1850
# File 'lib/watir/elements/html_elements.rb', line 1848

def templates(*args)
  TemplateCollection.new(self, extract_selector(args).merge(tag_name: "template"))
end

#text_field(*args) ⇒ Object


21
22
23
# File 'lib/watir/elements/text_field.rb', line 21

def text_field(*args)
  TextField.new(self, extract_selector(args).merge(tag_name: 'input'))
end

#text_fields(*args) ⇒ Object


25
26
27
# File 'lib/watir/elements/text_field.rb', line 25

def text_fields(*args)
  TextFieldCollection.new(self, extract_selector(args).merge(tag_name: 'input'))
end

#text_path(*args) ⇒ TextPath

Returns:


458
459
460
# File 'lib/watir/elements/svg_elements.rb', line 458

def text_path(*args)
  TextPath.new(self, extract_selector(args).merge(tag_name: "textPath"))
end

#text_paths(*args) ⇒ TextPathCollection

Returns:


462
463
464
# File 'lib/watir/elements/svg_elements.rb', line 462

def text_paths(*args)
  TextPathCollection.new(self, extract_selector(args).merge(tag_name: "textPath"))
end

#textarea(*args) ⇒ TextArea

Returns:


1854
1855
1856
# File 'lib/watir/elements/html_elements.rb', line 1854

def textarea(*args)
  TextArea.new(self, extract_selector(args).merge(tag_name: "textarea"))
end

#textareas(*args) ⇒ TextAreaCollection

Returns:


1858
1859
1860
# File 'lib/watir/elements/html_elements.rb', line 1858

def textareas(*args)
  TextAreaCollection.new(self, extract_selector(args).merge(tag_name: "textarea"))
end

#tfoot(*args) ⇒ TableSection

Returns:


1864
1865
1866
# File 'lib/watir/elements/html_elements.rb', line 1864

def tfoot(*args)
  TableSection.new(self, extract_selector(args).merge(tag_name: "tfoot"))
end

#tfoots(*args) ⇒ TableSectionCollection


1868
1869
1870
# File 'lib/watir/elements/html_elements.rb', line 1868

def tfoots(*args)
  TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "tfoot"))
end

#th(*args) ⇒ TableHeaderCell

Returns:


1874
1875
1876
# File 'lib/watir/elements/html_elements.rb', line 1874

def th(*args)
  TableHeaderCell.new(self, extract_selector(args).merge(tag_name: "th"))
end

#thead(*args) ⇒ TableSection

Returns:


1884
1885
1886
# File 'lib/watir/elements/html_elements.rb', line 1884

def thead(*args)
  TableSection.new(self, extract_selector(args).merge(tag_name: "thead"))
end

#theads(*args) ⇒ TableSectionCollection


1888
1889
1890
# File 'lib/watir/elements/html_elements.rb', line 1888

def theads(*args)
  TableSectionCollection.new(self, extract_selector(args).merge(tag_name: "thead"))
end

#ths(*args) ⇒ TableHeaderCellCollection


1878
1879
1880
# File 'lib/watir/elements/html_elements.rb', line 1878

def ths(*args)
  TableHeaderCellCollection.new(self, extract_selector(args).merge(tag_name: "th"))
end

#time(*args) ⇒ Time

Returns:


1894
1895
1896
# File 'lib/watir/elements/html_elements.rb', line 1894

def time(*args)
  Time.new(self, extract_selector(args).merge(tag_name: "time"))
end

#times(*args) ⇒ TimeCollection

Returns:


1898
1899
1900
# File 'lib/watir/elements/html_elements.rb', line 1898

def times(*args)
  TimeCollection.new(self, extract_selector(args).merge(tag_name: "time"))
end

#title(*args) ⇒ Title

Returns:


1904
1905
1906
# File 'lib/watir/elements/html_elements.rb', line 1904

def title(*args)
  Title.new(self, extract_selector(args).merge(tag_name: "title"))
end

#titles(*args) ⇒ TitleCollection

Returns:


1908
1909
1910
# File 'lib/watir/elements/html_elements.rb', line 1908

def titles(*args)
  TitleCollection.new(self, extract_selector(args).merge(tag_name: "title"))
end

#tr(*args) ⇒ TableRow

Returns:


1914
1915
1916
# File 'lib/watir/elements/html_elements.rb', line 1914

def tr(*args)
  TableRow.new(self, extract_selector(args).merge(tag_name: "tr"))
end

#track(*args) ⇒ Track

Returns:


1924
1925
1926
# File 'lib/watir/elements/html_elements.rb', line 1924

def track(*args)
  Track.new(self, extract_selector(args).merge(tag_name: "track"))
end

#tracks(*args) ⇒ TrackCollection

Returns:


1928
1929
1930
# File 'lib/watir/elements/html_elements.rb', line 1928

def tracks(*args)
  TrackCollection.new(self, extract_selector(args).merge(tag_name: "track"))
end

#trs(*args) ⇒ TableRowCollection

Returns:


1918
1919
1920
# File 'lib/watir/elements/html_elements.rb', line 1918

def trs(*args)
  TableRowCollection.new(self, extract_selector(args).merge(tag_name: "tr"))
end

#tspan(*args) ⇒ TSpan

Returns:


468
469
470
# File 'lib/watir/elements/svg_elements.rb', line 468

def tspan(*args)
  TSpan.new(self, extract_selector(args).merge(tag_name: "tspan"))
end

#tspans(*args) ⇒ TSpanCollection

Returns:


472
473
474
# File 'lib/watir/elements/svg_elements.rb', line 472

def tspans(*args)
  TSpanCollection.new(self, extract_selector(args).merge(tag_name: "tspan"))
end

#u(*args) ⇒ HTMLElement

Returns:


1934
1935
1936
# File 'lib/watir/elements/html_elements.rb', line 1934

def u(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "u"))
end

#ul(*args) ⇒ UList

Returns:


1944
1945
1946
# File 'lib/watir/elements/html_elements.rb', line 1944

def ul(*args)
  UList.new(self, extract_selector(args).merge(tag_name: "ul"))
end

#uls(*args) ⇒ UListCollection

Returns:


1948
1949
1950
# File 'lib/watir/elements/html_elements.rb', line 1948

def uls(*args)
  UListCollection.new(self, extract_selector(args).merge(tag_name: "ul"))
end

#us(*args) ⇒ HTMLElementCollection


1938
1939
1940
# File 'lib/watir/elements/html_elements.rb', line 1938

def us(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "u"))
end

#use(*args) ⇒ Use

Returns:


478
479
480
# File 'lib/watir/elements/svg_elements.rb', line 478

def use(*args)
  Use.new(self, extract_selector(args).merge(tag_name: "use"))
end

#uses(*args) ⇒ UseCollection

Returns:


482
483
484
# File 'lib/watir/elements/svg_elements.rb', line 482

def uses(*args)
  UseCollection.new(self, extract_selector(args).merge(tag_name: "use"))
end

#var(*args) ⇒ HTMLElement

Returns:


1954
1955
1956
# File 'lib/watir/elements/html_elements.rb', line 1954

def var(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "var"))
end

#vars(*args) ⇒ HTMLElementCollection


1958
1959
1960
# File 'lib/watir/elements/html_elements.rb', line 1958

def vars(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "var"))
end

#video(*args) ⇒ Video

Returns:


1964
1965
1966
# File 'lib/watir/elements/html_elements.rb', line 1964

def video(*args)
  Video.new(self, extract_selector(args).merge(tag_name: "video"))
end

#videos(*args) ⇒ VideoCollection

Returns:


1968
1969
1970
# File 'lib/watir/elements/html_elements.rb', line 1968

def videos(*args)
  VideoCollection.new(self, extract_selector(args).merge(tag_name: "video"))
end

#view(*args) ⇒ View

Returns:


488
489
490
# File 'lib/watir/elements/svg_elements.rb', line 488

def view(*args)
  View.new(self, extract_selector(args).merge(tag_name: "view"))
end

#views(*args) ⇒ ViewCollection

Returns:


492
493
494
# File 'lib/watir/elements/svg_elements.rb', line 492

def views(*args)
  ViewCollection.new(self, extract_selector(args).merge(tag_name: "view"))
end

#wbr(*args) ⇒ HTMLElement

Returns:


1974
1975
1976
# File 'lib/watir/elements/html_elements.rb', line 1974

def wbr(*args)
  HTMLElement.new(self, extract_selector(args).merge(tag_name: "wbr"))
end

#wbrs(*args) ⇒ HTMLElementCollection


1978
1979
1980
# File 'lib/watir/elements/html_elements.rb', line 1978

def wbrs(*args)
  HTMLElementCollection.new(self, extract_selector(args).merge(tag_name: "wbr"))
end