thanks for you response, but i always have problems :D
now,  when i launch my test i get this error:

Selenium::WebDriver::Error::WebDriverError: unexpected response, code=503, 
content-type="text/html"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>


Le mardi 16 octobre 2012 16:07:36 UTC+2, Al Snow a écrit :
>
>  Check this: 
> http://raspberrypi.stackexchange.com/questions/1868/ruby-and-selenium-webdriver-address-family-not-supported-by-protocol-socket
>
> ------------------------------
> Date: Tue, 16 Oct 2012 06:53:25 -0700
> From: [email protected] <javascript:>
> To: [email protected] <javascript:>
> Subject: Re: [wtr-general] Error when a launch watir on OpenSuse11
>
> I still have problems when i launch my test :
>
> ruby Test2.rb
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/port_prober.rb:25:in
>  
> `initialize': Address family not supported by protocol - socket(2) 
> (Errno::EAFNOSUPPORT)
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/port_prober.rb:25:in
>  
> `new'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/port_prober.rb:25:in
>  
> `free?'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/port_prober.rb:23:in
>  
> `each'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/port_prober.rb:23:in
>  
> `free?'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/port_prober.rb:5:in
>  
> `above'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:49:in
>  
> `find_free_port'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:33:in
>  
> `launch'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
>  
> `locked'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
>  
> `launch'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/firefox/bridge.rb:20:in
>  
> `initialize'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/driver.rb:31:in
>  
> `new'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/driver.rb:31:in
>  
> `for'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver.rb:65:in
>  
> `for'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/browser.rb:35:in
>  
> `initialize'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/browser.rb:18:in
>  
> `new'
>         from 
> /usr/lib64/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/browser.rb:18:in
>  
> `start'
>         from Test2.rb:6
>
>
> my Test2.rb  :
>
> require 'rubygems'
> require 'watir-webdriver'
> require 'headless'
> headless = Headless.new
> headless.start
> b = Watir::Browser.start 'www.google.com'
> puts b.title
> b.close
> headless.destroy
>
> thanks
>  
> Le mardi 16 octobre 2012 15:19:35 UTC+2, Simos a écrit :
>
> Yes i did, i have Xvfb in my OpenSUSE11 OS
> i insllated Xfvb like this : sudo zypper install -y xorg-x11-server
>
> Le mardi 16 octobre 2012 15:11:24 UTC+2, Željko Filipin a écrit :
>
> On Tue, Oct 16, 2012 at 2:36 PM, Simos <[email protected]> wrote:
> > Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
>
> Did you install xvfb?
>
> At ubuntu it would be:
>
> sudo apt-get install xvfb
>
> Željko
>
>
> -- 
> Before posting, please read http://watir.com/support. In short: search 
> before you ask, be nice.
>  
> [email protected] <javascript:>
> http://groups.google.com/group/watir-general
> [email protected] <javascript:>
>  

-- 
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