selenium-webdriver 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,7 +198,7 @@ Selenium.decorateFunctionWithTimeout = function(f, timeout, callback) {
198
198
  if (callback != null) {
199
199
  callback();
200
200
  }
201
- throw new SeleniumError("Timed out after " + timeout + "ms" + " time = " + new Date().getTime());
201
+ throw new SeleniumError("Timed out after " + timeout + "ms");
202
202
  }
203
203
  return f();
204
204
  };
@@ -27,7 +27,8 @@ module Selenium
27
27
 
28
28
  def quit
29
29
  @connection.quit
30
- @binary.wait
30
+ @binary.wait rescue nil # might raise on windows
31
+
31
32
  nil
32
33
  end
33
34
 
@@ -14,7 +14,7 @@ module Selenium
14
14
  begin
15
15
  return new_socket
16
16
  rescue Errno::ECONNREFUSED, Errno::ENOTCONN => e
17
- $stderr.puts "#{self} caught #{e.message}" if $DEBUG
17
+ $stderr.puts "#{self} caught #{e.message} for #{@host}:#{@port}" if $DEBUG
18
18
  sleep 0.25
19
19
  end
20
20
  end
@@ -69,7 +69,7 @@ module Selenium
69
69
 
70
70
  def update_user_prefs
71
71
  prefs = existing_user_prefs.merge DEFAULT_PREFERENCES
72
- prefs['webdriver.firefox_port'] = @port
72
+ prefs['webdriver_firefox_port'] = @port
73
73
  prefs['webdriver_accept_untrusted_certs'] = 'true' unless @secure_ssl == true
74
74
  prefs['webdriver_enable_native_events'] = 'true' if native_events?
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken