selenium-webdriver 4.45.0 → 4.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +7 -0
  3. data/bin/linux/selenium-manager +0 -0
  4. data/bin/macos/selenium-manager +0 -0
  5. data/bin/windows/selenium-manager.exe +0 -0
  6. data/lib/selenium/webdriver/bidi/protocol/bluetooth.rb +465 -0
  7. data/lib/selenium/webdriver/bidi/protocol/browser.rb +222 -0
  8. data/lib/selenium/webdriver/bidi/protocol/browsing_context.rb +694 -0
  9. data/lib/selenium/webdriver/bidi/protocol/domain.rb +40 -0
  10. data/lib/selenium/webdriver/bidi/protocol/emulation.rb +334 -0
  11. data/lib/selenium/webdriver/bidi/protocol/input.rb +281 -0
  12. data/lib/selenium/webdriver/bidi/protocol/log.rb +104 -0
  13. data/lib/selenium/webdriver/bidi/protocol/network.rb +637 -0
  14. data/lib/selenium/webdriver/bidi/protocol/permissions.rb +73 -0
  15. data/lib/selenium/webdriver/bidi/protocol/script.rb +874 -0
  16. data/lib/selenium/webdriver/bidi/protocol/session.rb +241 -0
  17. data/lib/selenium/webdriver/bidi/protocol/speculation.rb +56 -0
  18. data/lib/selenium/webdriver/bidi/protocol/storage.rb +157 -0
  19. data/lib/selenium/webdriver/bidi/protocol/user_agent_client_hints.rb +83 -0
  20. data/lib/selenium/webdriver/bidi/protocol/web_extension.rb +93 -0
  21. data/lib/selenium/webdriver/bidi/protocol.rb +39 -0
  22. data/lib/selenium/webdriver/bidi/serialization/record.rb +226 -0
  23. data/lib/selenium/webdriver/bidi/serialization/union.rb +114 -0
  24. data/lib/selenium/webdriver/bidi/serialization.rb +78 -0
  25. data/lib/selenium/webdriver/bidi/support/bidi_generate.rb +936 -0
  26. data/lib/selenium/webdriver/bidi/support/check_generated.rb +55 -0
  27. data/lib/selenium/webdriver/bidi/transport.rb +52 -0
  28. data/lib/selenium/webdriver/bidi.rb +3 -0
  29. data/lib/selenium/webdriver/chrome/driver.rb +3 -3
  30. data/lib/selenium/webdriver/common/client_config.rb +97 -0
  31. data/lib/selenium/webdriver/common/driver.rb +2 -2
  32. data/lib/selenium/webdriver/common/local_driver.rb +15 -4
  33. data/lib/selenium/webdriver/common/proxy.rb +1 -1
  34. data/lib/selenium/webdriver/common.rb +1 -0
  35. data/lib/selenium/webdriver/edge/driver.rb +3 -3
  36. data/lib/selenium/webdriver/firefox/driver.rb +3 -3
  37. data/lib/selenium/webdriver/ie/driver.rb +3 -3
  38. data/lib/selenium/webdriver/remote/bidi_bridge.rb +6 -1
  39. data/lib/selenium/webdriver/remote/bridge.rb +8 -10
  40. data/lib/selenium/webdriver/remote/driver.rb +12 -4
  41. data/lib/selenium/webdriver/remote/http/common.rb +25 -12
  42. data/lib/selenium/webdriver/remote/http/default.rb +56 -39
  43. data/lib/selenium/webdriver/safari/driver.rb +3 -3
  44. data/lib/selenium/webdriver/version.rb +1 -1
  45. metadata +25 -2
@@ -0,0 +1,104 @@
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
+ # This file is automatically generated. DO NOT EDIT!
21
+ # Regenerate with: bazel run //rb/lib/selenium/webdriver:bidi-generate
22
+
23
+ module Selenium
24
+ module WebDriver
25
+ class BiDi
26
+ module Protocol
27
+ # @api private
28
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
29
+ class Log < Domain
30
+ EVENTS = {
31
+ entry_added: 'log.entryAdded'
32
+ }.freeze
33
+
34
+ LEVEL = {
35
+ debug: 'debug',
36
+ info: 'info',
37
+ warn: 'warn',
38
+ error: 'error'
39
+ }.freeze
40
+
41
+ # @api private
42
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
43
+ class Entry < Serialization::Union
44
+ discriminator 'type', {console: 'console', javascript: 'javascript'}
45
+ variants(
46
+ console: 'Log::ConsoleLogEntry',
47
+ javascript: 'Log::JavascriptLogEntry'
48
+ )
49
+ fallback 'Log::GenericLogEntry'
50
+ end
51
+
52
+ # @api private
53
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
54
+ BaseLogEntry = Serialization::Record.define(
55
+ level: {wire_key: 'level', enum: 'Log::LEVEL'},
56
+ source: {wire_key: 'source', ref: 'Script::Source'},
57
+ text: {wire_key: 'text', nullable: true, primitive: 'string'},
58
+ timestamp: 'timestamp',
59
+ stack_trace: {wire_key: 'stackTrace', required: false, ref: 'Script::StackTrace'}
60
+ )
61
+
62
+ # @api private
63
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
64
+ GenericLogEntry = Serialization::Record.define(
65
+ level: {wire_key: 'level', enum: 'Log::LEVEL'},
66
+ source: {wire_key: 'source', ref: 'Script::Source'},
67
+ text: {wire_key: 'text', nullable: true, primitive: 'string'},
68
+ timestamp: 'timestamp',
69
+ stack_trace: {wire_key: 'stackTrace', required: false, ref: 'Script::StackTrace'},
70
+ type: {wire_key: 'type', primitive: 'string'}
71
+ )
72
+
73
+ # @api private
74
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
75
+ ConsoleLogEntry = Serialization::Record.define(
76
+ type: {fixed: 'console'},
77
+ level: {wire_key: 'level', enum: 'Log::LEVEL'},
78
+ source: {wire_key: 'source', ref: 'Script::Source'},
79
+ text: {wire_key: 'text', nullable: true, primitive: 'string'},
80
+ timestamp: 'timestamp',
81
+ stack_trace: {wire_key: 'stackTrace', required: false, ref: 'Script::StackTrace'},
82
+ method_: {wire_key: 'method', primitive: 'string'},
83
+ args: {wire_key: 'args', ref: 'Script::RemoteValue', list: true}
84
+ )
85
+
86
+ # @api private
87
+ # @see https://www.selenium.dev/documentation/warnings/bidi-implementation/
88
+ JavascriptLogEntry = Serialization::Record.define(
89
+ type: {fixed: 'javascript'},
90
+ level: {wire_key: 'level', enum: 'Log::LEVEL'},
91
+ source: {wire_key: 'source', ref: 'Script::Source'},
92
+ text: {wire_key: 'text', nullable: true, primitive: 'string'},
93
+ timestamp: 'timestamp',
94
+ stack_trace: {wire_key: 'stackTrace', required: false, ref: 'Script::StackTrace'}
95
+ )
96
+
97
+ EVENT_TYPES = {
98
+ 'log.entryAdded' => Log::Entry
99
+ }.freeze
100
+ end # Log
101
+ end # Protocol
102
+ end # BiDi
103
+ end # WebDriver
104
+ end # Selenium