In the locator.rb for watir api, there is call that execute the element.send(@how) method like below, but I fail to find the send method in element.rb,
anybody can tell where it is and which rb files? def locate object_index = 1 @elements.each do |object| element = Element.new(object) if @types.include?(element.type) if @how == :index attribute = object_index else begin puts @how attribute = element.send(@how) rescue NoMethodError raise MissingWayOfFindingObjectException, "[EMAIL PROTECTED] is an unknown way of finding an <INPUT> element ( [EMAIL PROTECTED])" end end if @what.matches(attribute) if @value if element.value == @value return object end else return object end end object_index += 1 end end return nil end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---