Class: Watir::HTMLElement
- Defined in:
- lib/watir/elements/html_elements.rb
Direct Known Subclasses
Anchor, Applet, Area, BR, Base, Body, Button, Canvas, DList, Data, DataList, Details, Dialog, Directory, Div, Embed, FieldSet, Font, Form, FrameSet, HR, Head, Heading, Html, IFrame, Image, Input, LI, Label, Legend, Map, Marquee, Media, Meta, Meter, Mod, OList, Object, OptGroup, Option, Output, Paragraph, Param, Picture, Pre, Progress, Quote, SVGElement, Script, Select, Source, Span, Style, Table, TableCaption, TableCell, TableCol, TableRow, TableSection, Template, TextArea, Time, Title, Track, UList, Unknown
Constant Summary
Constants inherited from Element
Element::CASE_INSENSITIVE_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#accesskey ⇒ String
Value of accessKey property.
-
#content_editable ⇒ String
Value of contentEditable property.
-
#content_editable? ⇒ Boolean
Value of isContentEditable property.
-
#dataset ⇒ String
Value of dataset property.
-
#dir ⇒ String
Value of dir property.
-
#draggable? ⇒ Boolean
Value of draggable property.
-
#hidden? ⇒ Boolean
Value of hidden property.
-
#innertext ⇒ String
Value of innerText property.
-
#lang ⇒ String
Value of lang property.
-
#onabort ⇒ String
Value of onabort property.
-
#onblur ⇒ String
Value of onblur property.
-
#oncancel ⇒ String
Value of oncancel property.
-
#oncanplay ⇒ String
Value of oncanplay property.
-
#oncanplaythrough ⇒ String
Value of oncanplaythrough property.
-
#onchange ⇒ String
Value of onchange property.
-
#onclick ⇒ String
Value of onclick property.
-
#onclose ⇒ String
Value of onclose property.
-
#oncopy ⇒ String
Value of oncopy property.
-
#oncuechange ⇒ String
Value of oncuechange property.
-
#oncut ⇒ String
Value of oncut property.
-
#ondblclick ⇒ String
Value of ondblclick property.
-
#ondrag ⇒ String
Value of ondrag property.
-
#ondragend ⇒ String
Value of ondragend property.
-
#ondragenter ⇒ String
Value of ondragenter property.
-
#ondragexit ⇒ String
Value of ondragexit property.
-
#ondragleave ⇒ String
Value of ondragleave property.
-
#ondragover ⇒ String
Value of ondragover property.
-
#ondragstart ⇒ String
Value of ondragstart property.
-
#ondrop ⇒ String
Value of ondrop property.
-
#ondurationchange ⇒ String
Value of ondurationchange property.
-
#onemptied ⇒ String
Value of onemptied property.
-
#onended ⇒ String
Value of onended property.
-
#onerror ⇒ String
Value of onerror property.
-
#onfocus ⇒ String
Value of onfocus property.
-
#oninput ⇒ String
Value of oninput property.
-
#oninvalid ⇒ String
Value of oninvalid property.
-
#onkeydown ⇒ String
Value of onkeydown property.
-
#onkeypress ⇒ String
Value of onkeypress property.
-
#onkeyup ⇒ String
Value of onkeyup property.
-
#onload ⇒ String
Value of onload property.
-
#onloadeddata ⇒ String
Value of onloadeddata property.
-
#onloadedmetadata ⇒ String
Value of onloadedmetadata property.
-
#onloadstart ⇒ String
Value of onloadstart property.
-
#onmousedown ⇒ String
Value of onmousedown property.
-
#onmouseenter ⇒ String
Value of onmouseenter property.
-
#onmouseleave ⇒ String
Value of onmouseleave property.
-
#onmousemove ⇒ String
Value of onmousemove property.
-
#onmouseout ⇒ String
Value of onmouseout property.
-
#onmouseover ⇒ String
Value of onmouseover property.
-
#onmouseup ⇒ String
Value of onmouseup property.
-
#onpaste ⇒ String
Value of onpaste property.
-
#onpause ⇒ String
Value of onpause property.
-
#onplay ⇒ String
Value of onplay property.
-
#onplaying ⇒ String
Value of onplaying property.
-
#onprogress ⇒ String
Value of onprogress property.
-
#onratechange ⇒ String
Value of onratechange property.
-
#onreset ⇒ String
Value of onreset property.
-
#onresize ⇒ String
Value of onresize property.
-
#onscroll ⇒ String
Value of onscroll property.
-
#onseeked ⇒ String
Value of onseeked property.
-
#onseeking ⇒ String
Value of onseeking property.
-
#onselect ⇒ String
Value of onselect property.
-
#onshow ⇒ String
Value of onshow property.
-
#onstalled ⇒ String
Value of onstalled property.
-
#onsubmit ⇒ String
Value of onsubmit property.
-
#onsuspend ⇒ String
Value of onsuspend property.
-
#ontimeupdate ⇒ String
Value of ontimeupdate property.
-
#ontoggle ⇒ String
Value of ontoggle property.
-
#onvolumechange ⇒ String
Value of onvolumechange property.
-
#onwaiting ⇒ String
Value of onwaiting property.
-
#onwheel ⇒ String
Value of onwheel property.
-
#spellcheck? ⇒ Boolean
Value of spellcheck property.
-
#tabindex ⇒ Integer
Value of tabIndex property.
-
#title ⇒ String
Value of title property.
-
#translate? ⇒ Boolean
Value of translate property.
Methods inherited from Element
#==, #attribute_list, #attribute_value, #attribute_values, #browser, #build, #cache=, #center, #class_name, #classes, #click, #click!, #double_click, #double_click!, #drag_and_drop_by, #drag_and_drop_on, #driver, #enabled?, #focused?, #hash, #height, #hover, #id, #in_viewport?, #initialize, #inspect, #locate, #located?, #location, #obscured?, #present?, #reset!, #right_click, #selector_string, #send_keys, #set, #shadow_root, #size, #stale?, #stale_in_context?, #style, #tag_name, #text, #to_subtype, #wd, #width
Methods included from AttributeHelper
#attribute, #attribute_list, #define_attribute, #define_boolean_attribute, #define_float_attribute, #define_int_attribute, #define_string_attribute, #inherit_attributes_from, #method, #typed_attributes
Methods included from SearchContext
#assert_exists, #check_condition, #element_call, #exists?, #unknown_exception, #wait_for_exists
Methods included from Scrolling
Methods included from Locators::ClassHelpers
#class_from_string, #element_class_name, #element_matcher_class, #locator, #locator_class, #selector_builder, #selector_builder_class
Methods included from JSExecution
#execute_script, #fire_event, #flash, #focus, #inner_html, #inner_text, #outer_html, #select_text, #selected_text, #text_content
Methods included from Adjacent
#child, #children, #following_sibling, #following_siblings, #parent, #preceding_sibling, #preceding_siblings, #siblings
Methods included from Waitable
Methods included from Container
#a, #abbr, #abbrs, #address, #addresses, #area, #areas, #article, #articles, #as, #aside, #asides, #audio, #audios, #b, #base, #bases, #bdi, #bdis, #bdo, #bdos, #blockquote, #blockquotes, #body, #bodys, #br, #brs, #bs, #button, #buttons, #canvas, #canvases, #caption, #captions, #checkbox, #checkboxes, #circle, #circles, #cite, #cites, #code, #codes, #col, #colgroup, #colgroups, #cols, #data, #datalist, #datalists, #datas, #date_field, #date_fields, #date_time_field, #date_time_fields, #dd, #dds, #defs, #defss, #del, #dels, #desc, #descs, #details, #detailses, #dfn, #dfns, #dialog, #dialogs, #div, #divs, #dl, #dls, #dt, #dts, #element, #elements, #ellipse, #ellipses, #em, #embed, #embeds, #ems, #field_set, #field_sets, #fieldset, #fieldsets, #figcaption, #figcaptions, #figure, #figures, #file_field, #file_fields, #font, #fonts, #footer, #footers, #foreign_object, #foreign_objects, #form, #forms, #frame, #frames, #frameset, #framesets, #g, #gs, #h1, #h1s, #h2, #h2s, #h3, #h3s, #h4, #h4s, #h5, #h5s, #h6, #h6s, #head, #header, #headers, #heads, #hidden, #hiddens, #hr, #hrs, #html, #htmls, #i, #iframe, #iframes, #image, #images, #img, #imgs, #input, #inputs, #ins, #inses, #is, #kbd, #kbds, #label, #labels, #legend, #legends, #li, #line, #linear_gradient, #linear_gradients, #lines, #link, #links, #lis, #main, #mains, #map, #maps, #mark, #marker, #markers, #marks, #meta, #metadata, #metadatas, #metas, #meter, #meters, #nav, #navs, #noscript, #noscripts, #object, #objects, #ol, #ols, #optgroup, #optgroups, #option, #options, #output, #outputs, #p, #param, #params, #path, #paths, #pattern, #patterns, #picture, #pictures, #polygon, #polygons, #polyline, #polylines, #pre, #pres, #progress, #progresses, #ps, #q, #qs, #radial_gradient, #radial_gradients, #radio, #radio_set, #radios, #rb, #rbs, #rect, #rects, #rp, #rps, #rt, #rtc, #rtcs, #rts, #rubies, #ruby, #s, #samp, #samps, #script, #scripts, #section, #sections, #select, #select_list, #select_lists, #selects, #small, #smalls, #source, #sources, #span, #spans, #ss, #stop, #stops, #strong, #strongs, #style, #styles, #sub, #subs, #summaries, #summary, #sup, #sups, #svg, #svgs, #switch, #switches, #symbol, #symbols, #table, #tables, #tbody, #tbodys, #td, #tds, #template, #templates, #text_field, #text_fields, #text_path, #text_paths, #textarea, #textareas, #tfoot, #tfoots, #th, #thead, #theads, #ths, #time, #times, #titles, #tr, #track, #tracks, #trs, #tspan, #tspans, #u, #ul, #uls, #us, #use, #uses, #var, #vars, #video, #videos, #view, #views, #wbr, #wbrs
Methods included from JSSnippets
Constructor Details
This class inherits a constructor from Watir::Element
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Watir::Element
Instance Method Details
#accesskey ⇒ String
11 |
# File 'lib/watir/elements/html_elements.rb', line 11 attribute(String, :accesskey, :accessKey) |
#content_editable ⇒ String
77 |
# File 'lib/watir/elements/html_elements.rb', line 77 attribute(String, :content_editable, :contentEditable) |
#content_editable? ⇒ Boolean
78 |
# File 'lib/watir/elements/html_elements.rb', line 78 attribute("Boolean", :content_editable?, :isContentEditable) |
#dataset ⇒ String
8 |
# File 'lib/watir/elements/html_elements.rb', line 8 attribute(String, :dataset, :dataset) |
#dir ⇒ String
7 |
# File 'lib/watir/elements/html_elements.rb', line 7 attribute(String, :dir, :dir) |
#draggable? ⇒ Boolean
12 |
# File 'lib/watir/elements/html_elements.rb', line 12 attribute("Boolean", :draggable?, :draggable) |
#hidden? ⇒ Boolean
9 |
# File 'lib/watir/elements/html_elements.rb', line 9 attribute("Boolean", :hidden?, :hidden) |
#innertext ⇒ String
14 |
# File 'lib/watir/elements/html_elements.rb', line 14 attribute(String, :innertext, :innerText) |
#lang ⇒ String
5 |
# File 'lib/watir/elements/html_elements.rb', line 5 attribute(String, :lang, :lang) |
#onabort ⇒ String
15 |
# File 'lib/watir/elements/html_elements.rb', line 15 attribute(String, :onabort, :onabort) |
#onblur ⇒ String
16 |
# File 'lib/watir/elements/html_elements.rb', line 16 attribute(String, :onblur, :onblur) |
#oncancel ⇒ String
17 |
# File 'lib/watir/elements/html_elements.rb', line 17 attribute(String, :oncancel, :oncancel) |
#oncanplay ⇒ String
18 |
# File 'lib/watir/elements/html_elements.rb', line 18 attribute(String, :oncanplay, :oncanplay) |
#oncanplaythrough ⇒ String
19 |
# File 'lib/watir/elements/html_elements.rb', line 19 attribute(String, :oncanplaythrough, :oncanplaythrough) |
#onchange ⇒ String
20 |
# File 'lib/watir/elements/html_elements.rb', line 20 attribute(String, :onchange, :onchange) |
#onclick ⇒ String
21 |
# File 'lib/watir/elements/html_elements.rb', line 21 attribute(String, :onclick, :onclick) |
#onclose ⇒ String
22 |
# File 'lib/watir/elements/html_elements.rb', line 22 attribute(String, :onclose, :onclose) |
#oncopy ⇒ String
74 |
# File 'lib/watir/elements/html_elements.rb', line 74 attribute(String, :oncopy, :oncopy) |
#oncuechange ⇒ String
23 |
# File 'lib/watir/elements/html_elements.rb', line 23 attribute(String, :oncuechange, :oncuechange) |
#oncut ⇒ String
75 |
# File 'lib/watir/elements/html_elements.rb', line 75 attribute(String, :oncut, :oncut) |
#ondblclick ⇒ String
24 |
# File 'lib/watir/elements/html_elements.rb', line 24 attribute(String, :ondblclick, :ondblclick) |
#ondrag ⇒ String
25 |
# File 'lib/watir/elements/html_elements.rb', line 25 attribute(String, :ondrag, :ondrag) |
#ondragend ⇒ String
26 |
# File 'lib/watir/elements/html_elements.rb', line 26 attribute(String, :ondragend, :ondragend) |
#ondragenter ⇒ String
27 |
# File 'lib/watir/elements/html_elements.rb', line 27 attribute(String, :ondragenter, :ondragenter) |
#ondragexit ⇒ String
28 |
# File 'lib/watir/elements/html_elements.rb', line 28 attribute(String, :ondragexit, :ondragexit) |
#ondragleave ⇒ String
29 |
# File 'lib/watir/elements/html_elements.rb', line 29 attribute(String, :ondragleave, :ondragleave) |
#ondragover ⇒ String
30 |
# File 'lib/watir/elements/html_elements.rb', line 30 attribute(String, :ondragover, :ondragover) |
#ondragstart ⇒ String
31 |
# File 'lib/watir/elements/html_elements.rb', line 31 attribute(String, :ondragstart, :ondragstart) |
#ondrop ⇒ String
32 |
# File 'lib/watir/elements/html_elements.rb', line 32 attribute(String, :ondrop, :ondrop) |
#ondurationchange ⇒ String
33 |
# File 'lib/watir/elements/html_elements.rb', line 33 attribute(String, :ondurationchange, :ondurationchange) |
#onemptied ⇒ String
34 |
# File 'lib/watir/elements/html_elements.rb', line 34 attribute(String, :onemptied, :onemptied) |
#onended ⇒ String
35 |
# File 'lib/watir/elements/html_elements.rb', line 35 attribute(String, :onended, :onended) |
#onerror ⇒ String
36 |
# File 'lib/watir/elements/html_elements.rb', line 36 attribute(String, :onerror, :onerror) |
#onfocus ⇒ String
37 |
# File 'lib/watir/elements/html_elements.rb', line 37 attribute(String, :onfocus, :onfocus) |
#oninput ⇒ String
38 |
# File 'lib/watir/elements/html_elements.rb', line 38 attribute(String, :oninput, :oninput) |
#oninvalid ⇒ String
39 |
# File 'lib/watir/elements/html_elements.rb', line 39 attribute(String, :oninvalid, :oninvalid) |
#onkeydown ⇒ String
40 |
# File 'lib/watir/elements/html_elements.rb', line 40 attribute(String, :onkeydown, :onkeydown) |
#onkeypress ⇒ String
41 |
# File 'lib/watir/elements/html_elements.rb', line 41 attribute(String, :onkeypress, :onkeypress) |
#onkeyup ⇒ String
42 |
# File 'lib/watir/elements/html_elements.rb', line 42 attribute(String, :onkeyup, :onkeyup) |
#onload ⇒ String
43 |
# File 'lib/watir/elements/html_elements.rb', line 43 attribute(String, :onload, :onload) |
#onloadeddata ⇒ String
44 |
# File 'lib/watir/elements/html_elements.rb', line 44 attribute(String, :onloadeddata, :onloadeddata) |
#onloadedmetadata ⇒ String
45 |
# File 'lib/watir/elements/html_elements.rb', line 45 attribute(String, :onloadedmetadata, :onloadedmetadata) |
#onloadstart ⇒ String
46 |
# File 'lib/watir/elements/html_elements.rb', line 46 attribute(String, :onloadstart, :onloadstart) |
#onmousedown ⇒ String
47 |
# File 'lib/watir/elements/html_elements.rb', line 47 attribute(String, :onmousedown, :onmousedown) |
#onmouseenter ⇒ String
48 |
# File 'lib/watir/elements/html_elements.rb', line 48 attribute(String, :onmouseenter, :onmouseenter) |
#onmouseleave ⇒ String
49 |
# File 'lib/watir/elements/html_elements.rb', line 49 attribute(String, :onmouseleave, :onmouseleave) |
#onmousemove ⇒ String
50 |
# File 'lib/watir/elements/html_elements.rb', line 50 attribute(String, :onmousemove, :onmousemove) |
#onmouseout ⇒ String
51 |
# File 'lib/watir/elements/html_elements.rb', line 51 attribute(String, :onmouseout, :onmouseout) |
#onmouseover ⇒ String
52 |
# File 'lib/watir/elements/html_elements.rb', line 52 attribute(String, :onmouseover, :onmouseover) |
#onmouseup ⇒ String
53 |
# File 'lib/watir/elements/html_elements.rb', line 53 attribute(String, :onmouseup, :onmouseup) |
#onpaste ⇒ String
76 |
# File 'lib/watir/elements/html_elements.rb', line 76 attribute(String, :onpaste, :onpaste) |
#onpause ⇒ String
55 |
# File 'lib/watir/elements/html_elements.rb', line 55 attribute(String, :onpause, :onpause) |
#onplay ⇒ String
56 |
# File 'lib/watir/elements/html_elements.rb', line 56 attribute(String, :onplay, :onplay) |
#onplaying ⇒ String
57 |
# File 'lib/watir/elements/html_elements.rb', line 57 attribute(String, :onplaying, :onplaying) |
#onprogress ⇒ String
58 |
# File 'lib/watir/elements/html_elements.rb', line 58 attribute(String, :onprogress, :onprogress) |
#onratechange ⇒ String
59 |
# File 'lib/watir/elements/html_elements.rb', line 59 attribute(String, :onratechange, :onratechange) |
#onreset ⇒ String
60 |
# File 'lib/watir/elements/html_elements.rb', line 60 attribute(String, :onreset, :onreset) |
#onresize ⇒ String
61 |
# File 'lib/watir/elements/html_elements.rb', line 61 attribute(String, :onresize, :onresize) |
#onscroll ⇒ String
62 |
# File 'lib/watir/elements/html_elements.rb', line 62 attribute(String, :onscroll, :onscroll) |
#onseeked ⇒ String
63 |
# File 'lib/watir/elements/html_elements.rb', line 63 attribute(String, :onseeked, :onseeked) |
#onseeking ⇒ String
64 |
# File 'lib/watir/elements/html_elements.rb', line 64 attribute(String, :onseeking, :onseeking) |
#onselect ⇒ String
65 |
# File 'lib/watir/elements/html_elements.rb', line 65 attribute(String, :onselect, :onselect) |
#onshow ⇒ String
66 |
# File 'lib/watir/elements/html_elements.rb', line 66 attribute(String, :onshow, :onshow) |
#onstalled ⇒ String
67 |
# File 'lib/watir/elements/html_elements.rb', line 67 attribute(String, :onstalled, :onstalled) |
#onsubmit ⇒ String
68 |
# File 'lib/watir/elements/html_elements.rb', line 68 attribute(String, :onsubmit, :onsubmit) |
#onsuspend ⇒ String
69 |
# File 'lib/watir/elements/html_elements.rb', line 69 attribute(String, :onsuspend, :onsuspend) |
#ontimeupdate ⇒ String
70 |
# File 'lib/watir/elements/html_elements.rb', line 70 attribute(String, :ontimeupdate, :ontimeupdate) |
#ontoggle ⇒ String
71 |
# File 'lib/watir/elements/html_elements.rb', line 71 attribute(String, :ontoggle, :ontoggle) |
#onvolumechange ⇒ String
72 |
# File 'lib/watir/elements/html_elements.rb', line 72 attribute(String, :onvolumechange, :onvolumechange) |
#onwaiting ⇒ String
73 |
# File 'lib/watir/elements/html_elements.rb', line 73 attribute(String, :onwaiting, :onwaiting) |
#onwheel ⇒ String
54 |
# File 'lib/watir/elements/html_elements.rb', line 54 attribute(String, :onwheel, :onwheel) |
#spellcheck? ⇒ Boolean
13 |
# File 'lib/watir/elements/html_elements.rb', line 13 attribute("Boolean", :spellcheck?, :spellcheck) |
#tabindex ⇒ Integer
10 |
# File 'lib/watir/elements/html_elements.rb', line 10 attribute(Integer, :tabindex, :tabIndex) |
#title ⇒ String
4 |
# File 'lib/watir/elements/html_elements.rb', line 4 attribute(String, :title, :title) |
#translate? ⇒ Boolean
6 |
# File 'lib/watir/elements/html_elements.rb', line 6 attribute("Boolean", :translate?, :translate) |