Class: Watir::Input
- Inherits:
-
HTMLElement
- Object
- Element
- HTMLElement
- Watir::Input
- Defined in:
- lib/watir/elements/input.rb,
lib/watir/elements/html_elements.rb
Constant Summary
Constants inherited from Element
Element::CASE_INSENSITIVE_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#accept ⇒ String
Value of accept property.
-
#align ⇒ String
Value of align property.
-
#alt ⇒ String
Value of alt property.
-
#autocomplete ⇒ String
Value of autocomplete property.
-
#autofocus? ⇒ Boolean
Value of autofocus property.
-
#checked? ⇒ Boolean
Value of checked property.
-
#defaultchecked? ⇒ Boolean
Value of defaultChecked property.
-
#defaultvalue ⇒ String
Value of defaultValue property.
-
#dirname ⇒ String
Value of dirName property.
-
#disabled? ⇒ Boolean
Value of disabled property.
-
#files ⇒ String
Value of files property.
-
#form ⇒ String
Value of form property.
-
#formaction ⇒ String
Value of formAction property.
-
#formenctype ⇒ String
Value of formEnctype property.
-
#formmethod ⇒ String
Value of formMethod property.
-
#formnovalidate? ⇒ Boolean
Value of formNoValidate property.
-
#formtarget ⇒ String
Value of formTarget property.
-
#indeterminate? ⇒ Boolean
Value of indeterminate property.
-
#label ⇒ Watir::Label
Returns label element associated with Input element.
-
#labels ⇒ String
Value of labels property.
-
#list ⇒ String
Value of list property.
-
#max ⇒ String
Value of max property.
-
#maxlength ⇒ Integer
Value of maxLength property.
-
#min ⇒ String
Value of min property.
-
#minlength ⇒ Integer
Value of minLength property.
-
#multiple? ⇒ Boolean
Value of multiple property.
-
#name ⇒ String
Value of name property.
-
#pattern ⇒ String
Value of pattern property.
-
#placeholder ⇒ String
Value of placeholder property.
-
#readonly? ⇒ Boolean
Value of readOnly property.
-
#required? ⇒ Boolean
Value of required property.
-
#selectiondirection ⇒ String
Value of selectionDirection property.
-
#selectionend ⇒ Integer
Value of selectionEnd property.
-
#selectionstart ⇒ Integer
Value of selectionStart property.
-
#src ⇒ String
Value of src property.
-
#step ⇒ String
Value of step property.
-
#type ⇒ String
Value of type property.
-
#usemap ⇒ String
Value of useMap property.
-
#validationmessage ⇒ String
Value of validationMessage property.
-
#validity ⇒ String
Value of validity property.
-
#value ⇒ String
Value of value property.
-
#valueasdate ⇒ String
Value of valueAsDate property.
-
#valueasnumber ⇒ Float
Value of valueAsNumber property.
-
#willvalidate? ⇒ Boolean
Value of willValidate property.
Methods inherited from HTMLElement
#accesskey, #content_editable, #content_editable?, #dataset, #dir, #draggable?, #hidden?, #innertext, #lang, #onabort, #onblur, #oncancel, #oncanplay, #oncanplaythrough, #onchange, #onclick, #onclose, #oncopy, #oncuechange, #oncut, #ondblclick, #ondrag, #ondragend, #ondragenter, #ondragexit, #ondragleave, #ondragover, #ondragstart, #ondrop, #ondurationchange, #onemptied, #onended, #onerror, #onfocus, #oninput, #oninvalid, #onkeydown, #onkeypress, #onkeyup, #onload, #onloadeddata, #onloadedmetadata, #onloadstart, #onmousedown, #onmouseenter, #onmouseleave, #onmousemove, #onmouseout, #onmouseover, #onmouseup, #onpaste, #onpause, #onplay, #onplaying, #onprogress, #onratechange, #onreset, #onresize, #onscroll, #onseeked, #onseeking, #onselect, #onshow, #onstalled, #onsubmit, #onsuspend, #ontimeupdate, #ontoggle, #onvolumechange, #onwaiting, #onwheel, #spellcheck?, #tabindex, #title, #translate?
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, #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, #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, #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, #title, #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
#accept ⇒ String
Returns value of accept property.
335 |
# File 'lib/watir/elements/html_elements.rb', line 335 attribute(String, :accept, :accept) |
#align ⇒ String
Returns value of align property.
376 |
# File 'lib/watir/elements/html_elements.rb', line 376 attribute(String, :align, :align) |
#alt ⇒ String
Returns value of alt property.
336 |
# File 'lib/watir/elements/html_elements.rb', line 336 attribute(String, :alt, :alt) |
#autocomplete ⇒ String
Returns value of autocomplete property.
337 |
# File 'lib/watir/elements/html_elements.rb', line 337 attribute(String, :autocomplete, :autocomplete) |
#autofocus? ⇒ Boolean
Returns value of autofocus property.
338 |
# File 'lib/watir/elements/html_elements.rb', line 338 attribute("Boolean", :autofocus?, :autofocus) |
#checked? ⇒ Boolean
Returns value of checked property.
340 |
# File 'lib/watir/elements/html_elements.rb', line 340 attribute("Boolean", :checked?, :checked) |
#defaultchecked? ⇒ Boolean
Returns value of defaultChecked property.
339 |
# File 'lib/watir/elements/html_elements.rb', line 339 attribute("Boolean", :defaultchecked?, :defaultChecked) |
#defaultvalue ⇒ String
Returns value of defaultValue property.
365 |
# File 'lib/watir/elements/html_elements.rb', line 365 attribute(String, :defaultvalue, :defaultValue) |
#dirname ⇒ String
Returns value of dirName property.
341 |
# File 'lib/watir/elements/html_elements.rb', line 341 attribute(String, :dirname, :dirName) |
#disabled? ⇒ Boolean
Returns value of disabled property.
342 |
# File 'lib/watir/elements/html_elements.rb', line 342 attribute("Boolean", :disabled?, :disabled) |
#files ⇒ String
Returns value of files property.
344 |
# File 'lib/watir/elements/html_elements.rb', line 344 attribute(String, :files, :files) |
#form ⇒ String
Returns value of form property.
343 |
# File 'lib/watir/elements/html_elements.rb', line 343 attribute(String, :form, :form) |
#formaction ⇒ String
Returns value of formAction property.
345 |
# File 'lib/watir/elements/html_elements.rb', line 345 attribute(String, :formaction, :formAction) |
#formenctype ⇒ String
Returns value of formEnctype property.
346 |
# File 'lib/watir/elements/html_elements.rb', line 346 attribute(String, :formenctype, :formEnctype) |
#formmethod ⇒ String
Returns value of formMethod property.
347 |
# File 'lib/watir/elements/html_elements.rb', line 347 attribute(String, :formmethod, :formMethod) |
#formnovalidate? ⇒ Boolean
Returns value of formNoValidate property.
348 |
# File 'lib/watir/elements/html_elements.rb', line 348 attribute("Boolean", :formnovalidate?, :formNoValidate) |
#formtarget ⇒ String
Returns value of formTarget property.
349 |
# File 'lib/watir/elements/html_elements.rb', line 349 attribute(String, :formtarget, :formTarget) |
#indeterminate? ⇒ Boolean
Returns value of indeterminate property.
350 |
# File 'lib/watir/elements/html_elements.rb', line 350 attribute("Boolean", :indeterminate?, :indeterminate) |
#label ⇒ Watir::Label
Returns label element associated with Input element.
11 12 13 |
# File 'lib/watir/elements/input.rb', line 11 def label parent(tag_name: 'form').label(for: id) end |
#labels ⇒ String
Returns value of labels property.
372 |
# File 'lib/watir/elements/html_elements.rb', line 372 attribute(String, :labels, :labels) |
#list ⇒ String
Returns value of list property.
351 |
# File 'lib/watir/elements/html_elements.rb', line 351 attribute(String, :list, :list) |
#max ⇒ String
Returns value of max property.
352 |
# File 'lib/watir/elements/html_elements.rb', line 352 attribute(String, :max, :max) |
#maxlength ⇒ Integer
Returns value of maxLength property.
353 |
# File 'lib/watir/elements/html_elements.rb', line 353 attribute(Integer, :maxlength, :maxLength) |
#min ⇒ String
Returns value of min property.
354 |
# File 'lib/watir/elements/html_elements.rb', line 354 attribute(String, :min, :min) |
#minlength ⇒ Integer
Returns value of minLength property.
355 |
# File 'lib/watir/elements/html_elements.rb', line 355 attribute(Integer, :minlength, :minLength) |
#multiple? ⇒ Boolean
Returns value of multiple property.
356 |
# File 'lib/watir/elements/html_elements.rb', line 356 attribute("Boolean", :multiple?, :multiple) |
#name ⇒ String
Returns value of name property.
357 |
# File 'lib/watir/elements/html_elements.rb', line 357 attribute(String, :name, :name) |
#pattern ⇒ String
Returns value of pattern property.
358 |
# File 'lib/watir/elements/html_elements.rb', line 358 attribute(String, :pattern, :pattern) |
#placeholder ⇒ String
Returns value of placeholder property.
359 |
# File 'lib/watir/elements/html_elements.rb', line 359 attribute(String, :placeholder, :placeholder) |
#readonly? ⇒ Boolean
Returns value of readOnly property.
360 |
# File 'lib/watir/elements/html_elements.rb', line 360 attribute("Boolean", :readonly?, :readOnly) |
#required? ⇒ Boolean
Returns value of required property.
361 |
# File 'lib/watir/elements/html_elements.rb', line 361 attribute("Boolean", :required?, :required) |
#selectiondirection ⇒ String
Returns value of selectionDirection property.
375 |
# File 'lib/watir/elements/html_elements.rb', line 375 attribute(String, :selectiondirection, :selectionDirection) |
#selectionend ⇒ Integer
Returns value of selectionEnd property.
374 |
# File 'lib/watir/elements/html_elements.rb', line 374 attribute(Integer, :selectionend, :selectionEnd) |
#selectionstart ⇒ Integer
Returns value of selectionStart property.
373 |
# File 'lib/watir/elements/html_elements.rb', line 373 attribute(Integer, :selectionstart, :selectionStart) |
#src ⇒ String
Returns value of src property.
362 |
# File 'lib/watir/elements/html_elements.rb', line 362 attribute(String, :src, :src) |
#step ⇒ String
Returns value of step property.
363 |
# File 'lib/watir/elements/html_elements.rb', line 363 attribute(String, :step, :step) |
#type ⇒ String
Returns value of type property.
364 |
# File 'lib/watir/elements/html_elements.rb', line 364 attribute(String, :type, :type) |
#usemap ⇒ String
Returns value of useMap property.
377 |
# File 'lib/watir/elements/html_elements.rb', line 377 attribute(String, :usemap, :useMap) |
#validationmessage ⇒ String
Returns value of validationMessage property.
371 |
# File 'lib/watir/elements/html_elements.rb', line 371 attribute(String, :validationmessage, :validationMessage) |
#validity ⇒ String
Returns value of validity property.
370 |
# File 'lib/watir/elements/html_elements.rb', line 370 attribute(String, :validity, :validity) |
#value ⇒ String
Returns value of value property.
366 |
# File 'lib/watir/elements/html_elements.rb', line 366 attribute(String, :value, :value) |
#valueasdate ⇒ String
Returns value of valueAsDate property.
367 |
# File 'lib/watir/elements/html_elements.rb', line 367 attribute(String, :valueasdate, :valueAsDate) |
#valueasnumber ⇒ Float
Returns value of valueAsNumber property.
368 |
# File 'lib/watir/elements/html_elements.rb', line 368 attribute(Float, :valueasnumber, :valueAsNumber) |
#willvalidate? ⇒ Boolean
Returns value of willValidate property.
369 |
# File 'lib/watir/elements/html_elements.rb', line 369 attribute("Boolean", :willvalidate?, :willValidate) |