selenium-webdriver 2.43.0 → 2.44.0.dev

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 2.44.0.dev (???)
2
+ ================
3
+
1
4
  2.43.0 (2014-09-09)
2
5
  ===================
3
6
 
@@ -13,14 +13,15 @@ module Selenium
13
13
  DEFAULT_TIMEOUT = 30
14
14
 
15
15
  def initialize(opts = {})
16
- caps = opts.delete(:desired_capabilities) { Remote::Capabilities.internet_explorer }
17
- timeout = opts.delete(:timeout) { DEFAULT_TIMEOUT }
18
- port = opts.delete(:port) { PortProber.above(DEFAULT_PORT) }
19
- http_client = opts.delete(:http_client)
20
- ignore_mode = opts.delete(:introduce_flakiness_by_ignoring_security_domains)
21
- native_events = opts.delete(:native_events) != false
22
-
23
- @server = Server.get
16
+ caps = opts.delete(:desired_capabilities) { Remote::Capabilities.internet_explorer }
17
+ timeout = opts.delete(:timeout) { DEFAULT_TIMEOUT }
18
+ port = opts.delete(:port) { PortProber.above(DEFAULT_PORT) }
19
+ http_client = opts.delete(:http_client)
20
+ ignore_mode = opts.delete(:introduce_flakiness_by_ignoring_security_domains)
21
+ native_events = opts.delete(:native_events) != false
22
+ implementation = opts.delete(:implementation)
23
+
24
+ @server = Server.get(:implementation => implementation)
24
25
 
25
26
  @server.log_level = opts.delete(:log_level) if opts[:log_level]
26
27
  @server.log_file = opts.delete(:log_file) if opts[:log_file]
@@ -5,10 +5,11 @@ module Selenium
5
5
 
6
6
  STOP_TIMEOUT = 5
7
7
 
8
- def self.get
8
+ def self.get(opts = {})
9
9
  binary = IE.driver_path || Platform.find_binary("IEDriverServer")
10
+
10
11
  if binary
11
- new(binary)
12
+ new binary, opts
12
13
  else
13
14
  raise Error::WebDriverError,
14
15
  "Unable to find standalone executable. Please download the IEDriverServer from http://selenium-release.storage.googleapis.com/index.html and place the executable on your PATH."
@@ -24,8 +25,10 @@ module Selenium
24
25
  @process = nil
25
26
 
26
27
  opts = opts.dup
27
- @log_level = opts.delete(:log_level)
28
- @log_file = opts.delete(:log_file)
28
+
29
+ @log_level = opts.delete(:log_level)
30
+ @log_file = opts.delete(:log_file)
31
+ @implementation = opts.delete(:implementation)
29
32
 
30
33
  unless opts.empty?
31
34
  raise ArgumentError, "invalid option#{'s' if opts.size != 1}: #{opts.inspect}"
@@ -76,6 +79,7 @@ module Selenium
76
79
 
77
80
  args << "--log-level=#{@log_level.to_s.upcase}" if @log_level
78
81
  args << "--log-file=#{@log_file}" if @log_file
82
+ args << "--implementation=#{@implementation.to_s.upcase}" if @implementation
79
83
 
80
84
  args
81
85
  end
@@ -66,6 +66,8 @@ module Selenium
66
66
 
67
67
  @http = http_client
68
68
  @capabilities = create_session(desired_capabilities)
69
+
70
+ @file_detector = nil
69
71
  end
70
72
 
71
73
  def browser
@@ -119,7 +119,7 @@ module Selenium
119
119
  host == server_url.host || (
120
120
  begin
121
121
  IPAddr.new(host).include?(server_url.host)
122
- rescue ArgumentError => ex
122
+ rescue ArgumentError
123
123
  false
124
124
  end
125
125
  )
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "selenium-webdriver"
10
- s.version = "2.43.0"
10
+ s.version = "2.44.0.dev"
11
11
 
12
12
  s.authors = ["Jari Bakken"]
13
13
  s.email = "jari.bakken@gmail.com"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 2.43.0
4
+ prerelease: 7
5
+ version: 2.44.0.dev
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jari Bakken
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2014-09-09 00:00:00 +02:00
13
+ date: 2014-11-05 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency