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
Returns value of accessKey property.
11 |
# File 'lib/watir/elements/html_elements.rb', line 11 attribute(String, :accesskey, :accessKey) |
#content_editable ⇒ String
Returns value of contentEditable property.
77 |
# File 'lib/watir/elements/html_elements.rb', line 77 attribute(String, :content_editable, :contentEditable) |
#content_editable? ⇒ Boolean
Returns value of isContentEditable property.
78 |
# File 'lib/watir/elements/html_elements.rb', line 78 attribute("Boolean", :content_editable?, :isContentEditable) |
#dataset ⇒ String
Returns value of dataset property.
8 |
# File 'lib/watir/elements/html_elements.rb', line 8 attribute(String, :dataset, :dataset) |
#dir ⇒ String
Returns value of dir property.
7 |
# File 'lib/watir/elements/html_elements.rb', line 7 attribute(String, :dir, :dir) |
#draggable? ⇒ Boolean
Returns value of draggable property.
12 |
# File 'lib/watir/elements/html_elements.rb', line 12 attribute("Boolean", :draggable?, :draggable) |
#hidden? ⇒ Boolean
Returns value of hidden property.
9 |
# File 'lib/watir/elements/html_elements.rb', line 9 attribute("Boolean", :hidden?, :hidden) |
#innertext ⇒ String
Returns value of innerText property.
14 |
# File 'lib/watir/elements/html_elements.rb', line 14 attribute(String, :innertext, :innerText) |
#lang ⇒ String
Returns value of lang property.
5 |
# File 'lib/watir/elements/html_elements.rb', line 5 attribute(String, :lang, :lang) |
#onabort ⇒ String
Returns value of onabort property.
15 |
# File 'lib/watir/elements/html_elements.rb', line 15 attribute(String, :onabort, :onabort) |
#onblur ⇒ String
Returns value of onblur property.
16 |
# File 'lib/watir/elements/html_elements.rb', line 16 attribute(String, :onblur, :onblur) |
#oncancel ⇒ String
Returns value of oncancel property.
17 |
# File 'lib/watir/elements/html_elements.rb', line 17 attribute(String, :oncancel, :oncancel) |
#oncanplay ⇒ String
Returns value of oncanplay property.
18 |
# File 'lib/watir/elements/html_elements.rb', line 18 attribute(String, :oncanplay, :oncanplay) |
#oncanplaythrough ⇒ String
Returns value of oncanplaythrough property.
19 |
# File 'lib/watir/elements/html_elements.rb', line 19 attribute(String, :oncanplaythrough, :oncanplaythrough) |
#onchange ⇒ String
Returns value of onchange property.
20 |
# File 'lib/watir/elements/html_elements.rb', line 20 attribute(String, :onchange, :onchange) |
#onclick ⇒ String
Returns value of onclick property.
21 |
# File 'lib/watir/elements/html_elements.rb', line 21 attribute(String, :onclick, :onclick) |
#onclose ⇒ String
Returns value of onclose property.
22 |
# File 'lib/watir/elements/html_elements.rb', line 22 attribute(String, :onclose, :onclose) |
#oncopy ⇒ String
Returns value of oncopy property.
74 |
# File 'lib/watir/elements/html_elements.rb', line 74 attribute(String, :oncopy, :oncopy) |
#oncuechange ⇒ String
Returns value of oncuechange property.
23 |
# File 'lib/watir/elements/html_elements.rb', line 23 attribute(String, :oncuechange, :oncuechange) |
#oncut ⇒ String
Returns value of oncut property.
75 |
# File 'lib/watir/elements/html_elements.rb', line 75 attribute(String, :oncut, :oncut) |
#ondblclick ⇒ String
Returns value of ondblclick property.
24 |
# File 'lib/watir/elements/html_elements.rb', line 24 attribute(String, :ondblclick, :ondblclick) |
#ondrag ⇒ String
Returns value of ondrag property.
25 |
# File 'lib/watir/elements/html_elements.rb', line 25 attribute(String, :ondrag, :ondrag) |
#ondragend ⇒ String
Returns value of ondragend property.
26 |
# File 'lib/watir/elements/html_elements.rb', line 26 attribute(String, :ondragend, :ondragend) |
#ondragenter ⇒ String
Returns value of ondragenter property.
27 |
# File 'lib/watir/elements/html_elements.rb', line 27 attribute(String, :ondragenter, :ondragenter) |
#ondragexit ⇒ String
Returns value of ondragexit property.
28 |
# File 'lib/watir/elements/html_elements.rb', line 28 attribute(String, :ondragexit, :ondragexit) |
#ondragleave ⇒ String
Returns value of ondragleave property.
29 |
# File 'lib/watir/elements/html_elements.rb', line 29 attribute(String, :ondragleave, :ondragleave) |
#ondragover ⇒ String
Returns value of ondragover property.
30 |
# File 'lib/watir/elements/html_elements.rb', line 30 attribute(String, :ondragover, :ondragover) |
#ondragstart ⇒ String
Returns value of ondragstart property.
31 |
# File 'lib/watir/elements/html_elements.rb', line 31 attribute(String, :ondragstart, :ondragstart) |
#ondrop ⇒ String
Returns value of ondrop property.
32 |
# File 'lib/watir/elements/html_elements.rb', line 32 attribute(String, :ondrop, :ondrop) |
#ondurationchange ⇒ String
Returns value of ondurationchange property.
33 |
# File 'lib/watir/elements/html_elements.rb', line 33 attribute(String, :ondurationchange, :ondurationchange) |
#onemptied ⇒ String
Returns value of onemptied property.
34 |
# File 'lib/watir/elements/html_elements.rb', line 34 attribute(String, :onemptied, :onemptied) |
#onended ⇒ String
Returns value of onended property.
35 |
# File 'lib/watir/elements/html_elements.rb', line 35 attribute(String, :onended, :onended) |
#onerror ⇒ String
Returns value of onerror property.
36 |
# File 'lib/watir/elements/html_elements.rb', line 36 attribute(String, :onerror, :onerror) |
#onfocus ⇒ String
Returns value of onfocus property.
37 |
# File 'lib/watir/elements/html_elements.rb', line 37 attribute(String, :onfocus, :onfocus) |
#oninput ⇒ String
Returns value of oninput property.
38 |
# File 'lib/watir/elements/html_elements.rb', line 38 attribute(String, :oninput, :oninput) |
#oninvalid ⇒ String
Returns value of oninvalid property.
39 |
# File 'lib/watir/elements/html_elements.rb', line 39 attribute(String, :oninvalid, :oninvalid) |
#onkeydown ⇒ String
Returns value of onkeydown property.
40 |
# File 'lib/watir/elements/html_elements.rb', line 40 attribute(String, :onkeydown, :onkeydown) |
#onkeypress ⇒ String
Returns value of onkeypress property.
41 |
# File 'lib/watir/elements/html_elements.rb', line 41 attribute(String, :onkeypress, :onkeypress) |
#onkeyup ⇒ String
Returns value of onkeyup property.
42 |
# File 'lib/watir/elements/html_elements.rb', line 42 attribute(String, :onkeyup, :onkeyup) |
#onload ⇒ String
Returns value of onload property.
43 |
# File 'lib/watir/elements/html_elements.rb', line 43 attribute(String, :onload, :onload) |
#onloadeddata ⇒ String
Returns value of onloadeddata property.
44 |
# File 'lib/watir/elements/html_elements.rb', line 44 attribute(String, :onloadeddata, :onloadeddata) |
#onloadedmetadata ⇒ String
Returns value of onloadedmetadata property.
45 |
# File 'lib/watir/elements/html_elements.rb', line 45 attribute(String, :onloadedmetadata, :onloadedmetadata) |
#onloadstart ⇒ String
Returns value of onloadstart property.
46 |
# File 'lib/watir/elements/html_elements.rb', line 46 attribute(String, :onloadstart, :onloadstart) |
#onmousedown ⇒ String
Returns value of onmousedown property.
47 |
# File 'lib/watir/elements/html_elements.rb', line 47 attribute(String, :onmousedown, :onmousedown) |
#onmouseenter ⇒ String
Returns value of onmouseenter property.
48 |
# File 'lib/watir/elements/html_elements.rb', line 48 attribute(String, :onmouseenter, :onmouseenter) |
#onmouseleave ⇒ String
Returns value of onmouseleave property.
49 |
# File 'lib/watir/elements/html_elements.rb', line 49 attribute(String, :onmouseleave, :onmouseleave) |
#onmousemove ⇒ String
Returns value of onmousemove property.
50 |
# File 'lib/watir/elements/html_elements.rb', line 50 attribute(String, :onmousemove, :onmousemove) |
#onmouseout ⇒ String
Returns value of onmouseout property.
51 |
# File 'lib/watir/elements/html_elements.rb', line 51 attribute(String, :onmouseout, :onmouseout) |
#onmouseover ⇒ String
Returns value of onmouseover property.
52 |
# File 'lib/watir/elements/html_elements.rb', line 52 attribute(String, :onmouseover, :onmouseover) |
#onmouseup ⇒ String
Returns value of onmouseup property.
53 |
# File 'lib/watir/elements/html_elements.rb', line 53 attribute(String, :onmouseup, :onmouseup) |
#onpaste ⇒ String
Returns value of onpaste property.
76 |
# File 'lib/watir/elements/html_elements.rb', line 76 attribute(String, :onpaste, :onpaste) |
#onpause ⇒ String
Returns value of onpause property.
55 |
# File 'lib/watir/elements/html_elements.rb', line 55 attribute(String, :onpause, :onpause) |
#onplay ⇒ String
Returns value of onplay property.
56 |
# File 'lib/watir/elements/html_elements.rb', line 56 attribute(String, :onplay, :onplay) |
#onplaying ⇒ String
Returns value of onplaying property.
57 |
# File 'lib/watir/elements/html_elements.rb', line 57 attribute(String, :onplaying, :onplaying) |
#onprogress ⇒ String
Returns value of onprogress property.
58 |
# File 'lib/watir/elements/html_elements.rb', line 58 attribute(String, :onprogress, :onprogress) |
#onratechange ⇒ String
Returns value of onratechange property.
59 |
# File 'lib/watir/elements/html_elements.rb', line 59 attribute(String, :onratechange, :onratechange) |
#onreset ⇒ String
Returns value of onreset property.
60 |
# File 'lib/watir/elements/html_elements.rb', line 60 attribute(String, :onreset, :onreset) |
#onresize ⇒ String
Returns value of onresize property.
61 |
# File 'lib/watir/elements/html_elements.rb', line 61 attribute(String, :onresize, :onresize) |
#onscroll ⇒ String
Returns value of onscroll property.
62 |
# File 'lib/watir/elements/html_elements.rb', line 62 attribute(String, :onscroll, :onscroll) |
#onseeked ⇒ String
Returns value of onseeked property.
63 |
# File 'lib/watir/elements/html_elements.rb', line 63 attribute(String, :onseeked, :onseeked) |
#onseeking ⇒ String
Returns value of onseeking property.
64 |
# File 'lib/watir/elements/html_elements.rb', line 64 attribute(String, :onseeking, :onseeking) |
#onselect ⇒ String
Returns value of onselect property.
65 |
# File 'lib/watir/elements/html_elements.rb', line 65 attribute(String, :onselect, :onselect) |
#onshow ⇒ String
Returns value of onshow property.
66 |
# File 'lib/watir/elements/html_elements.rb', line 66 attribute(String, :onshow, :onshow) |
#onstalled ⇒ String
Returns value of onstalled property.
67 |
# File 'lib/watir/elements/html_elements.rb', line 67 attribute(String, :onstalled, :onstalled) |
#onsubmit ⇒ String
Returns value of onsubmit property.
68 |
# File 'lib/watir/elements/html_elements.rb', line 68 attribute(String, :onsubmit, :onsubmit) |
#onsuspend ⇒ String
Returns value of onsuspend property.
69 |
# File 'lib/watir/elements/html_elements.rb', line 69 attribute(String, :onsuspend, :onsuspend) |
#ontimeupdate ⇒ String
Returns value of ontimeupdate property.
70 |
# File 'lib/watir/elements/html_elements.rb', line 70 attribute(String, :ontimeupdate, :ontimeupdate) |
#ontoggle ⇒ String
Returns value of ontoggle property.
71 |
# File 'lib/watir/elements/html_elements.rb', line 71 attribute(String, :ontoggle, :ontoggle) |
#onvolumechange ⇒ String
Returns value of onvolumechange property.
72 |
# File 'lib/watir/elements/html_elements.rb', line 72 attribute(String, :onvolumechange, :onvolumechange) |
#onwaiting ⇒ String
Returns value of onwaiting property.
73 |
# File 'lib/watir/elements/html_elements.rb', line 73 attribute(String, :onwaiting, :onwaiting) |
#onwheel ⇒ String
Returns value of onwheel property.
54 |
# File 'lib/watir/elements/html_elements.rb', line 54 attribute(String, :onwheel, :onwheel) |
#spellcheck? ⇒ Boolean
Returns value of spellcheck property.
13 |
# File 'lib/watir/elements/html_elements.rb', line 13 attribute("Boolean", :spellcheck?, :spellcheck) |
#tabindex ⇒ Integer
Returns value of tabIndex property.
10 |
# File 'lib/watir/elements/html_elements.rb', line 10 attribute(Integer, :tabindex, :tabIndex) |
#title ⇒ String
Returns value of title property.
4 |
# File 'lib/watir/elements/html_elements.rb', line 4 attribute(String, :title, :title) |
#translate? ⇒ Boolean
Returns value of translate property.
6 |
# File 'lib/watir/elements/html_elements.rb', line 6 attribute("Boolean", :translate?, :translate) |