|
How do I find out if an item exists
in a Select Box? I looked at the unittests selectbox_test.rb
and see that you can test for the existence of the Select Box, but couldn’t find an example
for testing for the existence of an “item” in the Select Box. I tried this, but got an error: irb(main):045:0>
(ie.frame("customizeRemoteContent").selectBox(:id, "availableColumnsSelectBox").select_value(/Sector/).exists?) NoMethodError: undefined method
`exists?' for nil:NilClass from (irb):45 from ♥:0 irb(main):046:0> require
'unittests/testUnitAddons' LoadError: No such file to load --
unittests/testUnitAddons from
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire__' from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`re quire' from (irb):46 from ♥:0 Testing the existence of the Select
Box works fine: irb(main):043:0>
(ie.frame("customizeRemoteContent").selectBox(:id, "availableColumnsSelectBox").exists?) => true |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
