Thank you for your help. I found the problem. My assertion was wrong. I should have used msg.exists?.should == true since msg.should_not == nil is allways true. Watir always returns an object which might or might nor have text field. -- Posted via http://www.ruby-forum.com/.