Class: Watir::InputElement

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

Overview

:nodoc:all

Direct Known Subclasses

Button, FileField, RadioCheckCommon, SelectList, TextField

Constant Summary

Constants inherited from Element

Element::TO_S_SIZE

Instance Attribute Summary

Attributes inherited from Element

#container

Attributes included from Container

#activeObjectHighLightColor, #page_container, #type_keys, #typingspeed

Instance Method Summary collapse

Methods inherited from Element

#<=>, #activeObjectHighLightColor, #after_text, #assert_enabled, #assert_exists, #attribute_value, #before_text, #click, #click!, #click_no_wait, #document, #enabled?, #exists?, #fire_event, #flash, #focus, #inspect, #ole_object, #ole_object=, #parent, #text, #to_s, #type_keys, #typingspeed, #visible?

Methods included from Container

#area, #areas, #button, #buttons, #cell, #cells, #checkbox, #checkboxes, #dds, #divs, #dls, #dts, #element, #elements, #ems, #file_field, #file_fields, #form, #forms, #frame, #hidden, #hiddens, #image, #images, #labels, #link, #links, #lis, #locate_all_elements, #locate_input_element, #locate_tagged_element, #log, #map, #maps, #modal_dialog, #popup, #pres, #ps, #radio, #radios, #row, #rows, #select_list, #select_lists, #set_container, #show_all_objects, #spans, #strongs, #table, #tables, #text_field, #text_fields, #wait

Constructor Details

#initialize(container, how, what) ⇒ InputElement

Returns a new instance of InputElement.



7
8
9
10
11
12
# File 'lib/watir/input_elements.rb', line 7

def initialize(container, how, what)
  set_container container
  @how = how
  @what = what
  super(nil)
end

Instance Method Details

#locateObject



4
5
6
# File 'lib/watir/input_elements.rb', line 4

def locate
  @o = @container.locate_input_element(@how, @what, self.class::INPUT_TYPES)
end