1) The column def is part of a larger table def. I would have to either repeat the column def or the entire table to handle the two types. 2) Defining multiple columns would make it impossible for me to scan down that column and choose a row based on a value in that column. 3) Defining multiple tables would lead to an explosion of table defs and is simply not practical. I would need a separate table def for every combination of types in different columns.
So its the desire to scan a column for a specific value that drives this, along with the fact that my columns are defined inside table objects. On Mar 16, 4:44 pm, Charley Baker <charley.ba...@gmail.com> wrote: > I guess I would question why you'd do that; and those seem like different > tests. But unless you give me a reason, I'd treat them separately. > > Charley Baker > blog:http://blog.charleybaker.org/ > Lead Developer, Watir,http://wtr.rubyforge.org > QA Architect, Gap Inc Direct > > > > On Mon, Mar 16, 2009 at 4:27 PM, <andrew.d...@lthree.com> wrote: > > > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---