selenium-webdriver 4.0.0.beta2 → 4.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +1947 -0
  3. data/Gemfile +6 -0
  4. data/LICENSE +202 -0
  5. data/NOTICE +2 -0
  6. data/README.md +34 -0
  7. data/lib/selenium/webdriver/atoms/findElements.js +0 -0
  8. data/lib/selenium/webdriver/atoms/getAttribute.js +25 -25
  9. data/lib/selenium/webdriver/atoms/isDisplayed.js +0 -0
  10. data/lib/selenium/webdriver/chrome/driver.rb +16 -4
  11. data/lib/selenium/webdriver/chrome/features.rb +44 -4
  12. data/lib/selenium/webdriver/chrome/options.rb +25 -2
  13. data/lib/selenium/webdriver/chrome/profile.rb +5 -2
  14. data/lib/selenium/webdriver/common/driver.rb +5 -1
  15. data/lib/selenium/webdriver/common/driver_extensions/full_page_screenshot.rb +43 -0
  16. data/lib/selenium/webdriver/common/driver_extensions/has_apple_permissions.rb +51 -0
  17. data/lib/selenium/webdriver/common/driver_extensions/has_casting.rb +77 -0
  18. data/lib/selenium/webdriver/common/driver_extensions/has_cdp.rb +38 -0
  19. data/lib/selenium/webdriver/common/driver_extensions/has_context.rb +45 -0
  20. data/lib/selenium/webdriver/common/driver_extensions/has_devtools.rb +0 -17
  21. data/lib/selenium/{devtools.rb → webdriver/common/driver_extensions/has_launching.rb} +16 -8
  22. data/lib/selenium/webdriver/common/driver_extensions/has_log_events.rb +1 -6
  23. data/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb +8 -0
  24. data/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb +87 -18
  25. data/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb +11 -11
  26. data/lib/selenium/webdriver/common/driver_extensions/has_pinned_scripts.rb +77 -0
  27. data/lib/selenium/webdriver/common/driver_extensions/prints_page.rb +28 -1
  28. data/lib/selenium/webdriver/common/element.rb +35 -6
  29. data/lib/selenium/webdriver/common/error.rb +12 -0
  30. data/lib/selenium/webdriver/common/log_entry.rb +2 -2
  31. data/lib/selenium/webdriver/common/manager.rb +3 -13
  32. data/lib/selenium/webdriver/common/options.rb +31 -12
  33. data/lib/selenium/webdriver/common/proxy.rb +2 -2
  34. data/lib/selenium/webdriver/common/shadow_root.rb +87 -0
  35. data/lib/selenium/webdriver/common/socket_poller.rb +19 -30
  36. data/lib/selenium/webdriver/common/takes_screenshot.rb +9 -6
  37. data/lib/selenium/webdriver/common/target_locator.rb +28 -0
  38. data/lib/selenium/webdriver/common/window.rb +0 -4
  39. data/lib/selenium/webdriver/common.rb +8 -0
  40. data/lib/selenium/webdriver/devtools/pinned_script.rb +59 -0
  41. data/lib/selenium/webdriver/devtools/request.rb +27 -17
  42. data/lib/selenium/webdriver/devtools/response.rb +66 -0
  43. data/lib/selenium/webdriver/devtools.rb +50 -12
  44. data/lib/selenium/webdriver/edge/features.rb +5 -0
  45. data/lib/selenium/webdriver/edge/options.rb +0 -0
  46. data/lib/selenium/webdriver/edge/profile.rb +0 -0
  47. data/lib/selenium/webdriver/firefox/driver.rb +15 -2
  48. data/lib/selenium/webdriver/firefox/features.rb +20 -1
  49. data/lib/selenium/webdriver/firefox/options.rb +24 -1
  50. data/lib/selenium/webdriver/firefox.rb +0 -1
  51. data/lib/selenium/webdriver/ie/options.rb +3 -1
  52. data/lib/selenium/webdriver/ie/service.rb +1 -1
  53. data/lib/selenium/webdriver/remote/bridge.rb +43 -13
  54. data/lib/selenium/webdriver/remote/capabilities.rb +97 -53
  55. data/lib/selenium/webdriver/remote/commands.rb +5 -0
  56. data/lib/selenium/webdriver/remote/driver.rb +7 -7
  57. data/lib/selenium/webdriver/remote.rb +1 -1
  58. data/lib/selenium/webdriver/safari/driver.rb +1 -1
  59. data/lib/selenium/webdriver/safari/options.rb +7 -0
  60. data/lib/selenium/webdriver/support/cdp/domain.rb.erb +63 -0
  61. data/lib/selenium/webdriver/support/cdp_client_generator.rb +108 -0
  62. data/lib/selenium/webdriver/support/event_firing_bridge.rb +2 -2
  63. data/lib/selenium/webdriver/version.rb +1 -1
  64. data/lib/selenium/webdriver.rb +1 -1
  65. data/selenium-webdriver.gemspec +63 -0
  66. metadata +60 -44
metadata CHANGED
@@ -1,18 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta2
4
+ version: 4.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rodionov
8
8
  - Titus Fortner
9
9
  - Thomas Walpole
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-03-16 00:00:00.000000000 Z
13
+ date: 2021-09-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
+ name: childprocess
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
19
  - - ">="
@@ -21,9 +22,8 @@ dependencies:
21
22
  - - "<"
22
23
  - !ruby/object:Gem::Version
23
24
  version: '5.0'
24
- name: childprocess
25
- prerelease: false
26
25
  type: :runtime
26
+ prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - ">="
@@ -33,182 +33,182 @@ dependencies:
33
33
  - !ruby/object:Gem::Version
34
34
  version: '5.0'
35
35
  - !ruby/object:Gem::Dependency
36
+ name: rexml
36
37
  requirement: !ruby/object:Gem::Requirement
37
38
  requirements:
38
39
  - - "~>"
39
40
  - !ruby/object:Gem::Version
40
41
  version: '3.2'
41
- name: rexml
42
- prerelease: false
43
42
  type: :runtime
43
+ prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '3.2'
49
49
  - !ruby/object:Gem::Dependency
50
+ name: rubyzip
50
51
  requirement: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - ">="
53
54
  - !ruby/object:Gem::Version
54
55
  version: 1.2.2
55
- name: rubyzip
56
- prerelease: false
57
56
  type: :runtime
57
+ prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 1.2.2
63
63
  - !ruby/object:Gem::Dependency
64
+ name: ffi
64
65
  requirement: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - "~>"
67
+ - - ">="
67
68
  - !ruby/object:Gem::Version
68
- version: '1.0'
69
- name: websocket
69
+ version: '0'
70
+ type: :development
70
71
  prerelease: false
71
- type: :runtime
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '1.0'
76
+ version: '0'
77
77
  - !ruby/object:Gem::Dependency
78
+ name: pry
78
79
  requirement: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - ">="
81
+ - - "~>"
81
82
  - !ruby/object:Gem::Version
82
- version: '0'
83
- name: ffi
84
- prerelease: false
83
+ version: '0.14'
85
84
  type: :development
85
+ prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: '0.14'
91
91
  - !ruby/object:Gem::Dependency
92
+ name: rack
92
93
  requirement: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - "~>"
95
96
  - !ruby/object:Gem::Version
96
97
  version: '2.0'
97
- name: rack
98
- prerelease: false
99
98
  type: :development
99
+ prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: '2.0'
105
105
  - !ruby/object:Gem::Dependency
106
+ name: rake
106
107
  requirement: !ruby/object:Gem::Requirement
107
108
  requirements:
108
109
  - - ">="
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
- name: rake
112
- prerelease: false
113
112
  type: :development
113
+ prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  - !ruby/object:Gem::Dependency
120
+ name: rspec
120
121
  requirement: !ruby/object:Gem::Requirement
121
122
  requirements:
122
123
  - - "~>"
123
124
  - !ruby/object:Gem::Version
124
125
  version: '3.0'
125
- name: rspec
126
- prerelease: false
127
126
  type: :development
127
+ prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '3.0'
133
133
  - !ruby/object:Gem::Dependency
134
+ name: rubocop
134
135
  requirement: !ruby/object:Gem::Requirement
135
136
  requirements:
136
137
  - - "~>"
137
138
  - !ruby/object:Gem::Version
138
139
  version: 1.8.0
139
- name: rubocop
140
- prerelease: false
141
140
  type: :development
141
+ prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
146
  version: 1.8.0
147
147
  - !ruby/object:Gem::Dependency
148
+ name: rubocop-performance
148
149
  requirement: !ruby/object:Gem::Requirement
149
150
  requirements:
150
151
  - - ">="
151
152
  - !ruby/object:Gem::Version
152
153
  version: '0'
153
- name: rubocop-performance
154
- prerelease: false
155
154
  type: :development
155
+ prerelease: false
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  - !ruby/object:Gem::Dependency
162
+ name: rubocop-rspec
162
163
  requirement: !ruby/object:Gem::Requirement
163
164
  requirements:
164
165
  - - ">="
165
166
  - !ruby/object:Gem::Version
166
167
  version: '0'
167
- name: rubocop-rspec
168
- prerelease: false
169
168
  type: :development
169
+ prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  - !ruby/object:Gem::Dependency
176
+ name: webmock
176
177
  requirement: !ruby/object:Gem::Requirement
177
178
  requirements:
178
179
  - - "~>"
179
180
  - !ruby/object:Gem::Version
180
181
  version: '3.5'
181
- name: webmock
182
- prerelease: false
183
182
  type: :development
183
+ prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
188
  version: '3.5'
189
189
  - !ruby/object:Gem::Dependency
190
+ name: webrick
190
191
  requirement: !ruby/object:Gem::Requirement
191
192
  requirements:
192
193
  - - "~>"
193
194
  - !ruby/object:Gem::Version
194
195
  version: '1.7'
195
- name: webrick
196
- prerelease: false
197
196
  type: :development
197
+ prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
202
  version: '1.7'
203
203
  - !ruby/object:Gem::Dependency
204
+ name: yard
204
205
  requirement: !ruby/object:Gem::Requirement
205
206
  requirements:
206
207
  - - "~>"
207
208
  - !ruby/object:Gem::Version
208
209
  version: 0.9.11
209
- name: yard
210
- prerelease: false
211
210
  type: :development
211
+ prerelease: false
212
212
  version_requirements: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - "~>"
@@ -226,8 +226,12 @@ executables: []
226
226
  extensions: []
227
227
  extra_rdoc_files: []
228
228
  files:
229
+ - CHANGES
230
+ - Gemfile
231
+ - LICENSE
232
+ - NOTICE
233
+ - README.md
229
234
  - lib/selenium-webdriver.rb
230
- - lib/selenium/devtools.rb
231
235
  - lib/selenium/server.rb
232
236
  - lib/selenium/webdriver.rb
233
237
  - lib/selenium/webdriver/atoms.rb
@@ -246,10 +250,16 @@ files:
246
250
  - lib/selenium/webdriver/common/alert.rb
247
251
  - lib/selenium/webdriver/common/driver.rb
248
252
  - lib/selenium/webdriver/common/driver_extensions/downloads_files.rb
253
+ - lib/selenium/webdriver/common/driver_extensions/full_page_screenshot.rb
249
254
  - lib/selenium/webdriver/common/driver_extensions/has_addons.rb
255
+ - lib/selenium/webdriver/common/driver_extensions/has_apple_permissions.rb
250
256
  - lib/selenium/webdriver/common/driver_extensions/has_authentication.rb
257
+ - lib/selenium/webdriver/common/driver_extensions/has_casting.rb
258
+ - lib/selenium/webdriver/common/driver_extensions/has_cdp.rb
259
+ - lib/selenium/webdriver/common/driver_extensions/has_context.rb
251
260
  - lib/selenium/webdriver/common/driver_extensions/has_debugger.rb
252
261
  - lib/selenium/webdriver/common/driver_extensions/has_devtools.rb
262
+ - lib/selenium/webdriver/common/driver_extensions/has_launching.rb
253
263
  - lib/selenium/webdriver/common/driver_extensions/has_location.rb
254
264
  - lib/selenium/webdriver/common/driver_extensions/has_log_events.rb
255
265
  - lib/selenium/webdriver/common/driver_extensions/has_logs.rb
@@ -257,6 +267,7 @@ files:
257
267
  - lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb
258
268
  - lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb
259
269
  - lib/selenium/webdriver/common/driver_extensions/has_permissions.rb
270
+ - lib/selenium/webdriver/common/driver_extensions/has_pinned_scripts.rb
260
271
  - lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb
261
272
  - lib/selenium/webdriver/common/driver_extensions/has_session_id.rb
262
273
  - lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb
@@ -290,6 +301,7 @@ files:
290
301
  - lib/selenium/webdriver/common/search_context.rb
291
302
  - lib/selenium/webdriver/common/service.rb
292
303
  - lib/selenium/webdriver/common/service_manager.rb
304
+ - lib/selenium/webdriver/common/shadow_root.rb
293
305
  - lib/selenium/webdriver/common/socket_lock.rb
294
306
  - lib/selenium/webdriver/common/socket_poller.rb
295
307
  - lib/selenium/webdriver/common/takes_screenshot.rb
@@ -302,7 +314,9 @@ files:
302
314
  - lib/selenium/webdriver/devtools/console_event.rb
303
315
  - lib/selenium/webdriver/devtools/exception_event.rb
304
316
  - lib/selenium/webdriver/devtools/mutation_event.rb
317
+ - lib/selenium/webdriver/devtools/pinned_script.rb
305
318
  - lib/selenium/webdriver/devtools/request.rb
319
+ - lib/selenium/webdriver/devtools/response.rb
306
320
  - lib/selenium/webdriver/edge.rb
307
321
  - lib/selenium/webdriver/edge/driver.rb
308
322
  - lib/selenium/webdriver/edge/features.rb
@@ -340,6 +354,8 @@ files:
340
354
  - lib/selenium/webdriver/support.rb
341
355
  - lib/selenium/webdriver/support/abstract_event_listener.rb
342
356
  - lib/selenium/webdriver/support/block_event_listener.rb
357
+ - lib/selenium/webdriver/support/cdp/domain.rb.erb
358
+ - lib/selenium/webdriver/support/cdp_client_generator.rb
343
359
  - lib/selenium/webdriver/support/color.rb
344
360
  - lib/selenium/webdriver/support/escaper.rb
345
361
  - lib/selenium/webdriver/support/event_firing_bridge.rb
@@ -349,13 +365,14 @@ files:
349
365
  - lib/selenium/webdriver/support/relative_locator.rb
350
366
  - lib/selenium/webdriver/support/select.rb
351
367
  - lib/selenium/webdriver/version.rb
368
+ - selenium-webdriver.gemspec
352
369
  homepage: https://selenium.dev
353
370
  licenses:
354
371
  - Apache-2.0
355
372
  metadata:
356
373
  changelog_uri: https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES
357
374
  source_code_uri: https://github.com/SeleniumHQ/selenium/tree/trunk/rb
358
- post_install_message:
375
+ post_install_message:
359
376
  rdoc_options: []
360
377
  require_paths:
361
378
  - lib
@@ -370,9 +387,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
370
387
  - !ruby/object:Gem::Version
371
388
  version: 1.3.1
372
389
  requirements: []
373
- rubyforge_project:
374
- rubygems_version: 2.7.9
375
- signing_key:
390
+ rubygems_version: 3.0.3
391
+ signing_key:
376
392
  specification_version: 4
377
393
  summary: Selenium is a browser automation tool for automated testing of webapps and
378
394
  more