0

我安装了 watir-webdriver 并将 chromedriver 复制到 path(/usr/bin) 文件夹中。它对我来说很好。但是当我在另一台机器上做同样的事情时,它抛出了一个错误:Errno::EHOSTDOWN: Host is down - connect(2).

有什么我想配置的吗?

我正在使用 Mac os x 10.6.8、X-code 4.2、ruby 1.9.3

堆栈跟踪:

Errno::EHOSTDOWN: Host is down - connect(2)
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver2.33.0/lib/selenium/webdriver/common/socket_poller.rb:63:in `connect_nonblock'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/socket_poller.rb:63:in `listening?'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/socket_poller.rb:23:in `block in connected?'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/socket_poller.rb:87:in `with_timeout'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/socket_poller.rb:23:in `connected?'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/chrome/service.rb:49:in `start'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/chrome/bridge.rb:15:in `initialize'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/driver.rb:37:in `new'
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/driver.rb:37:in `for'   
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver.rb:67:in `for'   
from /Users/pakku/.rvm/gems/ruby-1.9.3-p194/gems/watir-webdriver-0.6.4/lib/watir-webdriver/browser.rb:46:in `initialize'    
from (irb):3:in `new'
from (irb):3
from /Users/pakku/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
4

0 回答 0