Class: Watir::HTMLElement

Inherits:
Element
  • Object
show all
Defined in:
lib/watir/elements/html_elements.rb

Constant Summary

Constants inherited from Element

Element::CASE_INSENSITIVE_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from Element

#keyword, #selector

Instance Method Summary collapse

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

#scroll

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

#wait_until, #wait_while

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

#execute_js

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

#accesskeyString

Returns value of accessKey property.

Returns:

  • (String)

    value of accessKey property



11
# File 'lib/watir/elements/html_elements.rb', line 11

attribute(String, :accesskey, :accessKey)

#content_editableString

Returns value of contentEditable property.

Returns:

  • (String)

    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.

Returns:

  • (Boolean)

    value of isContentEditable property



78
# File 'lib/watir/elements/html_elements.rb', line 78

attribute("Boolean", :content_editable?, :isContentEditable)

#datasetString

Returns value of dataset property.

Returns:

  • (String)

    value of dataset property



8
# File 'lib/watir/elements/html_elements.rb', line 8

attribute(String, :dataset, :dataset)

#dirString

Returns value of dir property.

Returns:

  • (String)

    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.

Returns:

  • (Boolean)

    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.

Returns:

  • (Boolean)

    value of hidden property



9
# File 'lib/watir/elements/html_elements.rb', line 9

attribute("Boolean", :hidden?, :hidden)

#innertextString

Returns value of innerText property.

Returns:

  • (String)

    value of innerText property



14
# File 'lib/watir/elements/html_elements.rb', line 14

attribute(String, :innertext, :innerText)

#langString

Returns value of lang property.

Returns:

  • (String)

    value of lang property



5
# File 'lib/watir/elements/html_elements.rb', line 5

attribute(String, :lang, :lang)

#onabortString

Returns value of onabort property.

Returns:

  • (String)

    value of onabort property



15
# File 'lib/watir/elements/html_elements.rb', line 15

attribute(String, :onabort, :onabort)

#onblurString

Returns value of onblur property.

Returns:

  • (String)

    value of onblur property



16
# File 'lib/watir/elements/html_elements.rb', line 16

attribute(String, :onblur, :onblur)

#oncancelString

Returns value of oncancel property.

Returns:

  • (String)

    value of oncancel property



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

attribute(String, :oncancel, :oncancel)

#oncanplayString

Returns value of oncanplay property.

Returns:

  • (String)

    value of oncanplay property



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

attribute(String, :oncanplay, :oncanplay)

#oncanplaythroughString

Returns value of oncanplaythrough property.

Returns:

  • (String)

    value of oncanplaythrough property



19
# File 'lib/watir/elements/html_elements.rb', line 19

attribute(String, :oncanplaythrough, :oncanplaythrough)

#onchangeString

Returns value of onchange property.

Returns:

  • (String)

    value of onchange property



20
# File 'lib/watir/elements/html_elements.rb', line 20

attribute(String, :onchange, :onchange)

#onclickString

Returns value of onclick property.

Returns:

  • (String)

    value of onclick property



21
# File 'lib/watir/elements/html_elements.rb', line 21

attribute(String, :onclick, :onclick)

#oncloseString

Returns value of onclose property.

Returns:

  • (String)

    value of onclose property



22
# File 'lib/watir/elements/html_elements.rb', line 22

attribute(String, :onclose, :onclose)

#oncopyString

Returns value of oncopy property.

Returns:

  • (String)

    value of oncopy property



74
# File 'lib/watir/elements/html_elements.rb', line 74

attribute(String, :oncopy, :oncopy)

#oncuechangeString

Returns value of oncuechange property.

Returns:

  • (String)

    value of oncuechange property



23
# File 'lib/watir/elements/html_elements.rb', line 23

attribute(String, :oncuechange, :oncuechange)

#oncutString

Returns value of oncut property.

Returns:

  • (String)

    value of oncut property



75
# File 'lib/watir/elements/html_elements.rb', line 75

attribute(String, :oncut, :oncut)

#ondblclickString

Returns value of ondblclick property.

Returns:

  • (String)

    value of ondblclick property



24
# File 'lib/watir/elements/html_elements.rb', line 24

attribute(String, :ondblclick, :ondblclick)

#ondragString

Returns value of ondrag property.

Returns:

  • (String)

    value of ondrag property



25
# File 'lib/watir/elements/html_elements.rb', line 25

attribute(String, :ondrag, :ondrag)

#ondragendString

Returns value of ondragend property.

Returns:

  • (String)

    value of ondragend property



26
# File 'lib/watir/elements/html_elements.rb', line 26

attribute(String, :ondragend, :ondragend)

#ondragenterString

Returns value of ondragenter property.

Returns:

  • (String)

    value of ondragenter property



27
# File 'lib/watir/elements/html_elements.rb', line 27

attribute(String, :ondragenter, :ondragenter)

#ondragexitString

Returns value of ondragexit property.

Returns:

  • (String)

    value of ondragexit property



28
# File 'lib/watir/elements/html_elements.rb', line 28

attribute(String, :ondragexit, :ondragexit)

#ondragleaveString

Returns value of ondragleave property.

Returns:

  • (String)

    value of ondragleave property



29
# File 'lib/watir/elements/html_elements.rb', line 29

attribute(String, :ondragleave, :ondragleave)

#ondragoverString

Returns value of ondragover property.

Returns:

  • (String)

    value of ondragover property



30
# File 'lib/watir/elements/html_elements.rb', line 30

attribute(String, :ondragover, :ondragover)

#ondragstartString

Returns value of ondragstart property.

Returns:

  • (String)

    value of ondragstart property



31
# File 'lib/watir/elements/html_elements.rb', line 31

attribute(String, :ondragstart, :ondragstart)

#ondropString

Returns value of ondrop property.

Returns:

  • (String)

    value of ondrop property



32
# File 'lib/watir/elements/html_elements.rb', line 32

attribute(String, :ondrop, :ondrop)

#ondurationchangeString

Returns value of ondurationchange property.

Returns:

  • (String)

    value of ondurationchange property



33
# File 'lib/watir/elements/html_elements.rb', line 33

attribute(String, :ondurationchange, :ondurationchange)

#onemptiedString

Returns value of onemptied property.

Returns:

  • (String)

    value of onemptied property



34
# File 'lib/watir/elements/html_elements.rb', line 34

attribute(String, :onemptied, :onemptied)

#onendedString

Returns value of onended property.

Returns:

  • (String)

    value of onended property



35
# File 'lib/watir/elements/html_elements.rb', line 35

attribute(String, :onended, :onended)

#onerrorString

Returns value of onerror property.

Returns:

  • (String)

    value of onerror property



36
# File 'lib/watir/elements/html_elements.rb', line 36

attribute(String, :onerror, :onerror)

#onfocusString

Returns value of onfocus property.

Returns:

  • (String)

    value of onfocus property



37
# File 'lib/watir/elements/html_elements.rb', line 37

attribute(String, :onfocus, :onfocus)

#oninputString

Returns value of oninput property.

Returns:

  • (String)

    value of oninput property



38
# File 'lib/watir/elements/html_elements.rb', line 38

attribute(String, :oninput, :oninput)

#oninvalidString

Returns value of oninvalid property.

Returns:

  • (String)

    value of oninvalid property



39
# File 'lib/watir/elements/html_elements.rb', line 39

attribute(String, :oninvalid, :oninvalid)

#onkeydownString

Returns value of onkeydown property.

Returns:

  • (String)

    value of onkeydown property



40
# File 'lib/watir/elements/html_elements.rb', line 40

attribute(String, :onkeydown, :onkeydown)

#onkeypressString

Returns value of onkeypress property.

Returns:

  • (String)

    value of onkeypress property



41
# File 'lib/watir/elements/html_elements.rb', line 41

attribute(String, :onkeypress, :onkeypress)

#onkeyupString

Returns value of onkeyup property.

Returns:

  • (String)

    value of onkeyup property



42
# File 'lib/watir/elements/html_elements.rb', line 42

attribute(String, :onkeyup, :onkeyup)

#onloadString

Returns value of onload property.

Returns:

  • (String)

    value of onload property



43
# File 'lib/watir/elements/html_elements.rb', line 43

attribute(String, :onload, :onload)

#onloadeddataString

Returns value of onloadeddata property.

Returns:

  • (String)

    value of onloadeddata property



44
# File 'lib/watir/elements/html_elements.rb', line 44

attribute(String, :onloadeddata, :onloadeddata)

#onloadedmetadataString

Returns value of onloadedmetadata property.

Returns:

  • (String)

    value of onloadedmetadata property



45
# File 'lib/watir/elements/html_elements.rb', line 45

attribute(String, :onloadedmetadata, :onloadedmetadata)

#onloadstartString

Returns value of onloadstart property.

Returns:

  • (String)

    value of onloadstart property



46
# File 'lib/watir/elements/html_elements.rb', line 46

attribute(String, :onloadstart, :onloadstart)

#onmousedownString

Returns value of onmousedown property.

Returns:

  • (String)

    value of onmousedown property



47
# File 'lib/watir/elements/html_elements.rb', line 47

attribute(String, :onmousedown, :onmousedown)

#onmouseenterString

Returns value of onmouseenter property.

Returns:

  • (String)

    value of onmouseenter property



48
# File 'lib/watir/elements/html_elements.rb', line 48

attribute(String, :onmouseenter, :onmouseenter)

#onmouseleaveString

Returns value of onmouseleave property.

Returns:

  • (String)

    value of onmouseleave property



49
# File 'lib/watir/elements/html_elements.rb', line 49

attribute(String, :onmouseleave, :onmouseleave)

#onmousemoveString

Returns value of onmousemove property.

Returns:

  • (String)

    value of onmousemove property



50
# File 'lib/watir/elements/html_elements.rb', line 50

attribute(String, :onmousemove, :onmousemove)

#onmouseoutString

Returns value of onmouseout property.

Returns:

  • (String)

    value of onmouseout property



51
# File 'lib/watir/elements/html_elements.rb', line 51

attribute(String, :onmouseout, :onmouseout)

#onmouseoverString

Returns value of onmouseover property.

Returns:

  • (String)

    value of onmouseover property



52
# File 'lib/watir/elements/html_elements.rb', line 52

attribute(String, :onmouseover, :onmouseover)

#onmouseupString

Returns value of onmouseup property.

Returns:

  • (String)

    value of onmouseup property



53
# File 'lib/watir/elements/html_elements.rb', line 53

attribute(String, :onmouseup, :onmouseup)

#onpasteString

Returns value of onpaste property.

Returns:

  • (String)

    value of onpaste property



76
# File 'lib/watir/elements/html_elements.rb', line 76

attribute(String, :onpaste, :onpaste)

#onpauseString

Returns value of onpause property.

Returns:

  • (String)

    value of onpause property



55
# File 'lib/watir/elements/html_elements.rb', line 55

attribute(String, :onpause, :onpause)

#onplayString

Returns value of onplay property.

Returns:

  • (String)

    value of onplay property



56
# File 'lib/watir/elements/html_elements.rb', line 56

attribute(String, :onplay, :onplay)

#onplayingString

Returns value of onplaying property.

Returns:

  • (String)

    value of onplaying property



57
# File 'lib/watir/elements/html_elements.rb', line 57

attribute(String, :onplaying, :onplaying)

#onprogressString

Returns value of onprogress property.

Returns:

  • (String)

    value of onprogress property



58
# File 'lib/watir/elements/html_elements.rb', line 58

attribute(String, :onprogress, :onprogress)

#onratechangeString

Returns value of onratechange property.

Returns:

  • (String)

    value of onratechange property



59
# File 'lib/watir/elements/html_elements.rb', line 59

attribute(String, :onratechange, :onratechange)

#onresetString

Returns value of onreset property.

Returns:

  • (String)

    value of onreset property



60
# File 'lib/watir/elements/html_elements.rb', line 60

attribute(String, :onreset, :onreset)

#onresizeString

Returns value of onresize property.

Returns:

  • (String)

    value of onresize property



61
# File 'lib/watir/elements/html_elements.rb', line 61

attribute(String, :onresize, :onresize)

#onscrollString

Returns value of onscroll property.

Returns:

  • (String)

    value of onscroll property



62
# File 'lib/watir/elements/html_elements.rb', line 62

attribute(String, :onscroll, :onscroll)

#onseekedString

Returns value of onseeked property.

Returns:

  • (String)

    value of onseeked property



63
# File 'lib/watir/elements/html_elements.rb', line 63

attribute(String, :onseeked, :onseeked)

#onseekingString

Returns value of onseeking property.

Returns:

  • (String)

    value of onseeking property



64
# File 'lib/watir/elements/html_elements.rb', line 64

attribute(String, :onseeking, :onseeking)

#onselectString

Returns value of onselect property.

Returns:

  • (String)

    value of onselect property



65
# File 'lib/watir/elements/html_elements.rb', line 65

attribute(String, :onselect, :onselect)

#onshowString

Returns value of onshow property.

Returns:

  • (String)

    value of onshow property



66
# File 'lib/watir/elements/html_elements.rb', line 66

attribute(String, :onshow, :onshow)

#onstalledString

Returns value of onstalled property.

Returns:

  • (String)

    value of onstalled property



67
# File 'lib/watir/elements/html_elements.rb', line 67

attribute(String, :onstalled, :onstalled)

#onsubmitString

Returns value of onsubmit property.

Returns:

  • (String)

    value of onsubmit property



68
# File 'lib/watir/elements/html_elements.rb', line 68

attribute(String, :onsubmit, :onsubmit)

#onsuspendString

Returns value of onsuspend property.

Returns:

  • (String)

    value of onsuspend property



69
# File 'lib/watir/elements/html_elements.rb', line 69

attribute(String, :onsuspend, :onsuspend)

#ontimeupdateString

Returns value of ontimeupdate property.

Returns:

  • (String)

    value of ontimeupdate property



70
# File 'lib/watir/elements/html_elements.rb', line 70

attribute(String, :ontimeupdate, :ontimeupdate)

#ontoggleString

Returns value of ontoggle property.

Returns:

  • (String)

    value of ontoggle property



71
# File 'lib/watir/elements/html_elements.rb', line 71

attribute(String, :ontoggle, :ontoggle)

#onvolumechangeString

Returns value of onvolumechange property.

Returns:

  • (String)

    value of onvolumechange property



72
# File 'lib/watir/elements/html_elements.rb', line 72

attribute(String, :onvolumechange, :onvolumechange)

#onwaitingString

Returns value of onwaiting property.

Returns:

  • (String)

    value of onwaiting property



73
# File 'lib/watir/elements/html_elements.rb', line 73

attribute(String, :onwaiting, :onwaiting)

#onwheelString

Returns value of onwheel property.

Returns:

  • (String)

    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.

Returns:

  • (Boolean)

    value of spellcheck property



13
# File 'lib/watir/elements/html_elements.rb', line 13

attribute("Boolean", :spellcheck?, :spellcheck)

#tabindexInteger

Returns value of tabIndex property.

Returns:

  • (Integer)

    value of tabIndex property



10
# File 'lib/watir/elements/html_elements.rb', line 10

attribute(Integer, :tabindex, :tabIndex)

#titleString

Returns value of title property.

Returns:

  • (String)

    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.

Returns:

  • (Boolean)

    value of translate property



6
# File 'lib/watir/elements/html_elements.rb', line 6

attribute("Boolean", :translate?, :translate)