Getting started with OperaWatir

Forums » Dev.Opera » Archived Article Discussions

This topic has been closed. No new entries allowed.

Reason: You can now post comments on articles on Dev Opera

Forum rules and guidelines

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

9. February 2011, 08:36:48

Opera Software

andreastt

Posts: 3

Getting started with OperaWatir

This article provides an easy introduction to Opera Watir, the perfect solution for all your automated website testing needs.

( Read the article )

10. February 2011, 18:57:56

fighthead

Posts: 5

I can't seem to get it working, I installed it, executed the script but now I'm stuck.
I love opera and think this can come in handy but I don't know how to get started with this one.

Anymore help?
Windows 7 - Opera 11.50

11. February 2011, 12:34:22

vetler

Certified Ninja

Posts: 219

Any chance of getting OperaDriver into a Maven repository?
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." - George Bernard Shaw

11. February 2011, 14:14:13

Opera Software

andreastt

Posts: 3

fighthead: What is the console output? I'm in the #watir channel on Freenode if you want to talk to me (ato).

11. February 2011, 15:33:32

Opera Software

deniz

Posts: 3

@vetler : we will get it into the official selenium-tree, and the maven repo should follow, see http://code.google.com/p/selenium/wiki/UsingWebDriver

27. February 2011, 05:28:51

sheenasantos

Posts: 1

operamini4.0 support

20. March 2011, 15:38:43

Muzzlehatch

Posts: 25

Any news on getting this into Selenium? I was hoping to try driving Opera from Python. I've just checked out selenium trunk but have to admit that I don't see how I can get a local build of Selenium with Opera from the instructions linked above. Simply add a module in maven?

21. March 2011, 20:28:57

timmi

Posts: 194

I don't understand how to get this working...

I've:
- installed JRuby 1.6 for windows
- installed operawatir with jruby -S gem install operawatir
- installed Microsoft Visual C++ 2010 Redistributable Package (x86)

than:
- created a test file "Test1.rb"
with the content:

require 'rubygems'
require 'operawatir'

browser = OperaWatir::Browser.new
browser.goto 'http://maps.google.com/?hl=en'


- got to the console:
D:\Share\Extensions\Tests>jruby Test1.rb
NativeException: org.openqa.selenium.WebDriverException: Launcher not available,
please set it in path or use the JAR file
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.versi
on: '1.6.0_24'
Driver info: driver.version: OperaDriver
initialize at D:/Share/Extensions/Tests/jruby-1.6.0/lib/ruby/gems/1.8/gems/ope
rawatir-0.4-java/lib/operawatir/browser.rb:25
(root) at Test1.rb:4


So, how i get this now to work? i don't like to add an environment variable because i want to be flexible. I want to test with more than one opera version in a row, so i like to pass the script which opera it should take.
Newest Opera Final and Opera Next - YouTube Extension: YouWatch, jetzt auch auf Deutsch

23. March 2011, 11:03:17

Opera Software

andreastt

Posts: 3

Originally posted by Muzzlehatch:

Any news on getting this into Selenium? I was hoping to try driving Opera from Python. I've just checked out selenium trunk but have to admit that I don't see how I can get a local build of Selenium with Opera from the instructions linked above. Simply add a module in maven?


I'm working on getting it in to Selenium right now, actually. I should have a prototype working in a couple of weeks. So when it's in, you should correctly be able to use the Python bindings that they have developed.

23. March 2011, 11:14:04

Opera Software

andreastt

Posts: 3

Originally posted by timmi:

I've:
- installed JRuby 1.6 for windows
- installed operawatir with jruby -S gem install operawatir
- installed Microsoft Visual C++ 2010 Redistributable Package (x86)

[…]

So, how i get this now to work? i don't like to add an environment variable because i want to be flexible. I want to test with more than one opera version in a row, so i like to pass the script which opera it should take.


Can you try JRuby 1.5.5 or earlier? There is a problem with newer versions of JRuby we haven't been able to track down yet. Let me know if that doesn't work.

23. March 2011, 17:52:04

timmi

Posts: 194

Originally posted by andreastt:

Can you try JRuby 1.5.5 or earlier?


Yes, works now.

P.S. maybe you can write in the article or the documentation that you can use "operawatir --help" to get more parameters.
Newest Opera Final and Opera Next - YouTube Extension: YouWatch, jetzt auch auf Deutsch

24. March 2011, 10:48:10

Muzzlehatch

Posts: 25

Originally posted by andreastt:

I'm working on getting it in to Selenium right now, actually. I should have a prototype working in a couple of weeks. So when it's in, you should correctly be able to use the Python bindings that they have developed.


Great stuff! Looking forward to it.

Forums » Dev.Opera » Archived Article Discussions