In HEAD, i'm getting the following error using REXML 3.1.4. I could swear that this was working fine with my other computer also using REXML 3.1.4, so i'm a little puzzled. All the other xpath tests are passing (individually; the xpath_tests.rb still has problems as a suite).
BTW, I'm working on setting up a separate wtr-dev mailing list for such issues as these.
Bret
Loaded suite D:/workspace/watir/unittests/links_xpath_test
Started
EE.
Finished in 2.413 seconds.
1) Error:
test_link_click(TC_Links_XPath):
NoMethodError: undefined method `include?' for nil:NilClass
C:/ruby/lib/ruby/site_ruby/1.8/rexml/functions.rb:142:in `contains'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `send'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:283:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:488:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:476:in `descendant_or_self'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:315:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:125:in `match'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:56:in `parse'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath.rb:53:in `each'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/element.rb:939:in `each'
D:/workspace/watir/unittests/../watir.rb:1951:in `elements_by_xpath'
D:/workspace/watir/unittests/../watir.rb:1941:in `element_by_xpath'
D:/workspace/watir/unittests/../watir.rb:3247:in `locate'
D:/workspace/watir/unittests/../watir.rb:2144:in `assert_exists'
D:/workspace/watir/unittests/../watir.rb:2287:in `click'
D:/workspace/watir/unittests/links_xpath_test.rb:30:in `test_link_click'
2) Error:
test_link_exists(TC_Links_XPath):
NoMethodError: undefined method `include?' for nil:NilClass
C:/ruby/lib/ruby/site_ruby/1.8/rexml/functions.rb:142:in `contains'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `send'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:283:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each_with_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:488:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:476:in `descendant_or_self'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:315:in `expr'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:125:in `match'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:56:in `parse'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath.rb:53:in `each'
C:/ruby/lib/ruby/site_ruby/1.8/rexml/element.rb:939:in `each'
D:/workspace/watir/unittests/../watir.rb:1951:in `elements_by_xpath'
D:/workspace/watir/unittests/../watir.rb:1941:in `element_by_xpath'
D:/workspace/watir/unittests/../watir.rb:3247:in `locate'
D:/workspace/watir/unittests/../watir.rb:2345:in `exists?'
D:/workspace/watir/unittests/links_xpath_test.rb:15:in `test_link_exists'
3 tests, 1 assertions, 0 failures, 2 errors
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
