Hi all,
I am using Watir with firefox browser.
In my project I need to handle multiple tabs in a single window.
For that I have tried 2 types of  code.

One is,
require "rubygems"
require "watir-webdriver"
require "win32ole"
browser = Watir::Browser.new :ff
browser.goto "www.google.com"
ff = WIN32OLE.new("Firefox.Application")
ff.visible = true

It is giving error as,

test.rb:6:in `initialize': unknown OLE server: `Firefox.Application' 
(WIN32OLERu
ntimeError)
    HRESULT error code:0x800401f3
      Invalid class string from test.rb:6:in `new' from test.rb:6


Second is,

require "rubygems"
require "watir-webdriver"
browser = Watir::Browser.new :ff
browser.goto "www.google.com"
sleep 2
browser1 = Watir::Browser.attach(:url,"www.google.com")

It is giving error as,

test.rb:7:in `initialize': unknown OLE server: `AutoItX3.Control' 
(WIN32OLERuntimeError)
    HRESULT error code:0x800401f3
      Invalid class string from test.rb:7:in `new' from test.rb:7

Any one please let me help where I have mistaken.
Or please suggest me any other different code.

Thank you in advance.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to