selenium-webdriver 2.53.4 → 3.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/CHANGES +24 -18
  2. data/README.md +2 -3
  3. data/lib/selenium/server.rb +64 -68
  4. data/lib/selenium/webdriver.rb +5 -9
  5. data/lib/selenium/webdriver/chrome.rb +18 -3
  6. data/lib/selenium/webdriver/chrome/bridge.rb +13 -16
  7. data/lib/selenium/webdriver/chrome/profile.rb +7 -9
  8. data/lib/selenium/webdriver/chrome/service.rb +8 -84
  9. data/lib/selenium/webdriver/common.rb +1 -2
  10. data/lib/selenium/webdriver/common/action_builder.rb +28 -38
  11. data/lib/selenium/webdriver/common/alert.rb +7 -10
  12. data/lib/selenium/webdriver/common/bridge_helper.rb +10 -15
  13. data/lib/selenium/webdriver/common/driver.rb +19 -28
  14. data/lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb +0 -3
  15. data/lib/selenium/webdriver/common/driver_extensions/has_location.rb +4 -6
  16. data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +4 -5
  17. data/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +0 -2
  18. data/lib/selenium/webdriver/common/driver_extensions/has_session_id.rb +0 -2
  19. data/lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb +0 -2
  20. data/lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb +0 -3
  21. data/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +3 -6
  22. data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +2 -5
  23. data/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb +2 -5
  24. data/lib/selenium/webdriver/common/element.rb +27 -29
  25. data/lib/selenium/webdriver/common/error.rb +17 -20
  26. data/lib/selenium/webdriver/common/file_reaper.rb +3 -9
  27. data/lib/selenium/webdriver/common/html5/local_storage.rb +6 -8
  28. data/lib/selenium/webdriver/common/html5/session_storage.rb +6 -8
  29. data/lib/selenium/webdriver/common/html5/shared_web_storage.rb +6 -15
  30. data/lib/selenium/webdriver/common/keyboard.rb +7 -12
  31. data/lib/selenium/webdriver/common/keys.rb +67 -69
  32. data/lib/selenium/webdriver/common/log_entry.rb +3 -4
  33. data/lib/selenium/webdriver/common/logs.rb +2 -4
  34. data/lib/selenium/webdriver/common/mouse.rb +9 -12
  35. data/lib/selenium/webdriver/common/navigation.rb +2 -4
  36. data/lib/selenium/webdriver/common/options.rb +16 -19
  37. data/lib/selenium/webdriver/common/platform.rb +61 -90
  38. data/lib/selenium/webdriver/common/port_prober.rb +1 -2
  39. data/lib/selenium/webdriver/common/profile_helper.rb +5 -8
  40. data/lib/selenium/webdriver/common/proxy.rb +58 -70
  41. data/lib/selenium/webdriver/common/search_context.rb +15 -19
  42. data/lib/selenium/webdriver/common/service.rb +127 -0
  43. data/lib/selenium/webdriver/common/socket_lock.rb +5 -11
  44. data/lib/selenium/webdriver/common/socket_poller.rb +4 -9
  45. data/lib/selenium/webdriver/common/target_locator.rb +11 -13
  46. data/lib/selenium/webdriver/common/timeouts.rb +4 -6
  47. data/lib/selenium/webdriver/common/touch_action_builder.rb +2 -4
  48. data/lib/selenium/webdriver/common/touch_screen.rb +15 -18
  49. data/lib/selenium/webdriver/common/w3c_error.rb +3 -6
  50. data/lib/selenium/webdriver/common/wait.rb +6 -11
  51. data/lib/selenium/webdriver/common/window.rb +12 -15
  52. data/lib/selenium/webdriver/common/zipper.rb +6 -8
  53. data/lib/selenium/webdriver/edge.rb +18 -3
  54. data/lib/selenium/webdriver/edge/bridge.rb +11 -16
  55. data/lib/selenium/webdriver/edge/legacy_support.rb +38 -39
  56. data/lib/selenium/webdriver/edge/service.rb +8 -82
  57. data/lib/selenium/webdriver/firefox.rb +25 -6
  58. data/lib/selenium/webdriver/firefox/binary.rb +37 -53
  59. data/lib/selenium/webdriver/firefox/bridge.rb +3 -6
  60. data/lib/selenium/webdriver/firefox/extension.rb +4 -6
  61. data/lib/selenium/webdriver/firefox/extension/prefs.json +1 -10
  62. data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
  63. data/lib/selenium/webdriver/firefox/launcher.rb +8 -11
  64. data/lib/selenium/webdriver/firefox/profile.rb +40 -42
  65. data/lib/selenium/webdriver/firefox/profiles_ini.rb +8 -15
  66. data/lib/selenium/webdriver/firefox/service.rb +23 -79
  67. data/lib/selenium/webdriver/firefox/util.rb +0 -2
  68. data/lib/selenium/webdriver/firefox/w3c_bridge.rb +2 -4
  69. data/lib/selenium/webdriver/ie.rb +16 -7
  70. data/lib/selenium/webdriver/ie/bridge.rb +16 -23
  71. data/lib/selenium/webdriver/{iphone.rb → ie/service.rb} +26 -4
  72. data/lib/selenium/webdriver/phantomjs.rb +8 -3
  73. data/lib/selenium/webdriver/phantomjs/bridge.rb +9 -11
  74. data/lib/selenium/webdriver/phantomjs/service.rb +17 -81
  75. data/lib/selenium/webdriver/remote.rb +0 -2
  76. data/lib/selenium/webdriver/remote/bridge.rb +193 -191
  77. data/lib/selenium/webdriver/remote/capabilities.rb +60 -90
  78. data/lib/selenium/webdriver/remote/commands.rb +197 -192
  79. data/lib/selenium/webdriver/remote/http/common.rb +15 -13
  80. data/lib/selenium/webdriver/remote/http/curb.rb +5 -9
  81. data/lib/selenium/webdriver/remote/http/default.rb +32 -37
  82. data/lib/selenium/webdriver/remote/http/persistent.rb +4 -6
  83. data/lib/selenium/webdriver/remote/response.rb +13 -21
  84. data/lib/selenium/webdriver/remote/server_error.rb +1 -3
  85. data/lib/selenium/webdriver/remote/w3c_bridge.rb +200 -195
  86. data/lib/selenium/webdriver/remote/w3c_capabilities.rb +38 -46
  87. data/lib/selenium/webdriver/remote/w3c_commands.rb +116 -113
  88. data/lib/selenium/webdriver/safari.rb +23 -7
  89. data/lib/selenium/{client/javascript_frameworks/jquery.rb → webdriver/safari/apple_bridge.rb} +28 -9
  90. data/lib/selenium/webdriver/safari/browser.rb +0 -2
  91. data/lib/selenium/webdriver/safari/{bridge.rb → legacy_bridge.rb} +12 -9
  92. data/lib/selenium/webdriver/safari/options.rb +3 -4
  93. data/lib/selenium/webdriver/safari/resources/client.js +56 -7255
  94. data/lib/selenium/webdriver/safari/server.rb +18 -24
  95. data/lib/selenium/{client/javascript_frameworks/prototype.rb → webdriver/safari/service.rb} +27 -9
  96. data/lib/selenium/webdriver/support.rb +1 -0
  97. data/lib/selenium/webdriver/support/abstract_event_listener.rb +17 -2
  98. data/lib/selenium/webdriver/support/block_event_listener.rb +1 -3
  99. data/lib/selenium/webdriver/support/color.rb +55 -38
  100. data/lib/selenium/webdriver/{android.rb → support/escaper.rb} +19 -4
  101. data/lib/selenium/webdriver/support/event_firing_bridge.rb +36 -38
  102. data/lib/selenium/webdriver/support/select.rb +33 -84
  103. data/selenium-webdriver.gemspec +23 -23
  104. metadata +19 -30
  105. data/lib/selenium-client.rb +0 -21
  106. data/lib/selenium/client.rb +0 -57
  107. data/lib/selenium/client/base.rb +0 -151
  108. data/lib/selenium/client/driver.rb +0 -29
  109. data/lib/selenium/client/errors.rb +0 -28
  110. data/lib/selenium/client/extensions.rb +0 -132
  111. data/lib/selenium/client/idiomatic.rb +0 -507
  112. data/lib/selenium/client/javascript_expression_builder.rb +0 -135
  113. data/lib/selenium/client/legacy_driver.rb +0 -1722
  114. data/lib/selenium/client/protocol.rb +0 -123
  115. data/lib/selenium/client/selenium_helper.rb +0 -49
  116. data/lib/selenium/rake/server_task.rb +0 -176
  117. data/lib/selenium/webdriver/android/bridge.rb +0 -68
  118. data/lib/selenium/webdriver/common/core_ext/base64.rb +0 -28
  119. data/lib/selenium/webdriver/common/core_ext/dir.rb +0 -61
  120. data/lib/selenium/webdriver/common/html5/location.rb +0 -19
  121. data/lib/selenium/webdriver/ie/server.rb +0 -133
  122. data/lib/selenium/webdriver/iphone/bridge.rb +0 -64
@@ -21,7 +21,6 @@ module Selenium
21
21
  module WebDriver
22
22
  module Support
23
23
  class Select
24
-
25
24
  #
26
25
  # @param [Element] element The select element to use
27
26
  #
@@ -29,12 +28,12 @@ module Selenium
29
28
  def initialize(element)
30
29
  tag_name = element.tag_name
31
30
 
32
- unless tag_name.downcase == "select"
31
+ unless tag_name.casecmp('select').zero?
33
32
  raise ArgumentError, "unexpected tag name #{tag_name.inspect}"
34
33
  end
35
34
 
36
35
  @element = element
37
- @multi = ![nil, "false"].include?(element.attribute(:multiple))
36
+ @multi = ![nil, 'false'].include?(element.attribute(:multiple))
38
37
  end
39
38
 
40
39
  #
@@ -54,7 +53,7 @@ module Selenium
54
53
  #
55
54
 
56
55
  def options
57
- @element.find_elements :tag_name, 'option'
56
+ @element.find_elements tag_name: 'option'
58
57
  end
59
58
 
60
59
  #
@@ -64,7 +63,7 @@ module Selenium
64
63
  #
65
64
 
66
65
  def selected_options
67
- options.select { |e| e.selected? }
66
+ options.select(&:selected?)
68
67
  end
69
68
 
70
69
  #
@@ -75,8 +74,9 @@ module Selenium
75
74
  #
76
75
 
77
76
  def first_selected_option
78
- option = options.find { |e| e.selected? }
79
- option or raise Error::NoSuchElementError, 'no options are selected'
77
+ option = options.find(&:selected?)
78
+ return option if option
79
+ raise Error::NoSuchElementError, 'no options are selected'
80
80
  end
81
81
 
82
82
  #
@@ -168,31 +168,22 @@ module Selenium
168
168
  def select_by_text(text)
169
169
  opts = find_by_text text
170
170
 
171
- if opts.empty?
172
- raise Error::NoSuchElementError, "cannot locate element with text: #{text.inspect}"
173
- end
174
-
175
- select_options opts
171
+ return select_options(opts) unless opts.empty?
172
+ raise Error::NoSuchElementError, "cannot locate element with text: #{text.inspect}"
176
173
  end
177
174
 
178
175
  def select_by_index(index)
179
176
  opts = find_by_index index
180
177
 
181
- if opts.empty?
182
- raise Error::NoSuchElementError, "cannot locate element with index: #{index.inspect}"
183
- end
184
-
185
- select_option opts.first
178
+ return select_option(opts.first) unless opts.empty?
179
+ raise Error::NoSuchElementError, "cannot locate element with index: #{index.inspect}"
186
180
  end
187
181
 
188
182
  def select_by_value(value)
189
183
  opts = find_by_value value
190
184
 
191
- if opts.empty?
192
- raise Error::NoSuchElementError, "cannot locate option with value: #{value.inspect}"
193
- end
194
-
195
- select_options opts
185
+ return select_options(opts) unless opts.empty?
186
+ raise Error::NoSuchElementError, "cannot locate option with value: #{value.inspect}"
196
187
  end
197
188
 
198
189
  def deselect_by_text(text)
@@ -201,11 +192,8 @@ module Selenium
201
192
  end
202
193
  opts = find_by_text text
203
194
 
204
- if opts.empty?
205
- raise Error::NoSuchElementError, "cannot locate element with text: #{text.inspect}"
206
- end
207
-
208
- deselect_options opts
195
+ return deselect_options(opts) unless opts.empty?
196
+ raise Error::NoSuchElementError, "cannot locate element with text: #{text.inspect}"
209
197
  end
210
198
 
211
199
  def deselect_by_value(value)
@@ -214,11 +202,8 @@ module Selenium
214
202
  end
215
203
  opts = find_by_value value
216
204
 
217
- if opts.empty?
218
- raise Error::NoSuchElementError, "cannot locate option with value: #{value.inspect}"
219
- end
220
-
221
- deselect_options opts
205
+ return deselect_options(opts) unless opts.empty?
206
+ raise Error::NoSuchElementError, "cannot locate option with value: #{value.inspect}"
222
207
  end
223
208
 
224
209
  def deselect_by_index(index)
@@ -227,15 +212,10 @@ module Selenium
227
212
  end
228
213
  opts = find_by_index index
229
214
 
230
- if opts.empty?
231
- raise Error::NoSuchElementError, "cannot locate option with index: #{index}"
232
- end
233
-
234
- deselect_option opts.first
215
+ return deselect_option(opts.first) unless opts.empty?
216
+ raise Error::NoSuchElementError, "cannot locate option with index: #{index}"
235
217
  end
236
218
 
237
- private
238
-
239
219
  def select_option(option)
240
220
  option.click unless option.selected?
241
221
  end
@@ -262,60 +242,29 @@ module Selenium
262
242
 
263
243
  def find_by_text(text)
264
244
  xpath = ".//option[normalize-space(.) = #{Escaper.escape text}]"
265
- opts = @element.find_elements(:xpath, xpath)
266
-
267
- if opts.empty? && text =~ /\s+/
268
- longest_word = text.split(/\s+/).max_by { |item| item.length }
269
-
270
- if longest_word.empty?
271
- candidates = options
272
- else
273
- xpath = ".//option[contains(., #{Escaper.escape longest_word})]"
274
- candidates = @element.find_elements(:xpath, xpath)
275
- end
276
-
277
- if multiple?
278
- candidates.select { |option| text == option.text }
279
- else
280
- Array(candidates.find { |option| text == option.text })
281
- end
245
+ opts = @element.find_elements(xpath: xpath)
246
+
247
+ return opts unless opts.empty? && text =~ /\s+/
248
+
249
+ longest_word = text.split(/\s+/).max_by(&:length)
250
+ if longest_word.empty?
251
+ candidates = options
282
252
  else
283
- opts
253
+ xpath = ".//option[contains(., #{Escaper.escape longest_word})]"
254
+ candidates = @element.find_elements(xpath: xpath)
284
255
  end
256
+
257
+ return Array(candidates.find { |option| text == option.text }) unless multiple?
258
+ candidates.select { |option| text == option.text }
285
259
  end
286
260
 
287
261
  def find_by_index(index)
288
- index = index.to_s
289
- options.select { |option| option.attribute(:index) == index }
262
+ options.select { |option| option.attribute(:index) == index.to_s }
290
263
  end
291
264
 
292
265
  def find_by_value(value)
293
- @element.find_elements(:xpath, ".//option[@value = #{Escaper.escape value}]")
266
+ @element.find_elements(xpath: ".//option[@value = #{Escaper.escape value}]")
294
267
  end
295
-
296
- #
297
- # @api private
298
- #
299
-
300
- module Escaper
301
- def self.escape(str)
302
- if str.include?('"') && str.include?("'")
303
- parts = str.split('"', -1).map { |part| %{"#{part}"} }
304
-
305
- quoted = parts.join(%{, '"', }).
306
- gsub(/^"", |, ""$/, '')
307
-
308
- "concat(#{quoted})"
309
- elsif str.include?('"')
310
- # escape string with just a quote into being single quoted: f"oo -> 'f"oo'
311
- "'#{str}'"
312
- else
313
- # otherwise return the quoted string
314
- %{"#{str}"}
315
- end
316
- end
317
-
318
- end # Escaper
319
268
  end # Select
320
269
  end # Support
321
270
  end # WebDriver
@@ -1,34 +1,34 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  root = File.expand_path(File.dirname(__FILE__))
4
- if root != Dir.pwd
5
- raise "cwd must be #{root} when reading gemspec"
6
- end
4
+ raise "cwd must be #{root} when reading gemspec" if root != Dir.pwd
7
5
 
8
6
  Gem::Specification.new do |s|
9
- s.name = "selenium-webdriver"
10
- s.version = "2.53.4"
7
+ s.name = 'selenium-webdriver'
8
+ s.version = '3.0.0.beta1'
11
9
 
12
- s.authors = ["Jari Bakken"]
13
- s.email = "jari.bakken@gmail.com"
14
- s.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."
15
- s.summary = "The next generation developer focused tool for automated testing of webapps"
16
- s.homepage = "https://github.com/seleniumhq/selenium"
17
- s.licenses = ["Apache"]
10
+ s.authors = ['Alex Rodionov', 'Titus Fortner']
11
+ s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com']
12
+ s.description = 'WebDriver is a tool for writing automated tests of websites.
13
+ It aims to mimic the behaviour of a real user, and as such interacts with the
14
+ HTML of the application.'
15
+ s.summary = 'The next generation developer focused tool for automated testing of webapps'
16
+ s.homepage = 'https://github.com/seleniumhq/selenium'
17
+ s.licenses = ['Apache']
18
18
 
19
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
20
- s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
19
+ s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
20
+ s.required_ruby_version = Gem::Requirement.new('>= 2.0')
21
21
 
22
- s.files = Dir[root + '/**/*'].reject { |e| e =~ /ruby\.iml|build\.desc/ }.map { |e| e.sub(root + '/', '') }
23
- s.require_paths = ["lib"]
22
+ s.files = Dir[root + '/**/*'].reject { |e| e =~ /ruby\.iml|build\.desc/ }.map { |e| e.sub(root + '/', '') }
23
+ s.require_paths = ['lib']
24
24
 
25
- s.add_runtime_dependency "rubyzip", ["~> 1.0"]
26
- s.add_runtime_dependency "childprocess", ["~> 0.5"]
27
- s.add_runtime_dependency "websocket", ["~> 1.0"]
25
+ s.add_runtime_dependency 'rubyzip', ['~> 1.0']
26
+ s.add_runtime_dependency 'childprocess', ['~> 0.5']
27
+ s.add_runtime_dependency 'websocket', ['~> 1.0']
28
28
 
29
- s.add_development_dependency "rspec", ["~> 2.99.0"]
30
- s.add_development_dependency "rack", ["~> 1.0"]
31
- s.add_development_dependency "ci_reporter", ["~> 1.6", ">= 1.6.2"]
32
- s.add_development_dependency "webmock", ["~> 1.7", ">= 1.7.5"]
33
- s.add_development_dependency "yard", ["~> 0.8.7"]
29
+ s.add_development_dependency 'rspec', ['~> 2.99.0']
30
+ s.add_development_dependency 'rack', ['~> 1.0']
31
+ s.add_development_dependency 'ci_reporter', ['~> 1.6', '>= 1.6.2']
32
+ s.add_development_dependency 'webmock', ['~> 1.7', '>= 1.7.5']
33
+ s.add_development_dependency 'yard', ['~> 0.8.7']
34
34
  end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 2.53.4
4
+ prerelease: 6
5
+ version: 3.0.0.beta1
6
6
  platform: ruby
7
7
  authors:
8
- - Jari Bakken
8
+ - Alex Rodionov
9
+ - Titus Fortner
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
13
 
13
- date: 2016-06-28 00:00:00 -05:00
14
+ date: 2016-07-28 00:00:00 -05:00
14
15
  default_executable:
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
@@ -107,8 +108,13 @@ dependencies:
107
108
  version: 0.8.7
108
109
  type: :development
109
110
  version_requirements: *id008
110
- 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.
111
- email: jari.bakken@gmail.com
111
+ description: |-
112
+ WebDriver is a tool for writing automated tests of websites.
113
+ It aims to mimic the behaviour of a real user, and as such interacts with the
114
+ HTML of the application.
115
+ email:
116
+ - p0deje@gmail.com
117
+ - titusfortner@gmail.com
112
118
  executables: []
113
119
 
114
120
  extensions: []
@@ -121,35 +127,18 @@ files:
121
127
  - LICENSE
122
128
  - README.md
123
129
  - selenium-webdriver.gemspec
124
- - lib/selenium-client.rb
125
130
  - lib/selenium-webdriver.rb
126
- - lib/selenium/client.rb
127
131
  - lib/selenium/server.rb
128
132
  - lib/selenium/webdriver.rb
129
- - lib/selenium/client/base.rb
130
- - lib/selenium/client/driver.rb
131
- - lib/selenium/client/errors.rb
132
- - lib/selenium/client/extensions.rb
133
- - lib/selenium/client/idiomatic.rb
134
- - lib/selenium/client/javascript_expression_builder.rb
135
- - lib/selenium/client/legacy_driver.rb
136
- - lib/selenium/client/protocol.rb
137
- - lib/selenium/client/selenium_helper.rb
138
- - lib/selenium/client/javascript_frameworks/jquery.rb
139
- - lib/selenium/client/javascript_frameworks/prototype.rb
140
- - lib/selenium/rake/server_task.rb
141
- - lib/selenium/webdriver/android.rb
142
133
  - lib/selenium/webdriver/chrome.rb
143
134
  - lib/selenium/webdriver/common.rb
144
135
  - lib/selenium/webdriver/edge.rb
145
136
  - lib/selenium/webdriver/firefox.rb
146
137
  - lib/selenium/webdriver/ie.rb
147
- - lib/selenium/webdriver/iphone.rb
148
138
  - lib/selenium/webdriver/phantomjs.rb
149
139
  - lib/selenium/webdriver/remote.rb
150
140
  - lib/selenium/webdriver/safari.rb
151
141
  - lib/selenium/webdriver/support.rb
152
- - lib/selenium/webdriver/android/bridge.rb
153
142
  - lib/selenium/webdriver/chrome/bridge.rb
154
143
  - lib/selenium/webdriver/chrome/profile.rb
155
144
  - lib/selenium/webdriver/chrome/service.rb
@@ -172,6 +161,7 @@ files:
172
161
  - lib/selenium/webdriver/common/profile_helper.rb
173
162
  - lib/selenium/webdriver/common/proxy.rb
174
163
  - lib/selenium/webdriver/common/search_context.rb
164
+ - lib/selenium/webdriver/common/service.rb
175
165
  - lib/selenium/webdriver/common/socket_lock.rb
176
166
  - lib/selenium/webdriver/common/socket_poller.rb
177
167
  - lib/selenium/webdriver/common/target_locator.rb
@@ -182,8 +172,6 @@ files:
182
172
  - lib/selenium/webdriver/common/wait.rb
183
173
  - lib/selenium/webdriver/common/window.rb
184
174
  - lib/selenium/webdriver/common/zipper.rb
185
- - lib/selenium/webdriver/common/core_ext/base64.rb
186
- - lib/selenium/webdriver/common/core_ext/dir.rb
187
175
  - lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb
188
176
  - lib/selenium/webdriver/common/driver_extensions/has_location.rb
189
177
  - lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb
@@ -195,7 +183,6 @@ files:
195
183
  - lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb
196
184
  - lib/selenium/webdriver/common/driver_extensions/uploads_files.rb
197
185
  - lib/selenium/webdriver/common/html5/local_storage.rb
198
- - lib/selenium/webdriver/common/html5/location.rb
199
186
  - lib/selenium/webdriver/common/html5/session_storage.rb
200
187
  - lib/selenium/webdriver/common/html5/shared_web_storage.rb
201
188
  - lib/selenium/webdriver/edge/bridge.rb
@@ -215,8 +202,7 @@ files:
215
202
  - lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so
216
203
  - lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so
217
204
  - lib/selenium/webdriver/ie/bridge.rb
218
- - lib/selenium/webdriver/ie/server.rb
219
- - lib/selenium/webdriver/iphone/bridge.rb
205
+ - lib/selenium/webdriver/ie/service.rb
220
206
  - lib/selenium/webdriver/phantomjs/bridge.rb
221
207
  - lib/selenium/webdriver/phantomjs/service.rb
222
208
  - lib/selenium/webdriver/remote/bridge.rb
@@ -231,14 +217,17 @@ files:
231
217
  - lib/selenium/webdriver/remote/http/curb.rb
232
218
  - lib/selenium/webdriver/remote/http/default.rb
233
219
  - lib/selenium/webdriver/remote/http/persistent.rb
234
- - lib/selenium/webdriver/safari/bridge.rb
220
+ - lib/selenium/webdriver/safari/apple_bridge.rb
235
221
  - lib/selenium/webdriver/safari/browser.rb
222
+ - lib/selenium/webdriver/safari/legacy_bridge.rb
236
223
  - lib/selenium/webdriver/safari/options.rb
237
224
  - lib/selenium/webdriver/safari/server.rb
225
+ - lib/selenium/webdriver/safari/service.rb
238
226
  - lib/selenium/webdriver/safari/resources/client.js
239
227
  - lib/selenium/webdriver/support/abstract_event_listener.rb
240
228
  - lib/selenium/webdriver/support/block_event_listener.rb
241
229
  - lib/selenium/webdriver/support/color.rb
230
+ - lib/selenium/webdriver/support/escaper.rb
242
231
  - lib/selenium/webdriver/support/event_firing_bridge.rb
243
232
  - lib/selenium/webdriver/support/select.rb
244
233
  has_rdoc: true
@@ -255,7 +244,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
255
244
  requirements:
256
245
  - - ">="
257
246
  - !ruby/object:Gem::Version
258
- version: 1.9.2
247
+ version: "2.0"
259
248
  required_rubygems_version: !ruby/object:Gem::Requirement
260
249
  none: false
261
250
  requirements:
@@ -1,21 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- require 'selenium/client'
21
-
@@ -1,57 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- require 'net/http'
21
- require 'uri'
22
- require 'cgi'
23
- require 'digest/md5'
24
- require 'base64'
25
- require 'fileutils'
26
- require 'tmpdir'
27
-
28
- require 'selenium/client/errors'
29
- require 'selenium/client/protocol'
30
- require 'selenium/client/legacy_driver'
31
- require 'selenium/client/javascript_expression_builder'
32
- require 'selenium/client/javascript_frameworks/prototype'
33
- require 'selenium/client/javascript_frameworks/jquery'
34
- require 'selenium/client/extensions'
35
- require 'selenium/client/idiomatic'
36
- require 'selenium/client/base'
37
- require 'selenium/client/driver'
38
- require 'selenium/client/selenium_helper'
39
- require 'selenium/server'
40
-
41
- module Selenium
42
- DEPRECATED_CONSTANTS = {
43
- :SeleniumDriver => Selenium::Client::Driver,
44
- :CommandError => Selenium::Client::CommandError
45
- }
46
-
47
- def self.const_missing(name)
48
- if replacement = DEPRECATED_CONSTANTS[name.to_sym]
49
- warn "the Selenium::#{name} constant has been deprecated, please use #{replacement} instead"
50
- replacement
51
- else
52
- super
53
- end
54
- end
55
-
56
- autoload :Rake, 'selenium/rake/server_task'
57
- end # Selenium