I have installed ruby 1.9.2 and watir on my windows 7 system. Now I want to automate my web browser. Suppose there are 10 different links which I want my browser to browse after certain amount of time. How do I do this? I am new to ruby and watir. Can someone suggest me how the process of coding would be or suggest me a site or an ebook where I can get material regarding this.
Since a lot of the basics of scripting (conditional logic, loops, waiting, etc) are relative to the basic Ruby language and not the specific classes and methods implemented by Watir, I'd suggest starting off with a good book on scripting with Ruby.
My favorite is by one of the original folks responsible for Watir itself, Brian Marick "Everyday Scripting with Ruby: for Teams, Testers, and You".
In terms of watir, there's the tutorials in the Watir wiki, and the book that Zelkjo is working on.
The thing you describe, is 90% scripting (repeating a given type of action, with a different input, after a specified time interval) and 10% watir (navigating to the link value), so I'd start with the scripting stuff first.
For someone on a budget, I would also offer the following "free" books (I put 'free' in quotes because I'm familiar with all the time and effort that goes into authoring a book, and these are not 'free'. They come at the expense of a lot of blood, sweat and tears on the part of authors/editors etc. who have then been generous enough to then offer up their work without pay. I think calling them 'free' devalues the labor that went into creating them.)
All of those are I think more geared to someone who already understands programming, and not as good for a new tester starting out doing automation. For that you'd be better served spending the money for Marik's book, Since he's worked as a tester, and understands testing, and the book is largely aimed at testers, I thus think you can get far more out of it. Seriously it may not be free, but consider it an investment in your education and career.
Ruby on Rails is an open source full-stack web application framework created by David Heinemeier Hansson (DHH) in 2004 using the Ruby programming language. It is an optimized framework aimed at programmer's happiness and providing sustainable productivity by making use of CoC (Convention over Configuration), DRY (Don't Repeat Yourself), Active Record Pattern and REST (Representational State Transfer) philosophies.
It is based on the MVC Architectural Design Pattern, which separates web applications into three different modules:
This helps to isolate business logic from presentation and makes code maintenance significantly easier as well as more flexible.
Ruby != Ruby on Rails
The ruby-on-rails tag is for questions related to the Ruby on Rails framework. This tag is particularly appropriate for questions about:
Questions about Ruby on Rails should not be tagged with [tag: ruby] unless the question is about the Ruby language in general, its syntax and libraries, or other questions not specific to the Ruby on Rails MVC framework.
Questions regarding specific versions of Ruby on Rails can also be asked on the appropriate tags: ruby-on-rails-3 ruby-on-rails-3.1 ruby-on-rails-3.2 ruby-on-rails-4 ruby-on-rails-4.1 ruby-on-rails-4.2 ruby-on-rails-5
versionrelated to the issue.
There are hundreds of people around the world who contribute to Ruby on Rails. You can start by following this guide.