OperaWatir pre-release
By Andreas Tolf Tolfsenandreastt. Monday, December 20, 2010 10:16:49 PM
The Norwegian Opera & Ballet House in Bjørvika, Oslo. Notice the water.
Photo: Rafał Konieczny, CC by-sa
We are pleased to announce the pre-release of OperaWatir, a library for driving the Opera browser. It is the latest addition to the Watir family, a toolkit for automating interactions with web browsers, and to Opera Software's range of testing frameworks.
OperaWatir provides a querying engine and Ruby bindings to OperaDriver, the back end library. It lets you easily and automatically test your web applications just like a human would, simulating mouse clicks, text entry and the submitting of forms, reporting the results back so you know when things work, and when they break. By using a real web browser to test exactly what users see you are ensuring that your entire stack, including HTML, scripts, styling, embedded resources and back end functionality, is working.
At Opera Software, we use Watir not only to test web applications, but also for testing the browser itself. We have about 1,200 automated renderer tests running against every new internal build we compile. You can read more about the background of OperaWatir and testing at Opera in an earlier blog post my colleague wrote in 2009.
The source code is already available on GitHub, so you can go and check it out now! While the OperaDriver back end is not yet free software, we aim to release it early next year.
We need to point out that this is a pre-release, and that it should not be considered stable or suitable for use in production yet. Also, while we maintain compatibility with the current Watir implementations, it includes a proof of concept API based on Jari Bakken's ideas for Watir 2. For the more technically inclined I would highly recommend having a look at our ideas. If you have any feedback, let us know! It is our hope that we can discuss and develop this API further in cooperation with the other Watir implementors.
We hope you will enjoy playing around with OperaWatir. You are likely to find some bugs, but we decided to follow the release early and often principle, and push it out to the public before Christmas rather than waiting for another month or two until it is pristine and perfect.
We hope that you will enjoy this little Christmas gift, and furthermore, we wish you a Merry Christmas and a Happy New Year from us here at Opera Software in Oslo!

Daniel HendrycksDanielHendrycks # Tuesday, December 21, 2010 12:23:50 AM
Originally posted by core:
Yes!
hundredorzero # Tuesday, December 21, 2010 12:31:51 AM
Blaz(ž) Pristavitalianjob44 # Tuesday, December 21, 2010 12:39:20 AM
d4rkn1ght # Tuesday, December 21, 2010 2:58:15 AM
Artur „Jurgi” JurgawkaJurgi # Tuesday, December 21, 2010 4:46:37 AM
Originally posted by italianjob44:
http://files.myopera.com/Tamil/Smilies/Eek.gif -
Mağruf ÇolakoğluZAHEK # Tuesday, December 21, 2010 6:11:57 AM
Hokkuthokkut # Tuesday, December 21, 2010 7:02:20 AM
Cutting Spoonhellspork # Wednesday, December 22, 2010 5:32:13 PM
Originally posted by italianjob44:
Most web presentation engines are already available for embedding, at one level or another. (For example, http://www.lunascape.tv/ combines Trident/Gecko/Webkit under one framework)
This is not like ActiveX or VBScript, or JS libraries for embedding a page inside another page. This is a special, external program that exchanges data with the Opera browser. I assume that Watir has been held back by efforts in Core to expand Scope?
Michael A. Puls IIburnout426 # Thursday, December 23, 2010 7:50:46 AM
mfreitas # Thursday, December 23, 2010 7:12:46 PM
Tuttle # Monday, January 31, 2011 4:34:41 PM
Ioan Lichiioanlichi # Monday, May 23, 2011 2:38:01 PM
That post only shown a movie of the automation but no how to.
It will be very nice to be able to do this kind of automation, and I'm very interested in it.
Cutting Spoonhellspork # Monday, May 23, 2011 9:14:23 PM
There is some documentation, and you can probably get more help in the forums. Seems the best development environment is Linux, and you will need to install some extended scripting support packages.
Ioan Lichiioanlichi # Tuesday, May 24, 2011 11:59:47 AM
Cutting Spoonhellspork # Wednesday, May 25, 2011 5:58:44 PM
Ioan Lichiioanlichi # Monday, May 30, 2011 12:40:29 PM
I played with the debugger and is a very useful tool but not for what I want right now.
Thank you for your replies.