Note that there are some explanatory texts on larger screens.

plurals
  1. POWatir loses browser connection after first goto
    text
    copied!<p>I am completely new to Watir, trying to work out the basics so we can use it for testing our websites.</p> <p>The problem is, following the 'Watir in 5 minutes' after I do my first <code>browser.goto</code>, I seem to lose connection to the browser window. The window is still there, but I can no longer "command" it from irb.</p> <p>I just get this error:</p> <pre><code>C:\&gt;irb DL is deprecated, please use Fiddle irb(main):001:0&gt; require "watir-webdriver" =&gt; true irb(main):002:0&gt; ie = Watir::Browser.new :ie Started InternetExplorerDriver server (32-bit) 2.32.3.0 Listening on port 5555 =&gt; #&lt;Watir::Browser:0x..f3e539e40 url="http://localhost:5555/" title="WebDriver" &gt; irb(main):003:0&gt; ie.goto "google.com" =&gt; "http://localhost:5555/" irb(main):004:0&gt; ie.goto "stackoverflow.com" Selenium::WebDriver::Error::NoSuchWindowError: Unable to get browser from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/response.rb:52:in `assert_ok' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/response.rb:15:in `initialize' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/http/common.rb:59:in `new' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/http/common.rb:59:in `create_response' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/http/default.rb:66:in `request' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/http/common.rb:40:in `call' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/bridge.rb:619:in `raw_execute' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/bridge.rb:597:in `execute' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/remote/bridge.rb:103:in `get' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/l ib/selenium/webdriver/common/navigation.rb:14:in `to' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/w atir-webdriver/browser.rb:77:in `goto' from (irb):4 from C:/Ruby200-x64/bin/irb:12:in `&lt;main&gt;' irb(main):005:0&gt; </code></pre> <p>I am using Win7 x64 and Ruby x64 BUT a 32bit IE.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload