Class: Watir::ElementMapper

Inherits:
Object
  • Object
show all
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

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(wrapper_class, container, how, what) ⇒ ElementMapper

Returns a new instance of ElementMapper.



360
361
362
363
364
365
# File 'lib/watir/element.rb', line 360

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



367
368
369
370
# File 'lib/watir/element.rb', line 367

def method_missing method, *args
  locate
  @wrapper_class.new(@o).send(method, *args)
end