Class: Watir::InputElement
- Defined in:
- lib/watir-classic/input_elements.rb
Overview
Super-class for input elements like SelectList, Button etc.
Instance Attribute Summary
Attributes inherited from Element
Attributes included from Container
Instance Method Summary collapse
-
#alt ⇒ String, ...
Retrieve element’s alt from the OLE method.
-
#disabled? ⇒ String, ...
Retrieve element’s disabled? from the OLE method.
-
#label ⇒ String
Text field label’s text.
-
#name ⇒ String, ...
Retrieve element’s name from the OLE method.
-
#required? ⇒ String, ...
Retrieve element’s required? from the OLE method.
-
#src ⇒ String, ...
Retrieve element’s src from the OLE method.
-
#type ⇒ String, ...
Retrieve element’s type from the OLE method.
-
#value ⇒ String, ...
Retrieve element’s value from the OLE method.
Methods inherited from Element
#<=>, #attribute_value, #class_name, #click, #double_click, #enabled?, #exists?, #fire_event, #flash, #focus, #focused?, #id, #initialize, #inner_html, #inspect, #method_missing, #ole_object, #outer_html, #parent, #right_click, #send_keys, #style, #tag_name, #text, #title, #to_s, #to_subtype, #unique_number, #visible?
Methods included from DragAndDropHelper
#drag_and_drop_by, #drag_and_drop_on
Methods included from Container
#a, #abbr, #address, #alert, #area, #article, #aside, #audio, #b, #base, #bdi, #bdo, #blockquote, #body, #br, #button, #canvas, #caption, #checkbox, #cite, #code, #col, #colgroup, #command, #data, #datalist, #dd, #del, #details, #dfn, #div, #dl, #dt, #element, #em, #embed, #fieldset, #figcaption, #figure, #file_field, #font, #footer, #form, #frame, #frameset, #h1, #h2, #h3, #h4, #h5, #h6, #head, #header, #hgroup, #hidden, #hr, #i, #img, #input, #ins, #kbd, #keygen, #legend, #li, #map, #mark, #menu, #meta, #meter, #modal_dialog, #nav, #noscript, #object, #ol, #optgroup, #option, #output, #p, #param, #pre, #progress, #q, #radio, #rp, #rt, #ruby, #s, #samp, #script, #section, #select, #small, #source, #span, #strong, #style, #sub, #summary, #sup, #table, #tbody, #td, #text_field, #textarea, #tfoot, #th, #thead, #time, #title, #tr, #track, #u, #ul, #var, #video, #wbr
Methods included from Exception
Methods included from ElementExtensions
#present?, #wait_until_present, #wait_while_present, #when_present
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
#alt ⇒ String, ...
Retrieve element’s alt from the OLE method.
9 |
# File 'lib/watir-classic/input_elements.rb', line 9 attr_ole :alt |
#disabled? ⇒ String, ...
Retrieve element’s disabled? from the OLE method.
5 |
# File 'lib/watir-classic/input_elements.rb', line 5 attr_ole :disabled? |
#label ⇒ String
Returns text field label’s text.
14 15 16 |
# File 'lib/watir-classic/input_elements.rb', line 14 def label @container.label(:for => id).text end |
#name ⇒ String, ...
Retrieve element’s name from the OLE method.
7 |
# File 'lib/watir-classic/input_elements.rb', line 7 attr_ole :name |
#required? ⇒ String, ...
Retrieve element’s required? from the OLE method.
6 |
# File 'lib/watir-classic/input_elements.rb', line 6 attr_ole :required? |
#src ⇒ String, ...
Retrieve element’s src from the OLE method.
10 |
# File 'lib/watir-classic/input_elements.rb', line 10 attr_ole :src |
#type ⇒ String, ...
Retrieve element’s type from the OLE method.
11 |
# File 'lib/watir-classic/input_elements.rb', line 11 attr_ole :type |
#value ⇒ String, ...
Retrieve element’s value from the OLE method.
8 |
# File 'lib/watir-classic/input_elements.rb', line 8 attr_ole :value |