def i(name, identifier={:index => 0}, &block)
      standard_methods(name, identifier,'i_for', &block)
      define_method(name) do
        return platform.i_text_for identifier.clone unless block_given?
        self.send("#{name}_element").text
      end
    end
def i(name, identifier={:index => 0}, &block)
      standard_methods(name, identifier,'i_for', &block)
      define_method(name) do
        return platform.i_text_for identifier.clone unless block_given?
        self.send("#{name}_element").text
      end
    end
def i ( name , identifier = { :index => 0 } , & block ) standard_methods ( name , identifier , 'i_for' , block ) define_method ( name ) do return platform . i_text_for identifier . clone unless block_given? self . send ( "#{name}_element" ) . text end end
adds three methods - one to retrieve the text of a i element, another to
 retrieve a i element, and another to check for it's existence.

 @example
   i(:italic, :id => 'title')
   # will generate 'italic', 'italic_element', and 'italic?' methods

 @param [Symbol] the name used for the generated methods
 @param [Hash] identifier how we find a i.
 @param optional block to be invoked when element method is called
adds three methods - one to retrieve the text of a i element another to retrieve a i element and another to check for it s existence .