On 5/24/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:
ie.link(:after, ie.image(:id, 'foo')).click
Bret, this does not work for me. Am I doing something wrong? Environment: cmd>ruby -v ruby 1.8.2 (2004-12-25) [i386-mswin32] irb> Watir::IE::VERSION => "1.5.1.1166" HTML: <img src="au1.png" id="foo" /> <a href="">text</a> IRB: irb(main):011:0> ie.link(:after, ie.image(:id, 'foo')).click Watir::Exception::MissingWayOfFindingObjectException: after is an unknown way of finding a <A> element (type: id: foo name: value: disabled: false src: file:///C:/Documents%20and%20Settings/limited/Desktop/au1.png file date: 05/24/2007 file size: 38804 width: 419 height: 463 alt: ) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1190:in `match?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1171:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1169:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1169:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir- 1.5.1.1166/./watir.rb:1168:in `catch' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1168:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1166:in `each_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1157:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1157:in `each_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir- 1.5.1.1166/./watir.rb:1166:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1123:in `locate_tagged_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:3668:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:2411:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:2642:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir- 1.5.1.1166/./watir.rb:2417:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:2587:in `click!' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:2573:in `click'
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general