capybara 0.4.1.1 → 0.4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capybara/driver/selenium_driver.rb +1 -1
- data/lib/capybara/version.rb +1 -1
- metadata +318 -303
@@ -91,7 +91,7 @@ class Capybara::Driver::Selenium < Capybara::Driver::Base
|
|
91
91
|
|
92
92
|
def browser
|
93
93
|
unless @browser
|
94
|
-
@browser = Selenium::WebDriver.for(options[:browser] || :firefox, options)
|
94
|
+
@browser = Selenium::WebDriver.for(options[:browser] || :firefox, options.reject{|key,val| key == :browser})
|
95
95
|
at_exit do
|
96
96
|
@browser.quit
|
97
97
|
end
|
data/lib/capybara/version.rb
CHANGED
metadata
CHANGED
@@ -3,339 +3,354 @@ name: capybara
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.4.1.
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 1
|
9
|
+
- 2
|
10
|
+
version: 0.4.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
|
13
|
+
- Jonas Nicklas
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-10 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: nokogiri
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 3
|
32
|
+
- 3
|
33
|
+
version: 1.3.3
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mime-types
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
segments:
|
45
|
+
- 1
|
46
|
+
- 16
|
47
|
+
version: "1.16"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: culerity
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
- 2
|
61
|
+
- 4
|
62
|
+
version: 0.2.4
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: celerity
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
- 7
|
76
|
+
- 9
|
77
|
+
version: 0.7.9
|
78
|
+
type: :runtime
|
79
|
+
version_requirements: *id004
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: selenium-webdriver
|
82
|
+
prerelease: false
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
- 0
|
91
|
+
- 27
|
92
|
+
version: 0.0.27
|
93
|
+
type: :runtime
|
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
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 0
|
106
|
+
- 0
|
107
|
+
version: 1.0.0
|
108
|
+
type: :runtime
|
109
|
+
version_requirements: *id006
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rack-test
|
112
|
+
prerelease: false
|
113
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
segments:
|
119
|
+
- 0
|
120
|
+
- 5
|
121
|
+
- 4
|
122
|
+
version: 0.5.4
|
123
|
+
type: :runtime
|
124
|
+
version_requirements: *id007
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: xpath
|
127
|
+
prerelease: false
|
128
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
- 1
|
136
|
+
- 3
|
137
|
+
version: 0.1.3
|
138
|
+
type: :runtime
|
139
|
+
version_requirements: *id008
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: sinatra
|
142
|
+
prerelease: false
|
143
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
segments:
|
149
|
+
- 0
|
150
|
+
- 9
|
151
|
+
- 4
|
152
|
+
version: 0.9.4
|
153
|
+
type: :development
|
154
|
+
version_requirements: *id009
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: rspec
|
157
|
+
prerelease: false
|
158
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
159
|
+
none: false
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
segments:
|
164
|
+
- 2
|
165
|
+
- 0
|
166
|
+
- 0
|
167
|
+
version: 2.0.0
|
168
|
+
type: :development
|
169
|
+
version_requirements: *id010
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: launchy
|
172
|
+
prerelease: false
|
173
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
segments:
|
179
|
+
- 0
|
180
|
+
- 3
|
181
|
+
- 5
|
182
|
+
version: 0.3.5
|
183
|
+
type: :development
|
184
|
+
version_requirements: *id011
|
185
|
+
- !ruby/object:Gem::Dependency
|
186
|
+
name: yard
|
187
|
+
prerelease: false
|
188
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
189
|
+
none: false
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
segments:
|
194
|
+
- 0
|
195
|
+
- 5
|
196
|
+
- 8
|
197
|
+
version: 0.5.8
|
198
|
+
type: :development
|
199
|
+
version_requirements: *id012
|
200
|
+
- !ruby/object:Gem::Dependency
|
201
|
+
name: fuubar
|
202
|
+
prerelease: false
|
203
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
204
|
+
none: false
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
segments:
|
209
|
+
- 0
|
210
|
+
- 0
|
211
|
+
- 1
|
212
|
+
version: 0.0.1
|
213
|
+
type: :development
|
214
|
+
version_requirements: *id013
|
202
215
|
description: Capybara is an integration testing tool for rack based web applications. It simulates how a user would interact with a website
|
203
216
|
email:
|
204
|
-
|
217
|
+
- jonas.nicklas@gmail.com
|
205
218
|
executables: []
|
206
219
|
|
207
220
|
extensions: []
|
208
221
|
|
209
222
|
extra_rdoc_files:
|
210
|
-
|
223
|
+
- README.rdoc
|
211
224
|
files:
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
225
|
+
- lib/capybara/cucumber.rb
|
226
|
+
- lib/capybara/driver/base.rb
|
227
|
+
- lib/capybara/driver/celerity_driver.rb
|
228
|
+
- lib/capybara/driver/culerity_driver.rb
|
229
|
+
- lib/capybara/driver/node.rb
|
230
|
+
- lib/capybara/driver/rack_test_driver.rb
|
231
|
+
- lib/capybara/driver/selenium_driver.rb
|
232
|
+
- lib/capybara/dsl.rb
|
233
|
+
- lib/capybara/node/actions.rb
|
234
|
+
- lib/capybara/node/base.rb
|
235
|
+
- lib/capybara/node/document.rb
|
236
|
+
- lib/capybara/node/element.rb
|
237
|
+
- lib/capybara/node/finders.rb
|
238
|
+
- lib/capybara/node/matchers.rb
|
239
|
+
- lib/capybara/node/simple.rb
|
240
|
+
- lib/capybara/rails.rb
|
241
|
+
- lib/capybara/rspec.rb
|
242
|
+
- lib/capybara/selector.rb
|
243
|
+
- lib/capybara/server.rb
|
244
|
+
- lib/capybara/session.rb
|
245
|
+
- lib/capybara/spec/driver.rb
|
246
|
+
- lib/capybara/spec/fixtures/capybara.jpg
|
247
|
+
- lib/capybara/spec/fixtures/test_file.txt
|
248
|
+
- lib/capybara/spec/public/jquery-ui.js
|
249
|
+
- lib/capybara/spec/public/jquery.js
|
250
|
+
- lib/capybara/spec/public/test.js
|
251
|
+
- lib/capybara/spec/session/all_spec.rb
|
252
|
+
- lib/capybara/spec/session/attach_file_spec.rb
|
253
|
+
- lib/capybara/spec/session/check_spec.rb
|
254
|
+
- lib/capybara/spec/session/choose_spec.rb
|
255
|
+
- lib/capybara/spec/session/click_button_spec.rb
|
256
|
+
- lib/capybara/spec/session/click_link_or_button_spec.rb
|
257
|
+
- lib/capybara/spec/session/click_link_spec.rb
|
258
|
+
- lib/capybara/spec/session/current_url_spec.rb
|
259
|
+
- lib/capybara/spec/session/fill_in_spec.rb
|
260
|
+
- lib/capybara/spec/session/find_button_spec.rb
|
261
|
+
- lib/capybara/spec/session/find_by_id_spec.rb
|
262
|
+
- lib/capybara/spec/session/find_field_spec.rb
|
263
|
+
- lib/capybara/spec/session/find_link_spec.rb
|
264
|
+
- lib/capybara/spec/session/find_spec.rb
|
265
|
+
- lib/capybara/spec/session/first_spec.rb
|
266
|
+
- lib/capybara/spec/session/has_button_spec.rb
|
267
|
+
- lib/capybara/spec/session/has_content_spec.rb
|
268
|
+
- lib/capybara/spec/session/has_css_spec.rb
|
269
|
+
- lib/capybara/spec/session/has_field_spec.rb
|
270
|
+
- lib/capybara/spec/session/has_link_spec.rb
|
271
|
+
- lib/capybara/spec/session/has_select_spec.rb
|
272
|
+
- lib/capybara/spec/session/has_selector_spec.rb
|
273
|
+
- lib/capybara/spec/session/has_table_spec.rb
|
274
|
+
- lib/capybara/spec/session/has_xpath_spec.rb
|
275
|
+
- lib/capybara/spec/session/headers.rb
|
276
|
+
- lib/capybara/spec/session/javascript.rb
|
277
|
+
- lib/capybara/spec/session/response_code.rb
|
278
|
+
- lib/capybara/spec/session/select_spec.rb
|
279
|
+
- lib/capybara/spec/session/uncheck_spec.rb
|
280
|
+
- lib/capybara/spec/session/unselect_spec.rb
|
281
|
+
- lib/capybara/spec/session/within_spec.rb
|
282
|
+
- lib/capybara/spec/session.rb
|
283
|
+
- lib/capybara/spec/test_app.rb
|
284
|
+
- lib/capybara/spec/views/buttons.erb
|
285
|
+
- lib/capybara/spec/views/fieldsets.erb
|
286
|
+
- lib/capybara/spec/views/form.erb
|
287
|
+
- lib/capybara/spec/views/frame_one.erb
|
288
|
+
- lib/capybara/spec/views/frame_two.erb
|
289
|
+
- lib/capybara/spec/views/popup_one.erb
|
290
|
+
- lib/capybara/spec/views/popup_two.erb
|
291
|
+
- lib/capybara/spec/views/postback.erb
|
292
|
+
- lib/capybara/spec/views/tables.erb
|
293
|
+
- lib/capybara/spec/views/with_html.erb
|
294
|
+
- lib/capybara/spec/views/with_js.erb
|
295
|
+
- lib/capybara/spec/views/with_scope.erb
|
296
|
+
- lib/capybara/spec/views/with_simple_html.erb
|
297
|
+
- lib/capybara/spec/views/within_frames.erb
|
298
|
+
- lib/capybara/spec/views/within_popups.erb
|
299
|
+
- lib/capybara/util/save_and_open_page.rb
|
300
|
+
- lib/capybara/util/timeout.rb
|
301
|
+
- lib/capybara/version.rb
|
302
|
+
- lib/capybara.rb
|
303
|
+
- spec/basic_node_spec.rb
|
304
|
+
- spec/capybara_spec.rb
|
305
|
+
- spec/driver/celerity_driver_spec.rb
|
306
|
+
- spec/driver/culerity_driver_spec.rb
|
307
|
+
- spec/driver/rack_test_driver_spec.rb
|
308
|
+
- spec/driver/remote_culerity_driver_spec.rb
|
309
|
+
- spec/driver/remote_selenium_driver_spec.rb
|
310
|
+
- spec/driver/selenium_driver_spec.rb
|
311
|
+
- spec/dsl_spec.rb
|
312
|
+
- spec/rspec_spec.rb
|
313
|
+
- spec/save_and_open_page_spec.rb
|
314
|
+
- spec/server_spec.rb
|
315
|
+
- spec/session/celerity_session_spec.rb
|
316
|
+
- spec/session/culerity_session_spec.rb
|
317
|
+
- spec/session/rack_test_session_spec.rb
|
318
|
+
- spec/session/selenium_session_spec.rb
|
319
|
+
- spec/spec_helper.rb
|
320
|
+
- spec/string_spec.rb
|
321
|
+
- spec/timeout_spec.rb
|
322
|
+
- README.rdoc
|
323
|
+
- History.txt
|
311
324
|
has_rdoc: true
|
312
325
|
homepage: http://github.com/jnicklas/capybara
|
313
326
|
licenses: []
|
314
327
|
|
315
328
|
post_install_message:
|
316
329
|
rdoc_options:
|
317
|
-
|
318
|
-
|
330
|
+
- --main
|
331
|
+
- README.rdoc
|
319
332
|
require_paths:
|
320
|
-
|
333
|
+
- lib
|
321
334
|
required_ruby_version: !ruby/object:Gem::Requirement
|
335
|
+
none: false
|
322
336
|
requirements:
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
337
|
+
- - ">="
|
338
|
+
- !ruby/object:Gem::Version
|
339
|
+
segments:
|
340
|
+
- 0
|
341
|
+
version: "0"
|
328
342
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
343
|
+
none: false
|
329
344
|
requirements:
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
segments:
|
348
|
+
- 0
|
349
|
+
version: "0"
|
335
350
|
requirements: []
|
336
351
|
|
337
352
|
rubyforge_project: capybara
|
338
|
-
rubygems_version: 1.3.
|
353
|
+
rubygems_version: 1.3.7
|
339
354
|
signing_key:
|
340
355
|
specification_version: 3
|
341
356
|
summary: Capybara aims to simplify the process of integration testing Rack applications, such as Rails, Sinatra or Merb
|