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

#__ole_inner_elements, #input_element_locator, #locator_for, #log, #set_container, #show_all_objects, #tagged_element_locator, #wait

Constructor Details

#initialize(wrapper_class, container, how, what) ⇒ ElementMapper

Returns a new instance of ElementMapper.



455
456
457
458
459
460
# File 'lib/watir/element.rb', line 455

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



462
463
464
465
# File 'lib/watir/element.rb', line 462

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