On Thu, May 31, 2012 at 7:46 AM, Gajendra Jain <[email protected]> wrote: > Is there any way, we can debug the WATIR scripts step by step?
Google for ruby debugger. Rubymine IDE has a debugger, but I have used it maybe once or twice. > Can we run the scripts on the existing opened browser? If you are using watir gem, yes. If you are using watir-webdriver gem, no. If I remember correctly: browser = Watir::Browser.attach(:url => /google/) More info: http://rdoc.info/gems/watir-classic/Watir/Browser#attach-class_method Željko -- watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
