Hi,
for link.methods I can see to_s listed as one of the methods.
However when I execute it it fails with NoMethodError.

I am working on the HEAD branch of 1.5 (watir-1.5.0.1005).

As I have not developed any Ruby/Watir code, can anybody
point me to a link or doc which can guide me fix such problems.

Thanks and Regards,
Manish

irb(main):015:0> $ie.frame("mainFrame").link(:index, 1).methods
=> ["table", "hiddens", "html", "instance_variables", "frozen?", 
"file_field", "__send__", "link_has_image", "to_a", 
"activeObjectHighLightColor", "class_name", "log", "src", "radio", 
"flash", "href", "ps", "class", "activeObjectHighLightColor=", 
"exists?", "text", "p", "instance_variable_get", "before_text", 
"link_string_creator", "to_s", "send", "cell", "fire_event", "clone", 
"nil?", "select_list", "display", "getOLEObject", "enabled?", 
"instance_variable_set", "to_yaml_properties", "require_gem", "form", 
"file_fields", "inspect", "pretty_print_inspect", "div", 
"show_all_objects", "radios", "instance_eval", "image", "for", 
"fireEvent", "dup", "pre", "innerText", "alt", "equal?", "name", 
"afterText", "after_text", "locate_tagged_element", "divs", "methods", 
"row", "require", "method", "cells", "attribute_value", "taint", "eql?", 
"select_lists", "focus", "beforeText", "hash", "disabled", 
"singleton_methods", "text_field", "document", "instance_of?", "pres", 
"waitForIE", "extend", "button", "link", "id", "span", 
"require_gem_with_options", "text_fields", "locate_input_element", 
"protected_methods", "wait", "label", "tainted?", "value", "links", 
"checkbox", "textField", "is_complex_yaml?", "untaint", "fileField", 
"kind_of?", "popup", "__id__", "pretty_print_cycle", "disabled?", 
"private_methods", "==", "style", "frame", "===", "freeze", "locate", 
"is_a?", "selectBox", "checkboxes", "click", "ole_object", "title", 
"spans", "to_yaml", "pretty_print", "object_id", "hidden", "=~", 
"public_methods", "images", "rows", "ole_object=", "buttons", 
"typingspeed", "labels", "checkBox", "pretty_print_instance_variables", 
"respond_to?", "to_yaml_type", "tables", "click_no_wait", "type", 
"typingspeed="]
irb(main):015:0> $ie.frame("mainFrame").link(:index, 1).to_s
NoMethodError: undefined method `innertext' for #<Watir::Link:0x35aafb8>
    from C:/Program 
Files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:3291:in 
`link_string_creator'
    from C:/Program 
Files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.1005/./watir.rb:3300:in `to_s'
    from (irb):15
    from (null):0
irb(main):016:0>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to