Opera Core Concerns

Official blog for Core developers at Opera

OperaWatir pre-release

, , ,

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!

Pulling our socks upRagnarök — viking browser with HTML5 parser!

Comments

Daniel HendrycksDanielHendrycks Tuesday, December 21, 2010 12:23:50 AM

yes

Originally posted by core:

The source code is already available on GitHub


Yes!

hundredorzero Tuesday, December 21, 2010 12:31:51 AM

Nice

Blaz(ž) Pristavitalianjob44 Tuesday, December 21, 2010 12:39:20 AM

So this is Opera specific web macro, can it handle authorization too?, that could be dangerous if it falls in wrong hands.

d4rkn1ght Tuesday, December 21, 2010 2:58:15 AM

up

Artur „Jurgi” JurgawkaJurgi Tuesday, December 21, 2010 4:46:37 AM

Originally posted by italianjob44:

that could be dangerous if it falls in wrong hands


http://files.myopera.com/Tamil/Smilies/Eek.gif -

Hokkuthokkut Tuesday, December 21, 2010 7:02:20 AM

wow cool up

Cutting Spoonhellspork Wednesday, December 22, 2010 5:32:13 PM

Originally posted by italianjob44:

So this is Opera specific web macro, can it handle authorization too?, that could be dangerous if it falls in wrong hands.


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

http://operawatir.org/ seems to be messed up. It never has a horizontal scrollbar when content doesn't fit width-wise.

mfreitas Thursday, December 23, 2010 7:12:46 PM

Edited by mod: Please do not hijack the discussion with off-topic comments.

Tuttle Monday, January 31, 2011 4:34:41 PM

Nice, I will try some of my watir scripts with this. wink

Ioan Lichiioanlichi Monday, May 23, 2011 2:38:01 PM

How about testing the mobile web, which was shown in this http://my.opera.com/core/blog/2009/03/06/test-automation-with-operawatir link?

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

http://www.opera.com/developer/tools/operawatir/

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

Thank you for you suggestions. Unfortunately I've searched and searched all over the place and didn't find anything similarly to that movie article.

Cutting Spoonhellspork Wednesday, May 25, 2011 5:58:44 PM

Oh. Are you trying to use OperaWatir to automate the testing of Opera Mini? Because I do not think that is publicly supported at this time. However you can connect Mini or Mobile to a desktop computer for remote debugging, and the "server:source" command is a vital tool. Apparently there are extra commands that will make server:source directly dump the output into a website rather than onto your screen, but I have to look them up again.

Ioan Lichiioanlichi Monday, May 30, 2011 12:40:29 PM

Yes, I'm trying to automate the testing of Opera Mini/Mobile using no matter what. I don't see any possible way of automating them on a phone "emulator", automating for me meaning driving the browser and doing actions in webpages automatically.

I played with the debugger and is a very useful tool but not for what I want right now.

Thank you for your replies.

Write a comment

New comments have been disabled for this post.