selenium-webdriver 0.1.2 → 0.1.3.dev
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +18 -1
- data/lib/selenium/client/legacy_driver.rb +9 -0
- data/lib/selenium/webdriver/android/bridge.rb +1 -1
- data/lib/selenium/webdriver/chrome/bridge.rb +0 -4
- data/lib/selenium/webdriver/chrome/command_executor.rb +2 -2
- data/lib/selenium/webdriver/chrome/extension.zip +0 -0
- data/lib/selenium/webdriver/common.rb +3 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb +22 -0
- data/lib/selenium/webdriver/common/element.rb +10 -0
- data/lib/selenium/webdriver/common/keyboard.rb +48 -0
- data/lib/selenium/webdriver/common/mouse.rb +63 -0
- data/lib/selenium/webdriver/common/platform.rb +26 -11
- data/lib/selenium/webdriver/common/proxy.rb +1 -1
- data/lib/selenium/webdriver/common/zipper.rb +0 -1
- data/lib/selenium/webdriver/firefox/bridge.rb +8 -8
- data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
- data/lib/selenium/webdriver/firefox/launcher.rb +1 -1
- data/lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so +0 -0
- data/lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so +0 -0
- data/lib/selenium/webdriver/firefox/profile.rb +9 -5
- data/lib/selenium/webdriver/firefox/socket_lock.rb +1 -11
- data/lib/selenium/webdriver/ie.rb +3 -1
- data/lib/selenium/webdriver/ie/bridge.rb +23 -12
- data/lib/selenium/webdriver/ie/native/win32/IEDriver.dll +0 -0
- data/lib/selenium/webdriver/ie/native/x64/IEDriver.dll +0 -0
- data/lib/selenium/webdriver/ie/server.rb +64 -0
- data/lib/selenium/webdriver/iphone/bridge.rb +1 -1
- data/lib/selenium/webdriver/remote/bridge.rb +62 -8
- data/lib/selenium/webdriver/remote/capabilities.rb +10 -3
- data/lib/selenium/webdriver/remote/commands.rb +67 -59
- data/lib/selenium/webdriver/remote/http/common.rb +4 -0
- data/lib/selenium/webdriver/remote/http/default.rb +10 -4
- data/lib/selenium/webdriver/remote/http/persistent.rb +34 -0
- metadata +169 -196
- data/lib/selenium/webdriver/ie/lib.rb +0 -26
@@ -29,16 +29,16 @@ module Selenium
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def request(verb, url, headers, payload, redirects = 0)
|
32
|
-
request = new_request_for(verb, url, headers)
|
32
|
+
request = new_request_for(verb, url, headers, payload)
|
33
33
|
|
34
34
|
retried = false
|
35
35
|
begin
|
36
|
-
response =
|
36
|
+
response = response_for(request)
|
37
37
|
rescue Errno::ECONNABORTED, Errno::ECONNRESET
|
38
38
|
# this happens sometimes on windows?!
|
39
39
|
raise if retried
|
40
40
|
|
41
|
-
request = new_request_for(verb, url, headers)
|
41
|
+
request = new_request_for(verb, url, headers, payload)
|
42
42
|
retried = true
|
43
43
|
|
44
44
|
retry
|
@@ -52,16 +52,22 @@ module Selenium
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
def new_request_for(verb, url, headers)
|
55
|
+
def new_request_for(verb, url, headers, payload)
|
56
56
|
req = Net::HTTP.const_get(verb.to_s.capitalize).new(url.path, headers)
|
57
57
|
|
58
58
|
if server_url.userinfo
|
59
59
|
req.basic_auth server_url.user, server_url.password
|
60
60
|
end
|
61
61
|
|
62
|
+
req.body = payload if payload
|
63
|
+
|
62
64
|
req
|
63
65
|
end
|
64
66
|
|
67
|
+
def response_for(request)
|
68
|
+
http.request request
|
69
|
+
end
|
70
|
+
|
65
71
|
def new_http_client
|
66
72
|
if @proxy
|
67
73
|
unless @proxy.respond_to?(:http) && url = @proxy.http
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "net/http/persistent"
|
2
|
+
|
3
|
+
module Selenium
|
4
|
+
module WebDriver
|
5
|
+
module Remote
|
6
|
+
module Http
|
7
|
+
|
8
|
+
# @api private
|
9
|
+
class Persistent < Default
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def new_http_client
|
14
|
+
proxy = nil
|
15
|
+
|
16
|
+
if @proxy
|
17
|
+
unless @proxy.respond_to?(:http) && url = @proxy.http
|
18
|
+
raise Error::WebDriverError, "expected HTTP proxy, got #{@proxy.inspect}"
|
19
|
+
end
|
20
|
+
proxy = URI.parse(url)
|
21
|
+
end
|
22
|
+
|
23
|
+
Net::HTTP::Persistent.new "webdriver", proxy
|
24
|
+
end
|
25
|
+
|
26
|
+
def response_for(request)
|
27
|
+
http.request server_url, request
|
28
|
+
end
|
29
|
+
|
30
|
+
end # Persistent
|
31
|
+
end # Http
|
32
|
+
end # Remote
|
33
|
+
end # WebDriver
|
34
|
+
end # Selenium
|
metadata
CHANGED
@@ -1,122 +1,95 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
version: 0.1.2
|
4
|
+
prerelease: 6
|
5
|
+
version: 0.1.3.dev
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
|
-
|
8
|
+
- Jari Bakken
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-02-04 00:00:00 +01:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
|
-
|
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
|
-
- !ruby/object:Gem::Version
|
99
|
-
segments:
|
100
|
-
- 1
|
101
|
-
- 0
|
102
|
-
version: "1.0"
|
103
|
-
type: :development
|
104
|
-
version_requirements: *id006
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: ci_reporter
|
107
|
-
prerelease: false
|
108
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
|
-
requirements:
|
111
|
-
- - ~>
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
segments:
|
114
|
-
- 1
|
115
|
-
- 6
|
116
|
-
- 2
|
117
|
-
version: 1.6.2
|
118
|
-
type: :development
|
119
|
-
version_requirements: *id007
|
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.5
|
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: 0.6.3
|
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
|
120
93
|
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.
|
121
94
|
email: jari.bakken@gmail.com
|
122
95
|
executables: []
|
@@ -126,82 +99,86 @@ extensions: []
|
|
126
99
|
extra_rdoc_files: []
|
127
100
|
|
128
101
|
files:
|
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
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
102
|
+
- lib/selenium/client/base.rb
|
103
|
+
- lib/selenium/client/driver.rb
|
104
|
+
- lib/selenium/client/errors.rb
|
105
|
+
- lib/selenium/client/extensions.rb
|
106
|
+
- lib/selenium/client/idiomatic.rb
|
107
|
+
- lib/selenium/client/javascript_expression_builder.rb
|
108
|
+
- lib/selenium/client/javascript_frameworks/jquery.rb
|
109
|
+
- lib/selenium/client/javascript_frameworks/prototype.rb
|
110
|
+
- lib/selenium/client/legacy_driver.rb
|
111
|
+
- lib/selenium/client/protocol.rb
|
112
|
+
- lib/selenium/client/selenium_helper.rb
|
113
|
+
- lib/selenium/client.rb
|
114
|
+
- lib/selenium/rake/server_task.rb
|
115
|
+
- lib/selenium/server.rb
|
116
|
+
- lib/selenium/webdriver/android/bridge.rb
|
117
|
+
- lib/selenium/webdriver/android.rb
|
118
|
+
- lib/selenium/webdriver/chrome/bridge.rb
|
119
|
+
- lib/selenium/webdriver/chrome/command_executor.rb
|
120
|
+
- lib/selenium/webdriver/chrome/extension.zip
|
121
|
+
- lib/selenium/webdriver/chrome/launcher.rb
|
122
|
+
- lib/selenium/webdriver/chrome.rb
|
123
|
+
- lib/selenium/webdriver/common/alert.rb
|
124
|
+
- lib/selenium/webdriver/common/bridge_helper.rb
|
125
|
+
- lib/selenium/webdriver/common/core_ext/dir.rb
|
126
|
+
- lib/selenium/webdriver/common/core_ext/string.rb
|
127
|
+
- lib/selenium/webdriver/common/driver.rb
|
128
|
+
- lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb
|
129
|
+
- lib/selenium/webdriver/common/driver_extensions/rotatable.rb
|
130
|
+
- lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb
|
131
|
+
- lib/selenium/webdriver/common/element.rb
|
132
|
+
- lib/selenium/webdriver/common/error.rb
|
133
|
+
- lib/selenium/webdriver/common/file_reaper.rb
|
134
|
+
- lib/selenium/webdriver/common/find.rb
|
135
|
+
- lib/selenium/webdriver/common/keyboard.rb
|
136
|
+
- lib/selenium/webdriver/common/keys.rb
|
137
|
+
- lib/selenium/webdriver/common/mouse.rb
|
138
|
+
- lib/selenium/webdriver/common/navigation.rb
|
139
|
+
- lib/selenium/webdriver/common/options.rb
|
140
|
+
- lib/selenium/webdriver/common/platform.rb
|
141
|
+
- lib/selenium/webdriver/common/proxy.rb
|
142
|
+
- lib/selenium/webdriver/common/socket_poller.rb
|
143
|
+
- lib/selenium/webdriver/common/target_locator.rb
|
144
|
+
- lib/selenium/webdriver/common/timeouts.rb
|
145
|
+
- lib/selenium/webdriver/common/wait.rb
|
146
|
+
- lib/selenium/webdriver/common/zipper.rb
|
147
|
+
- lib/selenium/webdriver/common.rb
|
148
|
+
- lib/selenium/webdriver/firefox/binary.rb
|
149
|
+
- lib/selenium/webdriver/firefox/bridge.rb
|
150
|
+
- lib/selenium/webdriver/firefox/extension/webdriver.xpi
|
151
|
+
- lib/selenium/webdriver/firefox/extension.rb
|
152
|
+
- lib/selenium/webdriver/firefox/launcher.rb
|
153
|
+
- lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so
|
154
|
+
- lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so
|
155
|
+
- lib/selenium/webdriver/firefox/profile.rb
|
156
|
+
- lib/selenium/webdriver/firefox/profiles_ini.rb
|
157
|
+
- lib/selenium/webdriver/firefox/socket_lock.rb
|
158
|
+
- lib/selenium/webdriver/firefox/util.rb
|
159
|
+
- lib/selenium/webdriver/firefox.rb
|
160
|
+
- lib/selenium/webdriver/ie/bridge.rb
|
161
|
+
- lib/selenium/webdriver/ie/native/win32/IEDriver.dll
|
162
|
+
- lib/selenium/webdriver/ie/native/x64/IEDriver.dll
|
163
|
+
- lib/selenium/webdriver/ie/server.rb
|
164
|
+
- lib/selenium/webdriver/ie.rb
|
165
|
+
- lib/selenium/webdriver/iphone/bridge.rb
|
166
|
+
- lib/selenium/webdriver/iphone.rb
|
167
|
+
- lib/selenium/webdriver/remote/bridge.rb
|
168
|
+
- lib/selenium/webdriver/remote/capabilities.rb
|
169
|
+
- lib/selenium/webdriver/remote/commands.rb
|
170
|
+
- lib/selenium/webdriver/remote/http/common.rb
|
171
|
+
- lib/selenium/webdriver/remote/http/curb.rb
|
172
|
+
- lib/selenium/webdriver/remote/http/default.rb
|
173
|
+
- lib/selenium/webdriver/remote/http/persistent.rb
|
174
|
+
- lib/selenium/webdriver/remote/response.rb
|
175
|
+
- lib/selenium/webdriver/remote/server_error.rb
|
176
|
+
- lib/selenium/webdriver/remote.rb
|
177
|
+
- lib/selenium/webdriver.rb
|
178
|
+
- lib/selenium-client.rb
|
179
|
+
- lib/selenium-webdriver.rb
|
180
|
+
- CHANGES
|
181
|
+
- README
|
205
182
|
has_rdoc: true
|
206
183
|
homepage: http://selenium.googlecode.com
|
207
184
|
licenses: []
|
@@ -210,27 +187,23 @@ post_install_message:
|
|
210
187
|
rdoc_options: []
|
211
188
|
|
212
189
|
require_paths:
|
213
|
-
|
190
|
+
- lib
|
214
191
|
required_ruby_version: !ruby/object:Gem::Requirement
|
215
192
|
none: false
|
216
193
|
requirements:
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
- 0
|
221
|
-
version: "0"
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: "0"
|
222
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
198
|
none: false
|
224
199
|
requirements:
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
- 0
|
229
|
-
version: "0"
|
200
|
+
- - ">"
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 1.3.1
|
230
203
|
requirements: []
|
231
204
|
|
232
205
|
rubyforge_project:
|
233
|
-
rubygems_version: 1.
|
206
|
+
rubygems_version: 1.5.0
|
234
207
|
signing_key:
|
235
208
|
specification_version: 3
|
236
209
|
summary: The next generation developer focused tool for automated testing of webapps
|