I have been using watir for a long time with Internet Explorer. I am just now trying to get watir-webdriver to work. I have installed IEDriverServer.exe
in my path.
I have a website running on my local machine that is listening on port 80 and I am attempting to hit that site with my watir tests. Normally under watir (without webdriver) IE will simply launch and hit whatever URL I specify, such as http://MY-MACHINE-NAME/default.aspx
. However, when IEDriverServer launches it appears to be listening on some random port such as 5555. So, IE will launch and show something like http://localhost:5555/
in the address bar. After that, I get an error with the stack trace below.
I think I have a basic misunderstanding with regards to how to get watir to hit my website on port 80 using webdriver, just as it did without it. Any hints would be most appreciated.
Thanks
C:\Home\Server\Test\Watir\web>ruby ViewOrgBillingProfiles_test.rb --name test_04_filtering
Started InternetExplorerDriver server (64-bit)
2.31.0.0
Listening on port 5555
C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:762:in `initialize': No connection could be made because the target machine actively refused it. - connec
t(2) (Errno::ECONNREFUSED)
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:762:in `open'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:762:in `connect'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:744:in `start'
from C:/DevInstallations/Ruby193/lib/ruby/1.9.1/net/http.rb:1284:in `request'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/http/default.rb:82:in `response_for'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/http/default.rb:38:in `request'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/bridge.rb:598:in `raw_execute'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/bridge.rb:576:in `execute'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/bridge.rb:189:in `quit'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/ie/bridge.rb:59:in `quit'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/common/driver.rb:166:in `quit'
from C:/DevInstallations/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.1/lib/watir-webdriver/browser.rb:87:in `close'
from C:/Home/Server/Test/Watir/shared/setup.rb:1:in `block in <top (required)>'
C:/Home/Server/Test/Watir/shared/setup.rb:45:in `start_ie': undefined method `speed=' for #<Watir::Browser:0x..fdf634488 closed=false> (NoMethodError)
from C:/Home/Server/Test/Watir/shared/setup.rb:106:in `<top (required)>'
from C:/DevInstallations/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/DevInstallations/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ViewOrgBillingProfiles_test.rb:2:in `<main>'