!!

Welcome to Selenium Webdriver Forum

As a web user you can read and search through forum content. Once you have registered and signed you can post topics, post replies, set up watch lists, modify forum settings, and use private messaging.

Author Topic: error handling in Ruby  (Read 340 times)

Pradeep V

  • Web User
error handling in Ruby
« on: February 21, 2012, 08:34:34 PM »
when i run my script if there is a failure(eg. some
 text verification failed) then my script continues to run. But if
 there is a error (Object recognition failure) my script stops.. is
 there a way to handle this so that my next line of code executes even
 if there is an error ...... is there a way to handle this. can anyone
 help me on this.......

Wesley Chen

  • Web User
Re: error handling in Ruby
« Reply #1 on: February 21, 2012, 08:34:48 PM »
begin
    your code
 rescue
    puts $!
    puts $@
 end
 On May 24, 12:43 pm, Pradeep V <pradeep.moor...@gmail.com> wrote:
 

- Show quoted text -

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
476 Views
Last post February 22, 2012, 06:37:36 PM
by Saurabh Gupta
3 Replies
626 Views
Last post February 23, 2012, 08:54:01 PM
by Michael
1 Replies
651 Views
Last post April 02, 2012, 09:31:29 PM
by Jason Leyba
6 Replies
1059 Views
Last post May 02, 2012, 08:02:31 PM
by sita maram
0 Replies
744 Views
Last post June 11, 2012, 03:58:00 AM
by futurecraft
3 Replies
814 Views
Last post July 04, 2012, 03:45:20 PM
by Balaji
6 Replies
780 Views
Last post July 26, 2012, 03:16:09 PM
by reddy83

Review www.seleniumwebdriver.com on alexa.com