Did you start firefox with the jssh parameter? My firefox shortcut looks like this: "C:\Program Files\Mozilla Firefox\firefox.exe" -jssh
I run that shortcut (opens firefox) before I run a test. Good luck, Dave On Feb 6, 12:12 am, watirlearner <[email protected]> wrote: > I am learning Watir and trying to do Watir in 5 minutes. I followed > the instructions of installing firewatir 1.7.1, JSSH extension for > Firefox 3.6, and "Redistributed package for VS 2008 SP1", but I keep > getting an error (Unable ToStartJSSHException) even though all of > those installation were succesful. > > c:\>irb > irb(main):001:0> require 'watir' > => true > irb(main):002:0> Watir::Browser.default = 'firefox' > => "firefox" > irb(main):003:0> Watir::Browser.new > Watir::Exception::UnableToStartJSShException: Unable to connect to > machine : 127 > .0.0.1 on port 9997. Make sure that JSSh is properly installed and > Firefox is ru > nning with '-jssh' option > from C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.7.1/lib/ > firewatir/f > irefox.rb:156:in `rescue in set_defaults' > from C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.7.1/lib/ > firewatir/f > irefox.rb:149:in `set_defaults' > from C:/Ruby192/lib/ruby/gems/1.9.1/gems/firewatir-1.7.1/lib/ > firewatir/f > irefox.rb:50:in `initialize' > from C:/Ruby192/lib/ruby/gems/1.9.1/gems/commonwatir-1.7.1/lib/ > watir/bro > wser.rb:65:in `new' > from C:/Ruby192/lib/ruby/gems/1.9.1/gems/commonwatir-1.7.1/lib/ > watir/bro > wser.rb:65:in `new' > from (irb):3 > from C:/Ruby192/bin/irb:12:in `<main>' > irb(main):004:0> gem list > NameError: undefined local variable or method `list' for main:Object > from (irb):4 > from C:/Ruby192/bin/irb:12:in `<main>' > > Can someone help me here please? > > Thanks, > W. -- 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]
