[wtr-general] Re: How to handle Exceptions in Watir

2009-09-25 Thread Mark Anderson
und? What have you tried? /\/\ark > -Original Message- > From: watir-general@googlegroups.com [mailto:watir- > gene...@googlegroups.com] On Behalf Of Vishal > Sent: Wednesday, September 23, 2009 7:29 AM > To: Watir General > Subject: [wtr-general] Re: How

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-23 Thread Vishal
I am getting the following error d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_ex ists': Unable to locate element, using :text, "Return to Previous Page" (Watir:: Exception::UnknownObjectException) from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ e

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-17 Thread Mark Anderson
What exception are you seeing? What would you like to do when you encounter it? Without more information, it will be hard to give you more than basic information about exception handling. Here is the link to a page about ruby exception handling that I refer to when working in this area: http://

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-17 Thread Wesley Chen
require 'watir' require 'watir/testcase' class Test1 < Watir::TestCase def test1 end def test2 end end When there is exception in test1, test2 will still run. Expect it could work. Thanks. Wesley Chen. On Thu, Sep 17, 2009 at 3:02 PM, Vishal wrote: > > While running