Rescue in block in connect error

25 views
Skip to first unread message

Julian Nesteriuc

unread,
Jan 13, 2018, 10:13:04 PM1/13/18
to Selenium Users
Hi all,

I'm new to Selenium and I've recently installed it on my PC but I'm having this issue:

C:\Ruby24-x64\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/seleniumframework/watir_cucumber_template-master/features/step_definitions/test_file.rb
C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect': Failed to open TCP connection to 127.0.0.1:9515 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 9515) (Errno::ECONNREFUSED)
from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:903:in `block in connect'
from C:/Ruby24-x64/lib/ruby/2.4.0/timeout.rb:76:in `timeout'
from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:902:in `connect'
from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:876:in `start'
from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:1407:in `request'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/default.rb:121:in `response_for'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/default.rb:76:in `request'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/http/common.rb:59:in `call'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/bridge.rb:164:in `execute'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/oss/bridge.rb:579:in `execute'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/remote/oss/bridge.rb:50:in `get'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.8.0/lib/selenium/webdriver/common/navigation.rb:30:in `to'
from C:/seleniumframework/watir_cucumber_template-master/features/step_definitions/test_file.rb:5:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'

Process finished with exit code 1

Can someone help me please?

Thank you,
Julian
Reply all
Reply to author
Forward
0 new messages