Hi, we have an error selecting an item of a select list within of a modal dialog. The code is as in the following example: @ie.modal_dialog.select_list(:id,'id_value').select(2) The error is: NoMethodError: undefined method `focus' for #<Watir::ModalDialog:0x31cde50> from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:207:in `focus' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:207:in `focus' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:207:in `focus' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:207:in `focus' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/input_elements.rb:160:in change_selected' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/input_elements.rb:118:in `block in select' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:472:in `perform_action' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/input_elements.rb:117:in `select' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/input_elements.rb:46:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/input_elements.rb:46:in `block in select' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:472:in `perform_action' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/input_elements.rb:41:in `select' from (irb):72 The error is the same with Ruby 1.9.3. With IRB we have found that putting a comment on the following line 207: @container.focus in C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.4.0/lib/watir-classic/element.rb:207 the item in the select list is selected, but I don't think that is a good solution. Everyone had the same problem? How can we solve it? Thanks Stefano
-- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.