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



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

attribute(String, :accesskey, :accessKey)

#content_editableString



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)

#datasetString



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

attribute(String, :dataset, :dataset)

#dirString



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)

#innertextString



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

attribute(String, :innertext, :innerText)

#langString



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

attribute(String, :lang, :lang)

#onabortString



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

attribute(String, :onabort, :onabort)

#onblurString



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

attribute(String, :onblur, :onblur)

#oncancelString



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

attribute(String, :oncancel, :oncancel)

#oncanplayString



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

attribute(String, :oncanplay, :oncanplay)

#oncanplaythroughString



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

attribute(String, :oncanplaythrough, :oncanplaythrough)

#onchangeString



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

attribute(String, :onchange, :onchange)

#onclickString



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

attribute(String, :onclick, :onclick)

#oncloseString



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

attribute(String, :onclose, :onclose)

#oncopyString



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

attribute(String, :oncopy, :oncopy)

#oncuechangeString



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

attribute(String, :oncuechange, :oncuechange)

#oncutString



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

attribute(String, :oncut, :oncut)

#ondblclickString



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

attribute(String, :ondblclick, :ondblclick)

#ondragString



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

attribute(String, :ondrag, :ondrag)

#ondragendString



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

attribute(String, :ondragend, :ondragend)

#ondragenterString



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

attribute(String, :ondragenter, :ondragenter)

#ondragexitString



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

attribute(String, :ondragexit, :ondragexit)

#ondragleaveString



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

attribute(String, :ondragleave, :ondragleave)

#ondragoverString



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

attribute(String, :ondragover, :ondragover)

#ondragstartString



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

attribute(String, :ondragstart, :ondragstart)

#ondropString



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

attribute(String, :ondrop, :ondrop)

#ondurationchangeString



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

attribute(String, :ondurationchange, :ondurationchange)

#onemptiedString



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

attribute(String, :onemptied, :onemptied)

#onendedString



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

attribute(String, :onended, :onended)

#onerrorString



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

attribute(String, :onerror, :onerror)

#onfocusString



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

attribute(String, :onfocus, :onfocus)

#oninputString



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

attribute(String, :oninput, :oninput)

#oninvalidString



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

attribute(String, :oninvalid, :oninvalid)

#onkeydownString



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

attribute(String, :onkeydown, :onkeydown)

#onkeypressString



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

attribute(String, :onkeypress, :onkeypress)

#onkeyupString



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

attribute(String, :onkeyup, :onkeyup)

#onloadString



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

attribute(String, :onload, :onload)

#onloadeddataString



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

attribute(String, :onloadeddata, :onloadeddata)

#onloadedmetadataString



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

attribute(String, :onloadedmetadata, :onloadedmetadata)

#onloadstartString



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

attribute(String, :onloadstart, :onloadstart)

#onmousedownString



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

attribute(String, :onmousedown, :onmousedown)

#onmouseenterString



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

attribute(String, :onmouseenter, :onmouseenter)

#onmouseleaveString



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

attribute(String, :onmouseleave, :onmouseleave)

#onmousemoveString



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

attribute(String, :onmousemove, :onmousemove)

#onmouseoutString



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

attribute(String, :onmouseout, :onmouseout)

#onmouseoverString



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

attribute(String, :onmouseover, :onmouseover)

#onmouseupString



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

attribute(String, :onmouseup, :onmouseup)

#onpasteString



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

attribute(String, :onpaste, :onpaste)

#onpauseString



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

attribute(String, :onpause, :onpause)

#onplayString



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

attribute(String, :onplay, :onplay)

#onplayingString



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

attribute(String, :onplaying, :onplaying)

#onprogressString



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

attribute(String, :onprogress, :onprogress)

#onratechangeString



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

attribute(String, :onratechange, :onratechange)

#onresetString



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

attribute(String, :onreset, :onreset)

#onresizeString



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

attribute(String, :onresize, :onresize)

#onscrollString



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

attribute(String, :onscroll, :onscroll)

#onseekedString



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

attribute(String, :onseeked, :onseeked)

#onseekingString



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

attribute(String, :onseeking, :onseeking)

#onselectString



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

attribute(String, :onselect, :onselect)

#onshowString



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

attribute(String, :onshow, :onshow)

#onstalledString



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

attribute(String, :onstalled, :onstalled)

#onsubmitString



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

attribute(String, :onsubmit, :onsubmit)

#onsuspendString



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

attribute(String, :onsuspend, :onsuspend)

#ontimeupdateString



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

attribute(String, :ontimeupdate, :ontimeupdate)

#ontoggleString



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

attribute(String, :ontoggle, :ontoggle)

#onvolumechangeString



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

attribute(String, :onvolumechange, :onvolumechange)

#onwaitingString



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

attribute(String, :onwaiting, :onwaiting)

#onwheelString



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)

#tabindexInteger



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

attribute(Integer, :tabindex, :tabIndex)

#titleString



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)