Why do you have watir and watir-webdriver both? I will try with the
following:

require 'rubygems'
require 'watir-webdriver'

browser = Watir::Browser.new :firefox

On 12 October 2011 16:56, Babu <suvodasgu...@gmail.com> wrote:

> hi,
> my code is
> require 'rubygems'
> require 'watir'
> require 'watir-webdriver'
> require 'watir/browser'
> include Watir
> Watir::Browser.default = 'ie'
> $ie = Watir::Browser.new
> $ie.goto("www.google.com")
>
> it is working fine while opening for IE but when i change to 'ff' or
> 'firefox'
> it is not opening at all.
>
> i have gem list as follows:
> C:\Suvo>gem list
>
> *** LOCAL GEMS ***
>
> activesupport (3.1.1)
> builder (3.0.0)
> child-process-manager (0.0.3)
> childprocess (0.2.2)
> commonwatir (2.0.2)
> fattr (2.2.0)
> ffi (1.0.9)
> firewatir (1.9.4)
> flexmock (0.9.0)
> hoe (2.12.3)
> json_pure (1.6.1)
> minitest (2.6.1)
> multi_json (1.0.3)
> nokogiri (1.4.0 x86-mswin32)
> rake (0.9.2)
> rautomation (0.6.3)
> rdiscount (1.6.8)
> rubygems-update (1.8.10)
> rubyzip (0.9.4)
> s4t-utils (1.0.4)
> selenium-webdriver (2.7.0)
> session (3.1.0)
> user-choices (1.1.6.1)
> watir (2.0.2)
> watir-webdriver (0.3.4)
> win32-api (1.4.8)
> win32-process (0.6.5)
> windows-api (0.4.0)
> windows-pr (1.2.1)
> xml-simple (1.1.0)
>
>
> please help
> thanks
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>



-- 
Regards,

Rahul Sharma
Ph:+44 7800 736851

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to