Class: Watir::ElementMapper
- Inherits:
-
Object
- Object
- Watir::ElementMapper
- Includes:
- Container
- Defined in:
- lib/watir/element.rb
Overview
Still to be used
Instance Attribute Summary
Attributes included from Container
#activeObjectHighLightColor, #page_container, #type_keys, #typingspeed
Instance Method Summary collapse
-
#initialize(wrapper_class, container, how, what) ⇒ ElementMapper
constructor
A new instance of ElementMapper.
- #method_missing(method, *args) ⇒ Object
Methods included from Container
#area, #areas, #button, #buttons, #cell, #cells, #checkbox, #checkboxes, #dds, #divs, #dls, #dts, #element, #element_by_css, #elements, #ems, #file_field, #file_fields, #form, #forms, #frame, #frames, #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(wrapper_class, container, how, what) ⇒ ElementMapper
Returns a new instance of ElementMapper.
386 387 388 389 390 391 |
# File 'lib/watir/element.rb', line 386 def initialize wrapper_class, container, how, what @wrapper_class = wrapper_class set_container @how = how @what = what end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
393 394 395 396 |
# File 'lib/watir/element.rb', line 393 def method_missing method, *args locate @wrapper_class.new(@o).send(method, *args) end |