Basic Interaction with Web Pages
NOTE: The following tutorial uses Chrome for the examples.
Let's have a look at how to use Watir and Ruby to take control of the most commonly used web elements that you'll find on most websites such as text fields, links and buttons. To interact with any of these is very simple and requires pretty much just one line of code per element interaction. I've mocked up a little webpage with a load of different elements on it that we'll use in the following examples, check it out here: