Tag Archives: WATIR

Explaining Watir, Selenium and WebDriver

Something I seem to be explaining to people all the time… the relationships between Watir, Watir “2.0″, Selenium, Selenium “2.0″ and WebDriver. Alister Scott has done an excellent job of explaining the impact of WebDriver on Selenium and Watir and … Continue reading

Posted in Automated Testing, General Testing Stuff, Tools, WATIR | Tagged , , , , | Leave a comment

Lessons from a watir success story

There aren’t enough UI test automation success stories documented on the net, so here’s my contribution. This post is about  how we started with zero automated UI testing capability, and how a couple of months later we had the capability … Continue reading

Posted in Automated Testing, Ruby, Test Management, Test::Unit, Tools, WATIR, agile | Tagged , , , , , , , , , | 10 Comments

Debugging cucumber tests with ruby-debug

Testing with cucumber blows test/unit out of the water, apart from one small aspect… I can’t use the Netbeans’ GUI debugger. The Netbeans debugger has been a joy to use, but sadly I have to say goodbye. So I’m left … Continue reading

Posted in Automated Testing, Example Code, Ruby, Tools, WATIR, cucumber | Tagged , , , , , , , | Leave a comment

Screencast: Beginning with Cucumber

We have close to 1,000 watir tests that we’re beginning to migrate from test/unit to cucumber. The “Beginning with Cucumber” Railscast is a great introduction to how cucumber works – it’s quite rails-centric, but you’ll get the idea. Bookmark to:

Posted in Automated Testing, Links, Test::Unit, WATIR, cucumber | Tagged , , , , | Leave a comment

Quick and easy Watir test suites with Test::Unit

A test team usually has a need for a few fixed test suites, eg: a sanity suite or a suite which contains all tests for a full run. There’s usually also a need to be able to create suites with … Continue reading

Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Test Management, Test::Unit, Tools, WATIR, agile | Tagged , , , , , , , , , | 2 Comments

Watir’s @browser.url returning the previous page’s url

I’ve come across a page which, when I navigate to it and ask it for it’s url (using @browser.url) gives me the previous page’s url. Very frustrating. To get around this, you can use direct DOM manipulation. Here’s a call … Continue reading

Posted in Automated Testing, Example Code, Ruby, Tools, WATIR | Tagged , , , , , , , | 2 Comments

Kill process by name using Ruby on Windows

Though it is possible in ruby to kill a process by its ID in ruby, it isn’t possible to kill processes by name, I guess because it would work differently across operating systems. This is a pain when using watir/firewatir, … Continue reading

Posted in Example Code, Ruby, Tools, WATIR | Tagged , , , , , , | Leave a comment