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