selenium-webdriver 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 2.0.1 (2011-07-11)
2
+ ==================
3
+
4
+ * Make sure at_exit hooks aren't inherited by child processes.
5
+
6
+
1
7
  2.0.0 (2011-07-08)
2
8
  ==================
3
9
 
@@ -45,7 +45,7 @@ module Selenium
45
45
  raise Error::WebDriverError, "unable to connect to chromedriver #{@uri}"
46
46
  end
47
47
 
48
- at_exit { stop } # make sure we don't leave the server running
48
+ Platform.exit_hook { stop } # make sure we don't leave the server running
49
49
  end
50
50
 
51
51
  def stop
@@ -35,7 +35,7 @@ module Selenium
35
35
  end
36
36
  end
37
37
 
38
- at_exit { reap! }
38
+ Platform.exit_hook { reap! }
39
39
 
40
40
  end # FileReaper
41
41
  end # WebDriver
@@ -117,6 +117,14 @@ module Selenium
117
117
  end
118
118
  end
119
119
 
120
+ def exit_hook(&blk)
121
+ pid = Process.pid
122
+
123
+ at_exit do
124
+ yield if Process.pid == pid
125
+ end
126
+ end
127
+
120
128
  def find_binary(*binary_names)
121
129
  paths = ENV['PATH'].split(File::PATH_SEPARATOR)
122
130
  binary_names.map! { |n| "#{n}.exe" } if windows?
@@ -35,7 +35,7 @@ module Selenium
35
35
 
36
36
  def start
37
37
  @server.start
38
- at_exit { stop } # make sure we don't leave the server running
38
+ Platform.exit_hook { stop } # make sure we don't leave the server running
39
39
  end
40
40
 
41
41
  def stop
metadata CHANGED
@@ -1,95 +1,128 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 13
4
5
  prerelease:
5
- version: 2.0.0
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 1
10
+ version: 2.0.1
6
11
  platform: ruby
7
12
  authors:
8
- - Jari Bakken
13
+ - Jari Bakken
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-07-08 00:00:00 +02:00
14
- default_executable:
18
+ date: 2011-07-11 00:00:00 Z
15
19
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: json_pure
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
25
- type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: rubyzip
29
- prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
36
- type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: childprocess
40
- prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.1.9
47
- type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: ffi
51
- prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 1.0.7
58
- type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: rspec
62
- prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: "2.0"
69
- type: :development
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: rack
73
- prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: "1.0"
80
- type: :development
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
83
- name: ci_reporter
84
- prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ~>
89
- - !ruby/object:Gem::Version
90
- version: 1.6.2
91
- type: :development
92
- version_requirements: *id007
20
+ - !ruby/object:Gem::Dependency
21
+ name: json_pure
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: rubyzip
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: childprocess
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 9
57
+ segments:
58
+ - 0
59
+ - 1
60
+ - 9
61
+ version: 0.1.9
62
+ type: :runtime
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: ffi
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 25
73
+ segments:
74
+ - 1
75
+ - 0
76
+ - 7
77
+ version: 1.0.7
78
+ type: :runtime
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 2
91
+ - 0
92
+ version: "2.0"
93
+ type: :development
94
+ version_requirements: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ name: rack
97
+ prerelease: false
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ hash: 15
104
+ segments:
105
+ - 1
106
+ - 0
107
+ version: "1.0"
108
+ type: :development
109
+ version_requirements: *id006
110
+ - !ruby/object:Gem::Dependency
111
+ name: ci_reporter
112
+ prerelease: false
113
+ requirement: &id007 !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ hash: 11
119
+ segments:
120
+ - 1
121
+ - 6
122
+ - 2
123
+ version: 1.6.2
124
+ type: :development
125
+ version_requirements: *id007
93
126
  description: WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.
94
127
  email: jari.bakken@gmail.com
95
128
  executables: []
@@ -99,90 +132,89 @@ extensions: []
99
132
  extra_rdoc_files: []
100
133
 
101
134
  files:
102
- - lib/selenium-client.rb
103
- - lib/selenium-webdriver.rb
104
- - lib/selenium/client.rb
105
- - lib/selenium/server.rb
106
- - lib/selenium/webdriver.rb
107
- - lib/selenium/client/base.rb
108
- - lib/selenium/client/driver.rb
109
- - lib/selenium/client/errors.rb
110
- - lib/selenium/client/extensions.rb
111
- - lib/selenium/client/idiomatic.rb
112
- - lib/selenium/client/javascript_expression_builder.rb
113
- - lib/selenium/client/legacy_driver.rb
114
- - lib/selenium/client/protocol.rb
115
- - lib/selenium/client/selenium_helper.rb
116
- - lib/selenium/client/javascript_frameworks/jquery.rb
117
- - lib/selenium/client/javascript_frameworks/prototype.rb
118
- - lib/selenium/rake/server_task.rb
119
- - lib/selenium/webdriver/android.rb
120
- - lib/selenium/webdriver/chrome.rb
121
- - lib/selenium/webdriver/common.rb
122
- - lib/selenium/webdriver/firefox.rb
123
- - lib/selenium/webdriver/ie.rb
124
- - lib/selenium/webdriver/iphone.rb
125
- - lib/selenium/webdriver/opera.rb
126
- - lib/selenium/webdriver/remote.rb
127
- - lib/selenium/webdriver/android/bridge.rb
128
- - lib/selenium/webdriver/chrome/bridge.rb
129
- - lib/selenium/webdriver/chrome/service.rb
130
- - lib/selenium/webdriver/common/action_builder.rb
131
- - lib/selenium/webdriver/common/alert.rb
132
- - lib/selenium/webdriver/common/bridge_helper.rb
133
- - lib/selenium/webdriver/common/driver.rb
134
- - lib/selenium/webdriver/common/element.rb
135
- - lib/selenium/webdriver/common/error.rb
136
- - lib/selenium/webdriver/common/file_reaper.rb
137
- - lib/selenium/webdriver/common/keyboard.rb
138
- - lib/selenium/webdriver/common/keys.rb
139
- - lib/selenium/webdriver/common/mouse.rb
140
- - lib/selenium/webdriver/common/navigation.rb
141
- - lib/selenium/webdriver/common/options.rb
142
- - lib/selenium/webdriver/common/platform.rb
143
- - lib/selenium/webdriver/common/port_prober.rb
144
- - lib/selenium/webdriver/common/proxy.rb
145
- - lib/selenium/webdriver/common/search_context.rb
146
- - lib/selenium/webdriver/common/socket_poller.rb
147
- - lib/selenium/webdriver/common/target_locator.rb
148
- - lib/selenium/webdriver/common/timeouts.rb
149
- - lib/selenium/webdriver/common/wait.rb
150
- - lib/selenium/webdriver/common/zipper.rb
151
- - lib/selenium/webdriver/common/core_ext/dir.rb
152
- - lib/selenium/webdriver/common/core_ext/string.rb
153
- - lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb
154
- - lib/selenium/webdriver/common/driver_extensions/rotatable.rb
155
- - lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb
156
- - lib/selenium/webdriver/firefox/binary.rb
157
- - lib/selenium/webdriver/firefox/bridge.rb
158
- - lib/selenium/webdriver/firefox/extension.rb
159
- - lib/selenium/webdriver/firefox/launcher.rb
160
- - lib/selenium/webdriver/firefox/profile.rb
161
- - lib/selenium/webdriver/firefox/profiles_ini.rb
162
- - lib/selenium/webdriver/firefox/socket_lock.rb
163
- - lib/selenium/webdriver/firefox/util.rb
164
- - lib/selenium/webdriver/firefox/extension/webdriver.xpi
165
- - lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so
166
- - lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so
167
- - lib/selenium/webdriver/ie/bridge.rb
168
- - lib/selenium/webdriver/ie/server.rb
169
- - lib/selenium/webdriver/ie/native/win32/IEDriver.dll
170
- - lib/selenium/webdriver/ie/native/x64/IEDriver.dll
171
- - lib/selenium/webdriver/iphone/bridge.rb
172
- - lib/selenium/webdriver/opera/bridge.rb
173
- - lib/selenium/webdriver/opera/service.rb
174
- - lib/selenium/webdriver/remote/bridge.rb
175
- - lib/selenium/webdriver/remote/capabilities.rb
176
- - lib/selenium/webdriver/remote/commands.rb
177
- - lib/selenium/webdriver/remote/response.rb
178
- - lib/selenium/webdriver/remote/server_error.rb
179
- - lib/selenium/webdriver/remote/http/common.rb
180
- - lib/selenium/webdriver/remote/http/curb.rb
181
- - lib/selenium/webdriver/remote/http/default.rb
182
- - lib/selenium/webdriver/remote/http/persistent.rb
183
- - CHANGES
184
- - README
185
- has_rdoc: true
135
+ - lib/selenium/client/base.rb
136
+ - lib/selenium/client/driver.rb
137
+ - lib/selenium/client/errors.rb
138
+ - lib/selenium/client/extensions.rb
139
+ - lib/selenium/client/idiomatic.rb
140
+ - lib/selenium/client/javascript_expression_builder.rb
141
+ - lib/selenium/client/javascript_frameworks/jquery.rb
142
+ - lib/selenium/client/javascript_frameworks/prototype.rb
143
+ - lib/selenium/client/legacy_driver.rb
144
+ - lib/selenium/client/protocol.rb
145
+ - lib/selenium/client/selenium_helper.rb
146
+ - lib/selenium/client.rb
147
+ - lib/selenium/rake/server_task.rb
148
+ - lib/selenium/server.rb
149
+ - lib/selenium/webdriver/android/bridge.rb
150
+ - lib/selenium/webdriver/android.rb
151
+ - lib/selenium/webdriver/chrome/bridge.rb
152
+ - lib/selenium/webdriver/chrome/service.rb
153
+ - lib/selenium/webdriver/chrome.rb
154
+ - lib/selenium/webdriver/common/action_builder.rb
155
+ - lib/selenium/webdriver/common/alert.rb
156
+ - lib/selenium/webdriver/common/bridge_helper.rb
157
+ - lib/selenium/webdriver/common/core_ext/dir.rb
158
+ - lib/selenium/webdriver/common/core_ext/string.rb
159
+ - lib/selenium/webdriver/common/driver.rb
160
+ - lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb
161
+ - lib/selenium/webdriver/common/driver_extensions/rotatable.rb
162
+ - lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb
163
+ - lib/selenium/webdriver/common/element.rb
164
+ - lib/selenium/webdriver/common/error.rb
165
+ - lib/selenium/webdriver/common/file_reaper.rb
166
+ - lib/selenium/webdriver/common/keyboard.rb
167
+ - lib/selenium/webdriver/common/keys.rb
168
+ - lib/selenium/webdriver/common/mouse.rb
169
+ - lib/selenium/webdriver/common/navigation.rb
170
+ - lib/selenium/webdriver/common/options.rb
171
+ - lib/selenium/webdriver/common/platform.rb
172
+ - lib/selenium/webdriver/common/port_prober.rb
173
+ - lib/selenium/webdriver/common/proxy.rb
174
+ - lib/selenium/webdriver/common/search_context.rb
175
+ - lib/selenium/webdriver/common/socket_poller.rb
176
+ - lib/selenium/webdriver/common/target_locator.rb
177
+ - lib/selenium/webdriver/common/timeouts.rb
178
+ - lib/selenium/webdriver/common/wait.rb
179
+ - lib/selenium/webdriver/common/zipper.rb
180
+ - lib/selenium/webdriver/common.rb
181
+ - lib/selenium/webdriver/firefox/binary.rb
182
+ - lib/selenium/webdriver/firefox/bridge.rb
183
+ - lib/selenium/webdriver/firefox/extension/webdriver.xpi
184
+ - lib/selenium/webdriver/firefox/extension.rb
185
+ - lib/selenium/webdriver/firefox/launcher.rb
186
+ - lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so
187
+ - lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so
188
+ - lib/selenium/webdriver/firefox/profile.rb
189
+ - lib/selenium/webdriver/firefox/profiles_ini.rb
190
+ - lib/selenium/webdriver/firefox/socket_lock.rb
191
+ - lib/selenium/webdriver/firefox/util.rb
192
+ - lib/selenium/webdriver/firefox.rb
193
+ - lib/selenium/webdriver/ie/bridge.rb
194
+ - lib/selenium/webdriver/ie/native/win32/IEDriver.dll
195
+ - lib/selenium/webdriver/ie/native/x64/IEDriver.dll
196
+ - lib/selenium/webdriver/ie/server.rb
197
+ - lib/selenium/webdriver/ie.rb
198
+ - lib/selenium/webdriver/iphone/bridge.rb
199
+ - lib/selenium/webdriver/iphone.rb
200
+ - lib/selenium/webdriver/opera/bridge.rb
201
+ - lib/selenium/webdriver/opera/service.rb
202
+ - lib/selenium/webdriver/opera.rb
203
+ - lib/selenium/webdriver/remote/bridge.rb
204
+ - lib/selenium/webdriver/remote/capabilities.rb
205
+ - lib/selenium/webdriver/remote/commands.rb
206
+ - lib/selenium/webdriver/remote/http/common.rb
207
+ - lib/selenium/webdriver/remote/http/curb.rb
208
+ - lib/selenium/webdriver/remote/http/default.rb
209
+ - lib/selenium/webdriver/remote/http/persistent.rb
210
+ - lib/selenium/webdriver/remote/response.rb
211
+ - lib/selenium/webdriver/remote/server_error.rb
212
+ - lib/selenium/webdriver/remote.rb
213
+ - lib/selenium/webdriver.rb
214
+ - lib/selenium-client.rb
215
+ - lib/selenium-webdriver.rb
216
+ - CHANGES
217
+ - README
186
218
  homepage: http://selenium.googlecode.com
187
219
  licenses: []
188
220
 
@@ -190,23 +222,29 @@ post_install_message:
190
222
  rdoc_options: []
191
223
 
192
224
  require_paths:
193
- - lib
225
+ - lib
194
226
  required_ruby_version: !ruby/object:Gem::Requirement
195
227
  none: false
196
228
  requirements:
197
- - - ">="
198
- - !ruby/object:Gem::Version
199
- version: "0"
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ hash: 3
232
+ segments:
233
+ - 0
234
+ version: "0"
200
235
  required_rubygems_version: !ruby/object:Gem::Requirement
201
236
  none: false
202
237
  requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- version: "0"
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ hash: 3
241
+ segments:
242
+ - 0
243
+ version: "0"
206
244
  requirements: []
207
245
 
208
246
  rubyforge_project:
209
- rubygems_version: 1.4.1
247
+ rubygems_version: 1.8.5
210
248
  signing_key:
211
249
  specification_version: 3
212
250
  summary: The next generation developer focused tool for automated testing of webapps