selenium-webdriver 3.142.7 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +583 -5
  3. data/Gemfile +3 -1
  4. data/LICENSE +1 -1
  5. data/NOTICE +2 -0
  6. data/README.md +4 -5
  7. data/bin/linux/selenium-manager +0 -0
  8. data/bin/macos/selenium-manager +0 -0
  9. data/bin/windows/selenium-manager.exe +0 -0
  10. data/lib/selenium/server.rb +93 -78
  11. data/lib/selenium/webdriver/atoms/findElements.js +122 -0
  12. data/lib/selenium/webdriver/atoms/getAttribute.js +100 -7
  13. data/lib/selenium/webdriver/atoms/isDisplayed.js +76 -78
  14. data/lib/selenium/webdriver/atoms/mutationListener.js +55 -0
  15. data/lib/selenium/webdriver/atoms.rb +2 -3
  16. data/lib/selenium/webdriver/bidi/browsing_context.rb +88 -0
  17. data/lib/selenium/webdriver/bidi/browsing_context_info.rb +35 -0
  18. data/lib/selenium/webdriver/bidi/log/base_log_entry.rb +35 -0
  19. data/lib/selenium/webdriver/bidi/log/console_log_entry.rb +35 -0
  20. data/lib/selenium/webdriver/bidi/log/filter_by.rb +40 -0
  21. data/lib/selenium/webdriver/bidi/log/generic_log_entry.rb +33 -0
  22. data/lib/selenium/webdriver/bidi/log/javascript_log_entry.rb +33 -0
  23. data/lib/selenium/webdriver/bidi/log_inspector.rb +143 -0
  24. data/lib/selenium/webdriver/bidi/navigate_result.rb +33 -0
  25. data/lib/selenium/webdriver/bidi/session.rb +51 -0
  26. data/lib/selenium/webdriver/{common/keyboard.rb → bidi.rb} +21 -35
  27. data/lib/selenium/webdriver/chrome/driver.rb +9 -86
  28. data/lib/selenium/webdriver/chrome/features.rb +44 -0
  29. data/lib/selenium/webdriver/chrome/options.rb +9 -158
  30. data/lib/selenium/webdriver/chrome/profile.rb +3 -80
  31. data/lib/selenium/webdriver/chrome/service.rb +6 -33
  32. data/lib/selenium/webdriver/chrome.rb +5 -18
  33. data/lib/selenium/webdriver/chromium/driver.rb +61 -0
  34. data/lib/selenium/webdriver/{chrome/bridge.rb → chromium/features.rb} +51 -16
  35. data/lib/selenium/webdriver/chromium/options.rb +261 -0
  36. data/lib/selenium/webdriver/chromium/profile.rb +113 -0
  37. data/lib/selenium/webdriver/chromium/service.rb +42 -0
  38. data/lib/selenium/webdriver/chromium.rb +32 -0
  39. data/lib/selenium/webdriver/common/action_builder.rb +135 -237
  40. data/lib/selenium/webdriver/common/child_process.rb +124 -0
  41. data/lib/selenium/webdriver/common/driver.rb +94 -43
  42. data/lib/selenium/webdriver/common/driver_extensions/downloads_files.rb +0 -2
  43. data/lib/selenium/webdriver/common/driver_extensions/full_page_screenshot.rb +42 -0
  44. data/lib/selenium/webdriver/common/driver_extensions/has_addons.rb +0 -2
  45. data/lib/selenium/webdriver/common/driver_extensions/has_apple_permissions.rb +49 -0
  46. data/lib/selenium/webdriver/common/driver_extensions/has_authentication.rb +87 -0
  47. data/lib/selenium/webdriver/common/driver_extensions/{has_touch_screen.rb → has_bidi.rb} +9 -9
  48. data/lib/selenium/webdriver/common/driver_extensions/has_casting.rb +86 -0
  49. data/lib/selenium/webdriver/common/driver_extensions/has_cdp.rb +36 -0
  50. data/lib/selenium/webdriver/common/driver_extensions/has_context.rb +42 -0
  51. data/lib/selenium/webdriver/common/driver_extensions/has_debugger.rb +0 -2
  52. data/lib/selenium/webdriver/common/driver_extensions/has_devtools.rb +41 -0
  53. data/lib/selenium/webdriver/common/driver_extensions/has_launching.rb +36 -0
  54. data/lib/selenium/webdriver/common/driver_extensions/has_location.rb +5 -9
  55. data/lib/selenium/webdriver/common/driver_extensions/has_log_events.rb +143 -0
  56. data/lib/selenium/webdriver/common/driver_extensions/{has_remote_status.rb → has_logs.rb} +4 -4
  57. data/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb +16 -1
  58. data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +6 -27
  59. data/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb +69 -0
  60. data/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb +11 -13
  61. data/lib/selenium/webdriver/common/driver_extensions/has_pinned_scripts.rb +75 -0
  62. data/lib/selenium/webdriver/common/driver_extensions/{rotatable.rb → prints_page.rb} +18 -20
  63. data/lib/selenium/webdriver/common/driver_finder.rb +43 -0
  64. data/lib/selenium/webdriver/common/element.rb +89 -29
  65. data/lib/selenium/webdriver/common/error.rb +32 -198
  66. data/lib/selenium/webdriver/common/html5/shared_web_storage.rb +2 -2
  67. data/lib/selenium/webdriver/common/interactions/input_device.rb +10 -4
  68. data/lib/selenium/webdriver/common/interactions/interaction.rb +12 -22
  69. data/lib/selenium/webdriver/common/interactions/interactions.rb +24 -4
  70. data/lib/selenium/webdriver/common/interactions/key_actions.rb +10 -6
  71. data/lib/selenium/webdriver/common/interactions/key_input.rb +11 -27
  72. data/lib/selenium/webdriver/common/interactions/none_input.rb +10 -8
  73. data/lib/selenium/webdriver/common/interactions/pause.rb +49 -0
  74. data/lib/selenium/webdriver/common/interactions/pointer_actions.rb +71 -82
  75. data/lib/selenium/webdriver/common/interactions/pointer_cancel.rb +45 -0
  76. data/lib/selenium/webdriver/common/interactions/pointer_event_properties.rb +63 -0
  77. data/lib/selenium/webdriver/common/interactions/pointer_input.rb +15 -84
  78. data/lib/selenium/webdriver/common/interactions/pointer_move.rb +60 -0
  79. data/lib/selenium/webdriver/common/interactions/pointer_press.rb +85 -0
  80. data/lib/selenium/webdriver/common/interactions/scroll.rb +59 -0
  81. data/lib/selenium/webdriver/common/interactions/scroll_origin.rb +48 -0
  82. data/lib/selenium/webdriver/common/interactions/typing_interaction.rb +54 -0
  83. data/lib/selenium/webdriver/common/interactions/wheel_actions.rb +113 -0
  84. data/lib/selenium/webdriver/common/{w3c_manager.rb → interactions/wheel_input.rb} +14 -17
  85. data/lib/selenium/webdriver/common/keys.rb +1 -0
  86. data/lib/selenium/webdriver/common/local_driver.rb +55 -0
  87. data/lib/selenium/webdriver/common/log_entry.rb +2 -2
  88. data/lib/selenium/webdriver/common/logger.rb +58 -15
  89. data/lib/selenium/webdriver/common/manager.rb +11 -38
  90. data/lib/selenium/webdriver/common/options.rb +169 -23
  91. data/lib/selenium/webdriver/common/platform.rb +14 -6
  92. data/lib/selenium/webdriver/common/port_prober.rb +4 -6
  93. data/lib/selenium/webdriver/common/profile_helper.rb +11 -9
  94. data/lib/selenium/webdriver/common/proxy.rb +7 -4
  95. data/lib/selenium/webdriver/common/search_context.rb +7 -9
  96. data/lib/selenium/webdriver/common/selenium_manager.rb +108 -0
  97. data/lib/selenium/webdriver/common/service.rb +17 -136
  98. data/lib/selenium/webdriver/common/service_manager.rb +142 -0
  99. data/lib/selenium/webdriver/common/shadow_root.rb +86 -0
  100. data/lib/selenium/webdriver/common/socket_lock.rb +4 -4
  101. data/lib/selenium/webdriver/common/socket_poller.rb +3 -3
  102. data/lib/selenium/webdriver/common/takes_screenshot.rb +65 -0
  103. data/lib/selenium/webdriver/common/target_locator.rb +31 -4
  104. data/lib/selenium/webdriver/common/timeouts.rb +31 -4
  105. data/lib/selenium/webdriver/common/virtual_authenticator/credential.rb +85 -0
  106. data/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator.rb +72 -0
  107. data/lib/selenium/webdriver/common/virtual_authenticator/virtual_authenticator_options.rb +62 -0
  108. data/lib/selenium/webdriver/common/wait.rb +1 -1
  109. data/lib/selenium/webdriver/common/websocket_connection.rb +164 -0
  110. data/lib/selenium/webdriver/common/window.rb +6 -10
  111. data/lib/selenium/webdriver/common/zipper.rb +4 -10
  112. data/lib/selenium/webdriver/common.rb +42 -18
  113. data/lib/selenium/webdriver/devtools/console_event.rb +36 -0
  114. data/lib/selenium/webdriver/devtools/exception_event.rb +34 -0
  115. data/lib/selenium/webdriver/devtools/mutation_event.rb +35 -0
  116. data/lib/selenium/webdriver/devtools/network_interceptor.rb +173 -0
  117. data/lib/selenium/webdriver/devtools/pinned_script.rb +57 -0
  118. data/lib/selenium/webdriver/devtools/request.rb +65 -0
  119. data/lib/selenium/webdriver/devtools/response.rb +64 -0
  120. data/lib/selenium/webdriver/devtools.rb +96 -0
  121. data/lib/selenium/webdriver/edge/driver.rb +11 -27
  122. data/lib/selenium/webdriver/edge/features.rb +44 -0
  123. data/lib/selenium/webdriver/edge/options.rb +10 -49
  124. data/lib/selenium/webdriver/edge/profile.rb +33 -0
  125. data/lib/selenium/webdriver/edge/service.rb +7 -27
  126. data/lib/selenium/webdriver/edge.rb +11 -14
  127. data/lib/selenium/webdriver/firefox/driver.rb +38 -19
  128. data/lib/selenium/webdriver/firefox/extension.rb +8 -0
  129. data/lib/selenium/webdriver/firefox/features.rb +66 -0
  130. data/lib/selenium/webdriver/firefox/options.rb +77 -50
  131. data/lib/selenium/webdriver/firefox/profile.rb +16 -70
  132. data/lib/selenium/webdriver/firefox/service.rb +3 -13
  133. data/lib/selenium/webdriver/firefox/util.rb +1 -1
  134. data/lib/selenium/webdriver/firefox.rb +17 -28
  135. data/lib/selenium/webdriver/ie/driver.rb +5 -45
  136. data/lib/selenium/webdriver/ie/options.rb +15 -46
  137. data/lib/selenium/webdriver/ie/service.rb +11 -19
  138. data/lib/selenium/webdriver/ie.rb +3 -16
  139. data/lib/selenium/webdriver/remote/bridge/commands.rb +170 -0
  140. data/lib/selenium/webdriver/remote/bridge.rb +590 -86
  141. data/lib/selenium/webdriver/remote/capabilities.rb +182 -124
  142. data/lib/selenium/webdriver/remote/driver.rb +30 -15
  143. data/lib/selenium/webdriver/remote/http/common.rb +0 -5
  144. data/lib/selenium/webdriver/remote/http/curb.rb +0 -2
  145. data/lib/selenium/webdriver/remote/http/default.rb +23 -31
  146. data/lib/selenium/webdriver/remote/response.rb +17 -49
  147. data/lib/selenium/webdriver/remote.rb +14 -12
  148. data/lib/selenium/webdriver/safari/driver.rb +7 -29
  149. data/lib/selenium/webdriver/safari/{bridge.rb → features.rb} +3 -5
  150. data/lib/selenium/webdriver/safari/options.rb +12 -27
  151. data/lib/selenium/webdriver/safari/service.rb +3 -11
  152. data/lib/selenium/webdriver/safari.rb +14 -20
  153. data/lib/selenium/webdriver/support/block_event_listener.rb +1 -1
  154. data/lib/selenium/webdriver/support/color.rb +22 -22
  155. data/lib/selenium/webdriver/support/event_firing_bridge.rb +4 -4
  156. data/lib/selenium/webdriver/support/guards/guard.rb +87 -0
  157. data/lib/selenium/webdriver/{firefox/marionette/bridge.rb → support/guards/guard_condition.rb} +21 -20
  158. data/lib/selenium/webdriver/support/guards.rb +95 -0
  159. data/lib/selenium/webdriver/support/relative_locator.rb +50 -0
  160. data/lib/selenium/webdriver/support/select.rb +6 -4
  161. data/lib/selenium/webdriver/support.rb +1 -0
  162. data/lib/selenium/webdriver/version.rb +1 -1
  163. data/lib/selenium/webdriver.rb +17 -17
  164. data/selenium-webdriver.gemspec +36 -18
  165. metadata +164 -94
  166. data/lib/selenium/webdriver/common/bridge_helper.rb +0 -82
  167. data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +0 -64
  168. data/lib/selenium/webdriver/common/mouse.rb +0 -89
  169. data/lib/selenium/webdriver/common/touch_action_builder.rb +0 -78
  170. data/lib/selenium/webdriver/common/touch_screen.rb +0 -123
  171. data/lib/selenium/webdriver/common/w3c_action_builder.rb +0 -212
  172. data/lib/selenium/webdriver/edge/bridge.rb +0 -76
  173. data/lib/selenium/webdriver/firefox/binary.rb +0 -187
  174. data/lib/selenium/webdriver/firefox/extension/prefs.json +0 -69
  175. data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
  176. data/lib/selenium/webdriver/firefox/launcher.rb +0 -111
  177. data/lib/selenium/webdriver/firefox/legacy/driver.rb +0 -83
  178. data/lib/selenium/webdriver/firefox/marionette/driver.rb +0 -90
  179. data/lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so +0 -0
  180. data/lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so +0 -0
  181. data/lib/selenium/webdriver/remote/http/persistent.rb +0 -60
  182. data/lib/selenium/webdriver/remote/oss/bridge.rb +0 -594
  183. data/lib/selenium/webdriver/remote/oss/commands.rb +0 -223
  184. data/lib/selenium/webdriver/remote/w3c/bridge.rb +0 -605
  185. data/lib/selenium/webdriver/remote/w3c/capabilities.rb +0 -310
  186. data/lib/selenium/webdriver/remote/w3c/commands.rb +0 -157
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c9f40e154da198fff9e277f0613042c22fff6c98
4
- data.tar.gz: 33cc734e78b08e66c00a4c73f51c635d97c86fe6
2
+ SHA256:
3
+ metadata.gz: f1ae360596be57c29db02808a7dae16c36062801e7639e83b366a54cdba5e3b2
4
+ data.tar.gz: f31169f7cfec055abb7a2f3595eee8e453acf316651a829af5f254a0f824cf9e
5
5
  SHA512:
6
- metadata.gz: b40eb2e74a284b21ee31924f7cf20b878c7ab6ebcfe7848b21ad163165c80467c9d3a6fa6252ca74680b82db7186e8c1b73a2ac5f4d37501b0dfa16763ec19b9
7
- data.tar.gz: bc9e9e0128888f3efe33f59160b677cc88655bf986877c534053adf915f3b39a78ff1d88e9b2d80753c1aba49af92f1796bb4f774ca68114027594813cc26ad3
6
+ metadata.gz: 675dad14a433939c81dabbb0276b1c5a97d95f0b1451ca48aa0e908c2cc0658f1d90e3970be4e3f62e65ff5eaef5cf391b5d646f50413ca46ea2f24de821fb5a
7
+ data.tar.gz: dd9d26b855e7b1f01f667d113181f6e7b35367ee74459b693a3c5872cc92a9e58f9d2d849de3aaff9738e3e77cb3f3117617219b4f76e2fda2f66bc75279ee8d
data/CHANGES CHANGED
@@ -1,3 +1,582 @@
1
+ 4.9.0 (2023-04-21)
2
+ =========================
3
+ Ruby:
4
+ * Fix devtools version fallback (#11869)
5
+ * Fix bug in selenium manager escaping back slashes in Windows (#11884)
6
+
7
+ BiDi:
8
+ * Released selenium-devtools 0.112.0 (supports CDP v85, v110, v111, v112)
9
+
10
+ 4.8.6 (2023-03-29)
11
+ =========================
12
+ Ruby:
13
+ * Properly escape arguments passed to Selenium Manager
14
+
15
+ 4.8.5 (2023-03-28)
16
+ =========================
17
+ Ruby:
18
+ * Wrapping browser name in quotes when calling Selenium Manager
19
+
20
+ 4.8.4 (2023-03-28)
21
+ =========================
22
+ Ruby:
23
+ * Update the selenium-manager versions to fix an IE naming issue (#11828)
24
+
25
+ 4.8.3 (2023-03-26)
26
+ =========================
27
+ Ruby:
28
+ * Still need to use driver finder when using capabilities parameter
29
+ * Accommodate Driver Finder being sent something other than an Options instance
30
+
31
+ 4.8.2 (2023-03-24)
32
+ =========================
33
+ Ruby:
34
+ * Ruby driver finder (#11523)
35
+ * Using json output with Selenium Manager
36
+
37
+ BiDi:
38
+ * Released selenium-devtools 0.111.0 (supports CDP v85, v109, v110, v111)
39
+
40
+ 4.8.1 (2023-02-17)
41
+ =========================
42
+ Ruby:
43
+ * Fix autoload of WebDriver::Remote::Bridge::COMMANDS
44
+ * Subclass is setting value before the superclass is setting it to nil
45
+ * Updating Selenium Manager binaries for 4.8.1 release
46
+
47
+ BiDi:
48
+ * Released selenium-devtools 0.110.0 (supports CDP v85, v108, v109, v110)
49
+ * Close BiDi session on closing the last top-level browsing context
50
+ * Add filtering capability to LogInspector
51
+
52
+ 4.8.0 (2023-01-23)
53
+ =========================
54
+ Ruby:
55
+ * Allow updating instance variables on service classes
56
+ * Deprecate extract_service_args processing in service classes
57
+ * Fix bug preventing sending nil to #send_keys with Remote Driver
58
+ * Fix bug with IE specific methods not available to IE Driver
59
+ * Created Chromium superclass for Chrome and Edge
60
+ * Deprecated platform and version setters/getters in Capabilities class
61
+ * Revamped driver constructor logic
62
+ * Fix bug preventing using Safari Technology Preview when using SafariOptions
63
+ * Fix bug preventing more than one driver type to access Selenium Manager
64
+ * Defaults to using Options instead of Capabilities
65
+ * Make Options classes more strict for allowed arguments and types
66
+ * Removed previously deprecated actions class parameters
67
+ * Removed Location struct
68
+ * Add comment with name of large JS executions (#11038)
69
+ * update logger with link on how to use it (#11478)
70
+ * Deprecate #add_option for Option classes in favor of constructor and attr_accessor
71
+ * Deprecate all unrecognized capabilities for Options classes
72
+ * Deprecate support for :capabilities for local drivers
73
+ * Deprecate browser class methods for Capabilities
74
+ * Deprecate #headless! for Chrome and Firefox
75
+
76
+ BiDi:
77
+ * Released selenium-devtools 0.109.0 (supports CDP v85, v107, v108, v109)
78
+ * Add LogInspector (#11368)
79
+ * Add Browsing context commands (#11446)
80
+
81
+ 4.7.1 (2022-12-02)
82
+ =========================
83
+ Ruby:
84
+ * Fix bug preventing selenium manager from using Internet Explorer
85
+
86
+ 4.7.0 (2022-12-01)
87
+ =========================
88
+ BiDi:
89
+ * Released selenium-devtools 0.108.0 (supports CDP v85, v106, v107, v108)
90
+ * Fix bug with socket stability
91
+
92
+ Ruby:
93
+ * Remove dependency on ChildProcess gem in favor of native Process.spawn (#11251)
94
+ * Add support for Selenium Manager to work with IE Driver
95
+ * Improve error handling for Selenium Manager
96
+
97
+ Safari:
98
+ * Fix bug preventing Safari Options from being used with Safari Technology Preview
99
+
100
+ 4.6.1 (2022-11-04)
101
+ =========================
102
+ Ruby:
103
+ * fix bug preventing selenium-manager from being executable by default
104
+
105
+ 4.6.0 (2022-11-04)
106
+ =========================
107
+ BiDi:
108
+ * Released selenium-devtools 0.107.0 (supports CDP v85, v105, v106, v107)
109
+
110
+ Ruby:
111
+ * firefox scroll by amount is only failing on mac
112
+ * add initial support for selenium manager
113
+ * Revert "[rb] do not allow Select class to work with disabled selects"
114
+ * Make sure selenium-manager is packed into gem
115
+ * Fix platform list in #scroll_by guard
116
+
117
+ 4.5.0 (2022-09-28)
118
+ =========================
119
+
120
+ BiDi:
121
+ * Released selenium-devtools 0.105.0 (supports CDP v85, v103, v104, v105)
122
+ * Released selenium-devtools 0.106.0 (supports CDP v85, v104, v105, v106)
123
+ * Add HasBiDi support to Chrome
124
+
125
+ Ruby:
126
+ * Fix bug in Platform code
127
+ * Update Select class to error when elements are disabled (#10812)
128
+
129
+ Firefox:
130
+ * Add support for installing unsigned add-ons (#10265, thanks TamsilAmani!)
131
+ * Change accept_insecure_certificates to true by default (to match other bindings)
132
+ * Set debugger_address option to true by default
133
+
134
+ Server:
135
+ * Add support for initializing server class with arguments and log level
136
+
137
+ 4.4.0 (2022-08-09)
138
+ =========================
139
+
140
+ BiDi:
141
+ * Released selenium-devtools 0.103.1 to fix websocket dependency requirement
142
+ * Released selenium-devtools 0.104.0 (supports CDP v85, v102, v103, v104)
143
+ * Have network interceptor ignore cancelled requests (#10856)
144
+ * Improve websocket message handling
145
+
146
+ Chromium:
147
+ * Prevent users from setting w3c: false and warn for true (thanks Tamsil Amani!)
148
+
149
+ Ruby:
150
+ * Implement Virtual Authenticator (#10903, #10541) (thanks Tamsil Amani!)
151
+
152
+ 4.3.0 (2022-06-23)
153
+ =========================
154
+
155
+ BiDi:
156
+ * Released selenium-devtools 0.103.0 (supports CDP v85, v101, v102, v103)
157
+
158
+ Ruby:
159
+ * Allow specifying which button is clicked in pointer action class methods
160
+ * Remove deprecated `Persistent` http class
161
+ * Remove deprecated HasRemoteStatus module
162
+ * Remove deprecated `Manager#new_window` and `Manager#logs`
163
+ * `ActionBuilder#move_to` no longer attempts to move to top left corner of element
164
+ * Remove deprecated support for sending Service parameters directly to Driver constructor
165
+ * Remove deprecated setters and getters for driver path on Browser modules
166
+ * Remove deprecated support for passing in options argument to Options class
167
+ * Allow `:options` parameter to take `Options` instance argument like other languages
168
+ * Remove deprecated support for `:desired_capabilities` & `:options` with `Hash` argument
169
+
170
+ 4.2.1 (2022-05-31)
171
+ =========================
172
+
173
+ Ruby
174
+ * Fix bug in setting default duration in Actions constructor
175
+
176
+ 4.2.0 (2022-05-27)
177
+ =========================
178
+
179
+ BiDi:
180
+ * Released selenium-devtools 0.97.0 (supports CDP v85, v95, v96, v97)
181
+ * Released selenium-devtools 0.98.0 (supports CDP v85, v96, v97, v98)
182
+ * Released selenium-devtools 0.99.0 (supports CDP v85, v97, v98, v99)
183
+ * Released selenium-devtools 0.100.0 (supports CDP v85, v98, v99, v100)
184
+ * Released selenium-devtools 0.101.0 (supports CDP v85, v99, v100, v101)
185
+ * Released selenium-devtools 0.102.0 (supports CDP v85, v100, v101, v102)
186
+ * Implement simple BiDi connection
187
+ * Fix bug in initial BiDi implementation (thanks Boris Petrov!)
188
+ * Fix bug with mutating headers in request interception (#10574)
189
+ * Fix bug with empty response headers (thanks Viren Negi!)
190
+
191
+ Firefox:
192
+ * Add support to Firefox Options for environment capability
193
+ * Use addon parameter instead of path parameter to avoid using file detector
194
+ * Restore #from_name method to Firefox profile (#10146)
195
+
196
+ Chromium:
197
+ * Add support for casting desktop
198
+
199
+ Ruby:
200
+ * Updated minimum required Ruby version to 2.7
201
+ * Fix bug by not attempting to stop service process when it's not started (#10015)
202
+ * Fix bug to not stop service process when it's not started (thanks Atsushi Tatsuma!)
203
+ * Use driver endpoint to get page source instead of JavaScript
204
+ * Add zenkaku_hankaku key support
205
+ * Fix download support of Selenium Server
206
+ * Do not convert Tag Name to CSS Selector
207
+
208
+ ActionBuilder:
209
+ * Raise error if input device not found
210
+ * Move `TypingInteraction` from `Interactions::KeyInput` to `Interactions` module
211
+ * Throw better errors for `PointerInput` methods
212
+ * Allow each action interaction class to validate its own source
213
+ * Set all Interactions classes to private
214
+ * Allow device names to use a default id if one is not specified
215
+ * Deprecate default mouse and keyboard values in constructor, favoring devices parameter
216
+ * Add support for pointer event properties
217
+ * Implement scroll wheel support
218
+ * Deprecate ordered pair parameters for pause method in favor of keywords
219
+ * Deprecate move to element with offset changing origin to top left of element
220
+
221
+ 4.1.0 (2021-11-22)
222
+ =========================
223
+
224
+ DevTools:
225
+ * Released selenium-devtools 0.95.0 (supports CDP v85, v93, v94, v95)
226
+ * Released selenium-devtools 0.96.0 (supports CDP v85, v94, v95, v96)
227
+ * Added support for secure websockets (#10017)
228
+
229
+ Ruby:
230
+ * Execute Script supports ShadowRoots (#10019)
231
+ * Fixed bug preventing zipping temp files on Windows (#9987)
232
+ * Sang Pumpkin Carol (thanks Jari!)
233
+
234
+ 4.0.3 (2021-10-20)
235
+ =========================
236
+
237
+ Firefox:
238
+ * Fixed bug avoiding camel casing prefs (#9944 thanks @glaszig)
239
+
240
+ Ruby:
241
+ * Fixed bug in Select class for finding by index (#9945)
242
+
243
+ Remote:
244
+ * Fixed bug preventing sending keys with an empty value
245
+
246
+ 4.0.2 (2021-10-19)
247
+ =========================
248
+
249
+ Server:
250
+ * Fixed bug in new download code.
251
+
252
+ 4.0.1 (2021-10-19)
253
+ =========================
254
+
255
+ Server:
256
+ * Fixed download by pointing to new storage location.
257
+ - Only supports Selenium 4 versions
258
+ * Added default value for Server::get and Server::download to use the latest server version
259
+
260
+ 4.0.0 (2021-10-13)
261
+ =========================
262
+
263
+ Ruby:
264
+ * Updated minimum required Ruby version to 2.6
265
+ * Updated minimum required rexml gem version due to vulnerability
266
+
267
+ Chrome:
268
+ * Added default values for Network Conditions so no longer need to specify everything
269
+
270
+ Firefox:
271
+ * Fixed bug where Firefox prefs were converting snake case to camel case
272
+
273
+ 4.0.0.rc3 (2021-10-08)
274
+ =========================
275
+
276
+ Ruby:
277
+ * Added support for getting timeout values from the driver
278
+
279
+ 4.0.0.rc2 (2021-09-30)
280
+ =========================
281
+
282
+ DevTools:
283
+ * Released selenium-devtools 0.93.0 (2021-09-01)
284
+ - adds CDP version 93
285
+ - removes CDP version 91
286
+ * Released selenium-devtools 0.94.0 (2021-09-22)
287
+ - adds CDP version 94
288
+ - removes CDP version 92
289
+ * Added support for mutating responses in network interception
290
+
291
+ Ruby:
292
+ * Implemented Options#add_option to work for vendor extension capabilities
293
+ * Fixed bug for requiring uri (#9825 thanks @flanger001)
294
+ * Moved New Window functionality to TargetLocator#new_window to be used with Driver#switch_to
295
+ * Deprecated using Manager#new_window
296
+ * Changed order of logging output (#9850)
297
+ * Added support for web_socket_url capability
298
+
299
+ Chromium:
300
+ * Implemented casting functionality
301
+ * Implemented ability to launch chromium app
302
+ * Implemented support for specifying permissions
303
+ * Added support for Chrome-specific Android functionality with #enable_android
304
+
305
+ Firefox:
306
+ * Implemented context functionality
307
+ * Added support for Firefox-specific Android functionality with #enable_android
308
+
309
+ Remote:
310
+ * Added support for file detector to install Firefox addons from client machine
311
+
312
+ 4.0.0.rc1 (2021-09-01)
313
+ =========================
314
+
315
+ DevTools:
316
+ * Released selenium-devtools 0.92.0 (2021-08-21) which:
317
+ - adds CDP versions 92
318
+ - removes CDP versions 88, 89, 90
319
+
320
+ IE:
321
+ * Added options for running Microsoft Edge in IE mode with IE Driver
322
+
323
+ Remote:
324
+ * Added default file detector for remote driver
325
+
326
+ Ruby:
327
+ * Fixed bug for getting valid capability that has not been set
328
+ * Fixed bug preventing loading of ServerError class
329
+
330
+ 4.0.0.beta4 (2021-06-07)
331
+ =========================
332
+
333
+ Chrome:
334
+ * Fixed bug with camel casing of localState object
335
+
336
+ Firefox:
337
+ * Added support for Full Page Screenshots
338
+
339
+ Remote:
340
+ * Added support for #execute_cdp on Chrome and Edge
341
+
342
+ Ruby:
343
+ * Changed capabilities to use alwaysMatch instead of firstMatch by default
344
+ * Fixed bug preventing Options classes from handling Proxy instances
345
+
346
+ 4.0.0.beta3 (2021-04-13)
347
+ =========================
348
+
349
+ Chrome:
350
+ * Fixed a regression with prefs hash keys being converted to camelCase.
351
+ * Fixed an issue when passing Profile object to Options would fail.
352
+
353
+ DevTools:
354
+ * Released selenium-devtools 0.91.0 which:
355
+ - adds CDP versions 90 and 91
356
+ - removes CDP versions 86 and 87
357
+
358
+ Remote:
359
+ * Added support for setting alwaysMatch/firstMatch capabilities per W3C
360
+ WebDriver specification. It's done using the following methods where
361
+ `caps` is either a Ruby hash with desired capabilities or an instance
362
+ of Remote::Capabilities:
363
+ * Selenium::WebDriver::Remote::Capabilities.always_match(caps)
364
+ * Selenium::WebDriver::Remote::Capabilities.first_match(caps)
365
+ * Added support for Driver#save_print_page.
366
+ * Fixed an issue with Driver#print_page.
367
+ * Added support for setting timeouts capabilities in Remote::Capabilities
368
+ per W3C WebDriver specification.
369
+ * Added support for Element#aria_role which returns WAI-ARIA role of the element.
370
+ * Added support for Element#accessible name which returns WAI-ARIA label of the element.
371
+ * Added support for using DevTools version provided by Grid instead of
372
+ calculating it manually
373
+
374
+ Ruby:
375
+ * Remove JRuby-specific socket poller. Note that this requires JRuby 9.2.8.0+.
376
+
377
+ 4.0.0.beta2 (2021-03-16)
378
+ =========================
379
+
380
+ DevTools:
381
+ * Separated out DevTools methods into selenium-devtools gem to better manage versioning
382
+ * Updated supported versions to 85-89
383
+ * Add support for intercepting browser requests
384
+
385
+ Firefox:
386
+ * Add support for using DevTools commands with Firefox Nightly
387
+
388
+ Remote:
389
+ * Provide access to browser specific driver extensions as appropriate for designated browser
390
+ * Add support for using DevTools commands via Grid
391
+
392
+ Ruby:
393
+ * Spec Guard implementation moved into lib directory for other projects to use
394
+ * Implemented `Element#dom_attribute` to obtain attribute value as defined by w3c specification
395
+ * Implemented `Options#eq?`
396
+ * Allow Options subclass instances to be created from class methods in superclass
397
+
398
+ Safari:
399
+ * Fix bug that prevented usage of Safari Technology Preview
400
+
401
+ 4.0.0.beta1 (2021-02-15)
402
+ =========================
403
+
404
+ DevTools:
405
+ * Updated supported versions to 85-88
406
+
407
+ Edge:
408
+ * Removed support for legacy Edge HTML
409
+
410
+ Firefox:
411
+ * Fixed support for default profile settings
412
+ * Added support for Devtools for Firefox v87+
413
+
414
+ Safari:
415
+ * Removed default platformName specification so it works with Grid
416
+
417
+ Ruby:
418
+ * Added support for httpOnly attribute in Cookies
419
+ * Implemented `#print_page` method (thanks @raju249)
420
+ * Fixed support for missing libraries in Ruby 3.0 (thanks @znz)
421
+ * Deprecated `HTTP::Persistent` class
422
+ * Fixed support for accessors in options classes
423
+ * Added support for status endpoint for all browsers
424
+ * Fix support for Browser, Driver, and Performance Logging in Chrome and Edge
425
+
426
+ 4.0.0.alpha7 (2020-11-10)
427
+ =========================
428
+
429
+ Chrome:
430
+ * Fixed a link to download ChromeDriver when it's not found (thanks @masakazutakewaka).
431
+ * Fixed an issue when passing instance of Profile to an Options in capabilities
432
+ (thanks @masakazutakewaka).
433
+
434
+ DevTools:
435
+ * Added support for multiple version of CDP. Currently supported versions are
436
+ 84-87. The proper version is automatically selected when the browser is started
437
+ based on its version. The implementation is Chromium-based and is confirmed
438
+ to work in Chrome and Edge at least.
439
+ * Added support for basic authentication (see HasAuthentication).
440
+ * Added support for listening to JavaScript console messages (see HasLogEvents).
441
+ * Added support for listening to JavaScript exceptions (see HasLogEvents).
442
+ * Added support for listening to DOM mutations (see HasLogEvents).
443
+
444
+ Edge:
445
+ * Switched default Edge implementation to Chromium-based. To use older versions
446
+ of Edge, pass :edge_html when initializing the driver.
447
+
448
+ Firefox:
449
+ * Fixed an issue whereby using the new capabilities structure in local drivers
450
+ would cause the W3C check to complain that `browser_name` was an invalid
451
+ capability key name (thanks @luke-hill)
452
+
453
+ Ruby:
454
+ * Added support for taking screenshots of individual elements using Element#screenshot
455
+ (thanks @johndouthat).
456
+ * Fixed deprecation message of using Net::HTTP::Proxy (thanks @masakazutakewaka).
457
+ * Fixed false negative detection of Linux on WSL2 (thanks @snsten).
458
+ * Support ChildProcess 4.x versions (thanks @boutil).
459
+
460
+ Safari:
461
+ * Fixed browser name in capabilities for Safari Technology Preview.
462
+
463
+ 4.0.0.alpha6 (2020-05-28)
464
+ =========================
465
+
466
+ Chrome:
467
+ * Added DevTools classes and methods generated from the CDP specification.
468
+ It currently supports commands and events and provides Rubyish API:
469
+ driver.devtools.page.navigate(url: 'http://google.com')
470
+ driver.devtools.console.clear_messages
471
+ driver.devtools.page.enable
472
+ driver.devtools.page.on(:load_event_fired) do |params|
473
+ puts("Page loaded in #{params['timestamp']}")
474
+ end
475
+ Check https://chromedevtools.github.io/devtools-protocol/ for more information
476
+ about possible commands and events. Please note that this API is considered
477
+ to be experimental and may change any time before stable 4.0 release.
478
+ * Fixed an issue when passing :prompt_for_download (or similar snake_cased
479
+ symbols) in Options#prefs would be ignored by Chrome because Selenium
480
+ would internally convert it to camelCased format (:promptForDownload).
481
+ Now :prefs are left intact.
482
+
483
+ Edge:
484
+ * Fixed an issue when Driver#execute_cdp would not work for Chromium-based
485
+ Edge browser.
486
+
487
+ Ruby:
488
+ * Deprecated passing :desired_capabilities and :options to driver initialization
489
+ in favor of :capabilities. They now can be combined in an array to make
490
+ custom capabilities requirements:
491
+ caps = Selenium::WebDriver::Remote::Capabilities.chrome
492
+ opts = Selenium::WebDriver::Chrome::Options.new
493
+ Selenium::WebDriver.for(:remote, capabilities: :chrome)
494
+ Selenium::WebDriver.for(:remote, capabilities: caps)
495
+ Selenium::WebDriver.for(:remote, capabilities: opts)
496
+ Selenium::WebDriver.for(:remote, capabilities: [caps, opts])
497
+ * Deprecated passing Hash to :capabilities in favor of Remote::Capabilities object.
498
+ * Updated minimum require Ruby version to 2.5.
499
+ * Improved keyword arguments handling to avoid warnings in Ruby 2.7.
500
+
501
+ 4.0.0.alpha5 (2020-03-18)
502
+ =========================
503
+
504
+ The release is just to synchronize version with other bindings and does not
505
+ include any changes.
506
+
507
+ 4.0.0.alpha4 (2020-01-09)
508
+ =========================
509
+
510
+ Ruby:
511
+ * Added initial support for relative locators, which allow to find elements
512
+ above/below/left/right/near another element. For example, you can find all
513
+ the cells in a table to the right of your starting cell:
514
+ start_cell = driver.find_element(css: 'td')
515
+ right_cells = driver.find_elements(relative: {tag_name: 'td', right: start_cell})
516
+ The documentation is still lacking so refer to examples in df6be2e962.
517
+ * Added ability to silence certain logger messages by using it's identifiers:
518
+ Selenium::WebDriver.logger.ignore(:driver_path)
519
+ * Added new dependency: websocket. It's used for communicating with Chrome DevTools.
520
+ * Loosened childprocess dependency to allow using version 2.0+.
521
+ * Loosened rubyzip dependency to allow using version 2.0+.
522
+ * Fixed Errno::EACCES error on Linux DeX and similar distributes
523
+
524
+ Chrome:
525
+ * Added initial support for communicating with Chrome DevTools. The implementation
526
+ is very basic and lacks CDP domains, events and types - those will be added
527
+ in future releases. Still, it allows to execute simple commands to DevTools:
528
+ driver.devtools.send('Page.navigate', {url: 'https://google.com'})
529
+
530
+ 4.0.0.alpha3 (2019-07-08)
531
+ =========================
532
+
533
+ Ruby:
534
+ * All documented driver capabilities supported in respective browser Options class by constructor and accessor
535
+ * Driver constructor :options and :desired_capabilities generate the same capabilities for local and remote execution
536
+ * Deprecated :options as keyword for initializing browser Options classes
537
+
538
+ Chrome:
539
+ * Add support for browser logging with latest versions of chromedriver
540
+
541
+ Edge:
542
+ * Add support for Chromium based implementation
543
+
544
+ 4.0.0.alpha2 (2019-05-02)
545
+ =========================
546
+
547
+ Ruby:
548
+ * Fixed an issue with previous alpha release which lead to removed files
549
+ being packaged inside the gem
550
+
551
+ 4.0.0.alpha1 (2019-05-01)
552
+ =========================
553
+
554
+ Ruby:
555
+ * Removed Mouse and Keyboard as their implementations are not compliant to WebDriver specification
556
+ * Removed TouchActionBuilder as its implementation is not compliant to WebDriver specification
557
+ * Change ActionBuilder to be fully compliant to WebDriver specification
558
+ * Change Manager to be fully compliant to WebDriver specification
559
+ * Removed all deprecated errors that are not compliant to WebDriver specification
560
+ * Update minimum required Ruby version to 2.4
561
+ * Changed capabilities to use only those that are compliant to WebDriver specification
562
+ * Removed deprecated timeout setter on default HTTP client
563
+ * Removed deprecated Remote::W3C::Capabilities
564
+ * Fixed an issue when services are not shutdown properly
565
+
566
+ Chrome:
567
+ * Removed support for OSS mode - use W3C mode instead by using
568
+ Selenium::WebDriver::Chrome::Options.new(options: {w3c: true})
569
+
570
+ PhantomJS:
571
+ * Removed support for PhantomJS driver
572
+
573
+ Firefox:
574
+ * Removed support for legacy Firefox driver - use GeckoDriver instead
575
+ * Removed deprecated outdated capabilities
576
+ * Fixed an issue when passing :profile string to Firefox::Options.new would
577
+ result in NoMethodError. Now it will find a profile with such name on your
578
+ system and use it accordingly (issue #7119)
579
+
1
580
  3.142.7 (2019-12-27)
2
581
  ====================
3
582
 
@@ -30,7 +609,6 @@ Firefox:
30
609
  * Fixed a regression when Firefox binary path was not sent to GeckoDriver
31
610
  by default and browser could not be located (issue #7219)
32
611
 
33
-
34
612
  3.142.2 (2019-05-11)
35
613
  ====================
36
614
 
@@ -581,11 +1159,11 @@ Ruby:
581
1159
  * Fix bug in auto detection of drivers which allowed selection of non-executable binaries
582
1160
 
583
1161
  W3C:
584
- * Implement #cookie_named and #delete_all_cookies methods (thanks lmtierney)
585
- * Implement element #property method (thanks lmtierney)
1162
+ * Implement #cookie_named and #delete_all_cookies methods (thanks lmtierney)
1163
+ * Implement element #property method (thanks lmtierney)
586
1164
 
587
1165
  Chrome:
588
- * Fix bug in switches (thanks danvine)
1166
+ * Fix bug in switches (thanks danvine)
589
1167
 
590
1168
  3.0.1 (2016-11-06)
591
1169
  ===================
@@ -607,7 +1185,7 @@ Ruby:
607
1185
  * Add support for latest driver options
608
1186
  * Add support for :port parameter for launching driver
609
1187
  * Add support for :service_args parameter for driver command line switches
610
- * Improve reliability by increasing service shutdown timeout (#2815; thanks John Barbuto )
1188
+ * Improve reliability by increasing service shutdown timeout (#2815; thanks John Barbuto )
611
1189
 
612
1190
  Firefox:
613
1191
  * Add support for :firefox_options in geckodriver
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  source 'https://rubygems.org'
4
- gemspec
4
+ Dir["#{__dir__}/*.gemspec"].each do |spec|
5
+ gemspec name: File.basename(spec, '.gemspec')
6
+ end
data/LICENSE CHANGED
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright 2019 Software Freedom Conservancy (SFC)
190
+ Copyright 2023 Software Freedom Conservancy (SFC)
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
data/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ Copyright 2011-2023 Software Freedom Conservancy
2
+ Copyright 2004-2011 Selenium committers
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # selenium-webdriver
2
2
 
3
- This gem provides Ruby bindings for WebDriver
4
- and has been tested to work on MRI (2.0 through 2.2),
3
+ This gem provides Ruby bindings for Selenium and supports MRI >= 2.6
5
4
 
6
5
  ## Install
7
6
 
@@ -9,14 +8,14 @@ and has been tested to work on MRI (2.0 through 2.2),
9
8
 
10
9
  ## Links
11
10
 
12
- * http://rubygems.org/gems/selenium-webdriver
13
- * http://seleniumhq.github.io/selenium/docs/api/rb/index.html
11
+ * https://rubygems.org/gems/selenium-webdriver
12
+ * https://www.selenium.dev/selenium/docs/api/rb/index.html
14
13
  * https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings
15
14
  * https://github.com/SeleniumHQ/selenium/issues
16
15
 
17
16
  ## License
18
17
 
19
- Copyright 2009-2018 Software Freedom Conservancy
18
+ Copyright 2009-2021 Software Freedom Conservancy
20
19
 
21
20
  Licensed to the Software Freedom Conservancy (SFC) under one
22
21
  or more contributor license agreements. See the NOTICE file
Binary file
Binary file
Binary file