I have a table cell that sometimes holds a span and sometimes holds a select list. I was trying a begin/rescue like this;
begin puts "looking for select list" @row.cell(:index, 2).select_list(:index, 1) rescue Exception => e puts "looking for span" @row.cell(:index, 2).span(:index, 1) end I get the 'looking for select list' message, but never the 'looking for span' message. Instead I get c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.3/lib/watir/element.rb:52:in `assert_exists': Unable to locate element, using :index, 1 Is there a way to rescue an assert_exists failure? Andy --~--~---------~--~----~------------~-------~--~----~ 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 watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---