selenium-webdriver 4.2.1 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +33 -0
  3. data/lib/selenium/server.rb +1 -1
  4. data/lib/selenium/webdriver/chrome/options.rb +14 -0
  5. data/lib/selenium/webdriver/chrome.rb +0 -14
  6. data/lib/selenium/webdriver/common/driver.rb +20 -53
  7. data/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb +2 -67
  8. data/lib/selenium/webdriver/common/interactions/pointer_actions.rb +16 -33
  9. data/lib/selenium/webdriver/common/manager.rb +0 -27
  10. data/lib/selenium/webdriver/common/options.rb +2 -9
  11. data/lib/selenium/webdriver/common/takes_screenshot.rb +1 -1
  12. data/lib/selenium/webdriver/common/virtual_authenticator/credential.rb +83 -0
  13. data/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator.rb +73 -0
  14. data/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb +62 -0
  15. data/lib/selenium/webdriver/common/websocket_connection.rb +13 -6
  16. data/lib/selenium/webdriver/common/window.rb +6 -6
  17. data/lib/selenium/webdriver/common/zipper.rb +1 -1
  18. data/lib/selenium/webdriver/common.rb +3 -1
  19. data/lib/selenium/webdriver/devtools/network_interceptor.rb +176 -0
  20. data/lib/selenium/webdriver/devtools.rb +1 -0
  21. data/lib/selenium/webdriver/firefox.rb +0 -14
  22. data/lib/selenium/webdriver/ie.rb +0 -14
  23. data/lib/selenium/webdriver/remote/bridge.rb +35 -2
  24. data/lib/selenium/webdriver/remote/commands.rb +15 -1
  25. data/lib/selenium/webdriver/remote/driver.rb +0 -1
  26. data/lib/selenium/webdriver/safari.rb +0 -14
  27. data/lib/selenium/webdriver/version.rb +1 -1
  28. data/selenium-webdriver.gemspec +3 -3
  29. metadata +17 -15
  30. data/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +0 -31
  31. data/lib/selenium/webdriver/remote/http/persistent.rb +0 -65
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
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/persistent'
21
-
22
- module Selenium
23
- module WebDriver
24
- module Remote
25
- module Http
26
- # @api private
27
- class Persistent < Default
28
- def initialize(open_timeout: nil, read_timeout: nil)
29
- WebDriver.logger.deprecate("Selenium::WebDriver::Remote::Http::Persistent",
30
- id: :http_persistent) { "The default HTTP client now uses persistence." }
31
- super
32
- end
33
-
34
- def close
35
- @http&.shutdown
36
- end
37
-
38
- private
39
-
40
- def start(*)
41
- # no need to explicitly start connection
42
- end
43
-
44
- def new_http_client
45
- proxy = nil
46
-
47
- if @proxy
48
- unless @proxy.respond_to?(:http)
49
- url = @proxy.http
50
- raise Error::WebDriverError, "expected HTTP proxy, got #{@proxy.inspect}" unless url
51
- end
52
- proxy = URI.parse(url)
53
- end
54
-
55
- Net::HTTP::Persistent.new name: 'webdriver', proxy: proxy
56
- end
57
-
58
- def response_for(request)
59
- http.request server_url, request
60
- end
61
- end # Persistent
62
- end # Http
63
- end # Remote
64
- end # WebDriver
65
- end # Selenium