Thanks Jari,

one of the things I was hoping to acheive was to eaily test on
multiple FF versions. ( weve seen subtle but, for our app,
catastrophic problems in different point versions of FF )

I got this to work by changing the windows path method in

C:\Ruby\lib\ruby\gems\1.8\gems\selenium-webdriver-0.1.1\lib\selenium\webdriver\firefox\binary.rb

is there a better way?

( sorry, this has got a bit of topic for the dev list )

Paul



On Thu, Dec 9, 2010 at 12:42 PM, Paul Rogers <paul.rog...@shaw.ca> wrote:
> oh, this was embarassing.....The one that is being launched, and
> presumably the one in the default firefox position is version 2.0 of
> Firefox. Which presumably is supported by nothing in the whole world.
>
> I'll try and move the default locations, and load  more reasonably
> versioned browser.
>
> Paul
>
>
>
> On Thu, Dec 9, 2010 at 12:06 PM, Jari Bakken <jari.bak...@gmail.com> wrote:
>> Den 9. des. 2010 kl. 18:04 skrev Paul Rogers <paul.rog...@shaw.ca>:
>>
>>> Ive ben trying to update my tests from the horribly old version of
>>> watir Ive been using to something upto date. At the same time I
>>> thought Id look into webdriver.
>>>
>>> While IE seems to work fine, I cant get firefox to work.
>>>
>>> FF opens ok, but I get the following exception. Code below
>>
>> What version of Firefox / Windows? Any interesting messages in the
>> Firefox error console?
>>
>>
>>>
>>> Is there any thing I need to do? Ive installed the selenium-webdriver
>>> gem and have the webdriver jar in the class path. One thing that may
>>> be the cause, I have many versions of FF installed, and maye the one
>>> that is being launched isnt the one thats 'attached' to webdriver
>>>
>>>
>>> Thanks
>>>
>>> Paul
>>>
>>>
>>> selenium-webdriver (0.1.1)
>>> watir-webdriver (0.1.7)
>>>
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/launcher.rb:81:in
>>> `connect_until_stable': u
>>> nable to obtain stable firefox connection in 60 seconds
>>> (Selenium::WebDriver::Error::WebDriverError)
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/launcher.rb:37:in
>>> `launch'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/socket_lock.rb:32:in
>>> `locked'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/launcher.rb:32:in
>>> `launch'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/bridge.rb:21:in
>>> `initialize'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/common/driver.rb:38:in
>>> `new'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/common/driver.rb:38:in
>>> `for'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver.rb:51:in
>>> `for'
>>>        from 
>>> C:/Ruby/lib/ruby/gems/1.8/gems/watir-webdriver-0.1.7/lib/watir-webdriver/browser.rb:34:in
>>> `initialize'
>>>        from webdriver-sample.rb:4:in `new'
>>>        from webdriver-sample.rb:4
>>>
>>>
>>>
>>> require 'rubygems'
>>> require 'watir-webdriver'
>>>
>>>  browser = Watir::Browser.new :firefox
>>>  browser.goto "http://google.com";
>>>  browser.text_field(:name => 'q').set("WebDriver rocks!")
>>>  browser.button(:name => 'btnG').click
>>>  puts browser.url
>>>  browser.close
>>> _______________________________________________
>>> Wtr-development mailing list
>>> Wtr-development@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/wtr-development
>> _______________________________________________
>> Wtr-development mailing list
>> Wtr-development@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-development
>>
>
_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to