Monthly Archives: February 2013

Script and html in one file with data:text/html

p0deje’s has used a neat trick in some of his StackOverflow answers to create a single file with both the watir code and the html. Using this method, I have found it much quicker to test and debug smaller bits … Continue reading

Posted in Watir-Webdriver | Leave a comment

Why write a book on Watir

The other day, I was discussing with someone the idea of contributing to the Watir book, “Homebrewer’s Guide to Watir”. They challenged the idea by asking, “why would you want a book on Watir?” I was shocked by such a … Continue reading

Posted in Watir | Tagged | 1 Comment

Getting a checkbox by its adjacent text node

Problem There was an interesting StackOverflow question the other day on being able to set a checkbox based on its text (original selenium-webdriver question). The html in question looked like: You cannot set the second checkbox by doing: The text … Continue reading

Posted in Watir, Watir-Classic, Watir-Webdriver | Tagged , , | Leave a comment

Adding a “Watir Reference” section

It was interesting to read Alister Scott’s recent post on “On writing a book” as I too have been re-thinking my writing medium. I had started this blog after reading Željko Filipin’s book on Watir, now titled “Homebrewer’s Guide to … Continue reading

Posted in Watir | 7 Comments

Troubleshooting the UnknownObjectException – Unable to Locate Element

On StackOverflow, there have been quite a few questions related to getting an UnknownObjectException. There are a variety of possible reasons for why this exception occurs, which makes debugging these issues on StackOverflow a guessing game (as we usually do … Continue reading

Posted in Watir, Watir-Classic, Watir-Webdriver | Tagged , , | Leave a comment