playwright-ruby-client 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -0
- data/documentation/docs/api/browser.md +18 -2
- data/documentation/docs/api/browser_context.md +10 -0
- data/documentation/docs/api/browser_type.md +1 -0
- data/documentation/docs/api/cdp_session.md +41 -1
- data/documentation/docs/api/download.md +97 -0
- data/documentation/docs/api/element_handle.md +38 -4
- data/documentation/docs/api/experimental/android_device.md +1 -0
- data/documentation/docs/api/frame.md +78 -17
- data/documentation/docs/api/keyboard.md +11 -20
- data/documentation/docs/api/locator.md +650 -0
- data/documentation/docs/api/page.md +107 -19
- data/documentation/docs/api/response.md +16 -0
- data/documentation/docs/article/guides/inspector.md +31 -0
- data/documentation/docs/article/guides/playwright_on_alpine_linux.md +91 -0
- data/documentation/docs/article/guides/rails_integration.md +1 -1
- data/documentation/docs/article/guides/semi_automation.md +5 -1
- data/documentation/docs/include/api_coverage.md +70 -7
- data/lib/playwright.rb +36 -4
- data/lib/playwright/channel_owners/artifact.rb +4 -0
- data/lib/playwright/channel_owners/browser.rb +5 -0
- data/lib/playwright/channel_owners/browser_context.rb +37 -3
- data/lib/playwright/channel_owners/cdp_session.rb +19 -0
- data/lib/playwright/channel_owners/element_handle.rb +11 -4
- data/lib/playwright/channel_owners/frame.rb +103 -34
- data/lib/playwright/channel_owners/page.rb +140 -53
- data/lib/playwright/channel_owners/response.rb +9 -1
- data/lib/playwright/connection.rb +2 -4
- data/lib/playwright/{download.rb → download_impl.rb} +5 -1
- data/lib/playwright/javascript/expression.rb +5 -4
- data/lib/playwright/locator_impl.rb +314 -0
- data/lib/playwright/route_handler_entry.rb +3 -2
- data/lib/playwright/timeout_settings.rb +4 -4
- data/lib/playwright/transport.rb +0 -1
- data/lib/playwright/url_matcher.rb +12 -2
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright/web_socket_client.rb +164 -0
- data/lib/playwright/web_socket_transport.rb +104 -0
- data/lib/playwright_api/android.rb +6 -6
- data/lib/playwright_api/android_device.rb +10 -9
- data/lib/playwright_api/browser.rb +17 -11
- data/lib/playwright_api/browser_context.rb +14 -9
- data/lib/playwright_api/browser_type.rb +8 -7
- data/lib/playwright_api/cdp_session.rb +30 -8
- data/lib/playwright_api/console_message.rb +6 -6
- data/lib/playwright_api/dialog.rb +6 -6
- data/lib/playwright_api/download.rb +70 -0
- data/lib/playwright_api/element_handle.rb +44 -24
- data/lib/playwright_api/frame.rb +100 -49
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +509 -0
- data/lib/playwright_api/page.rb +110 -57
- data/lib/playwright_api/playwright.rb +6 -6
- data/lib/playwright_api/request.rb +6 -6
- data/lib/playwright_api/response.rb +15 -10
- data/lib/playwright_api/route.rb +6 -6
- data/lib/playwright_api/selectors.rb +6 -6
- data/lib/playwright_api/web_socket.rb +6 -6
- data/lib/playwright_api/worker.rb +6 -6
- metadata +15 -5
data/lib/playwright_api/route.rb
CHANGED
@@ -58,20 +58,20 @@ module Playwright
|
|
58
58
|
|
59
59
|
# -- inherited from EventEmitter --
|
60
60
|
# @nodoc
|
61
|
-
def
|
62
|
-
event_emitter_proxy.
|
61
|
+
def once(event, callback)
|
62
|
+
event_emitter_proxy.once(event, callback)
|
63
63
|
end
|
64
64
|
|
65
65
|
# -- inherited from EventEmitter --
|
66
66
|
# @nodoc
|
67
|
-
def
|
68
|
-
event_emitter_proxy.
|
67
|
+
def on(event, callback)
|
68
|
+
event_emitter_proxy.on(event, callback)
|
69
69
|
end
|
70
70
|
|
71
71
|
# -- inherited from EventEmitter --
|
72
72
|
# @nodoc
|
73
|
-
def
|
74
|
-
event_emitter_proxy.
|
73
|
+
def off(event, callback)
|
74
|
+
event_emitter_proxy.off(event, callback)
|
75
75
|
end
|
76
76
|
|
77
77
|
private def event_emitter_proxy
|
@@ -14,20 +14,20 @@ module Playwright
|
|
14
14
|
|
15
15
|
# -- inherited from EventEmitter --
|
16
16
|
# @nodoc
|
17
|
-
def
|
18
|
-
event_emitter_proxy.
|
17
|
+
def once(event, callback)
|
18
|
+
event_emitter_proxy.once(event, callback)
|
19
19
|
end
|
20
20
|
|
21
21
|
# -- inherited from EventEmitter --
|
22
22
|
# @nodoc
|
23
|
-
def
|
24
|
-
event_emitter_proxy.
|
23
|
+
def on(event, callback)
|
24
|
+
event_emitter_proxy.on(event, callback)
|
25
25
|
end
|
26
26
|
|
27
27
|
# -- inherited from EventEmitter --
|
28
28
|
# @nodoc
|
29
|
-
def
|
30
|
-
event_emitter_proxy.
|
29
|
+
def off(event, callback)
|
30
|
+
event_emitter_proxy.off(event, callback)
|
31
31
|
end
|
32
32
|
|
33
33
|
private def event_emitter_proxy
|
@@ -29,20 +29,20 @@ module Playwright
|
|
29
29
|
|
30
30
|
# -- inherited from EventEmitter --
|
31
31
|
# @nodoc
|
32
|
-
def
|
33
|
-
event_emitter_proxy.
|
32
|
+
def once(event, callback)
|
33
|
+
event_emitter_proxy.once(event, callback)
|
34
34
|
end
|
35
35
|
|
36
36
|
# -- inherited from EventEmitter --
|
37
37
|
# @nodoc
|
38
|
-
def
|
39
|
-
event_emitter_proxy.
|
38
|
+
def on(event, callback)
|
39
|
+
event_emitter_proxy.on(event, callback)
|
40
40
|
end
|
41
41
|
|
42
42
|
# -- inherited from EventEmitter --
|
43
43
|
# @nodoc
|
44
|
-
def
|
45
|
-
event_emitter_proxy.
|
44
|
+
def off(event, callback)
|
45
|
+
event_emitter_proxy.off(event, callback)
|
46
46
|
end
|
47
47
|
|
48
48
|
private def event_emitter_proxy
|
@@ -45,20 +45,20 @@ module Playwright
|
|
45
45
|
|
46
46
|
# -- inherited from EventEmitter --
|
47
47
|
# @nodoc
|
48
|
-
def
|
49
|
-
event_emitter_proxy.
|
48
|
+
def once(event, callback)
|
49
|
+
event_emitter_proxy.once(event, callback)
|
50
50
|
end
|
51
51
|
|
52
52
|
# -- inherited from EventEmitter --
|
53
53
|
# @nodoc
|
54
|
-
def
|
55
|
-
event_emitter_proxy.
|
54
|
+
def on(event, callback)
|
55
|
+
event_emitter_proxy.on(event, callback)
|
56
56
|
end
|
57
57
|
|
58
58
|
# -- inherited from EventEmitter --
|
59
59
|
# @nodoc
|
60
|
-
def
|
61
|
-
event_emitter_proxy.
|
60
|
+
def off(event, callback)
|
61
|
+
event_emitter_proxy.off(event, callback)
|
62
62
|
end
|
63
63
|
|
64
64
|
private def event_emitter_proxy
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playwright-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- documentation/docs/api/cdp_session.md
|
217
217
|
- documentation/docs/api/console_message.md
|
218
218
|
- documentation/docs/api/dialog.md
|
219
|
+
- documentation/docs/api/download.md
|
219
220
|
- documentation/docs/api/element_handle.md
|
220
221
|
- documentation/docs/api/experimental/_category_.yml
|
221
222
|
- documentation/docs/api/experimental/android.md
|
@@ -227,6 +228,7 @@ files:
|
|
227
228
|
- documentation/docs/api/frame.md
|
228
229
|
- documentation/docs/api/js_handle.md
|
229
230
|
- documentation/docs/api/keyboard.md
|
231
|
+
- documentation/docs/api/locator.md
|
230
232
|
- documentation/docs/api/mouse.md
|
231
233
|
- documentation/docs/api/page.md
|
232
234
|
- documentation/docs/api/playwright.md
|
@@ -242,7 +244,9 @@ files:
|
|
242
244
|
- documentation/docs/article/getting_started.md
|
243
245
|
- documentation/docs/article/guides/_category_.yml
|
244
246
|
- documentation/docs/article/guides/download_playwright_driver.md
|
247
|
+
- documentation/docs/article/guides/inspector.md
|
245
248
|
- documentation/docs/article/guides/launch_browser.md
|
249
|
+
- documentation/docs/article/guides/playwright_on_alpine_linux.md
|
246
250
|
- documentation/docs/article/guides/rails_integration.md
|
247
251
|
- documentation/docs/article/guides/recording_video.md
|
248
252
|
- documentation/docs/article/guides/semi_automation.md
|
@@ -274,6 +278,7 @@ files:
|
|
274
278
|
- lib/playwright/channel_owners/browser.rb
|
275
279
|
- lib/playwright/channel_owners/browser_context.rb
|
276
280
|
- lib/playwright/channel_owners/browser_type.rb
|
281
|
+
- lib/playwright/channel_owners/cdp_session.rb
|
277
282
|
- lib/playwright/channel_owners/console_message.rb
|
278
283
|
- lib/playwright/channel_owners/dialog.rb
|
279
284
|
- lib/playwright/channel_owners/electron.rb
|
@@ -290,7 +295,7 @@ files:
|
|
290
295
|
- lib/playwright/channel_owners/web_socket.rb
|
291
296
|
- lib/playwright/channel_owners/worker.rb
|
292
297
|
- lib/playwright/connection.rb
|
293
|
-
- lib/playwright/
|
298
|
+
- lib/playwright/download_impl.rb
|
294
299
|
- lib/playwright/errors.rb
|
295
300
|
- lib/playwright/event_emitter.rb
|
296
301
|
- lib/playwright/event_emitter_proxy.rb
|
@@ -303,6 +308,7 @@ files:
|
|
303
308
|
- lib/playwright/javascript/value_parser.rb
|
304
309
|
- lib/playwright/javascript/value_serializer.rb
|
305
310
|
- lib/playwright/keyboard_impl.rb
|
311
|
+
- lib/playwright/locator_impl.rb
|
306
312
|
- lib/playwright/mouse_impl.rb
|
307
313
|
- lib/playwright/playwright_api.rb
|
308
314
|
- lib/playwright/route_handler_entry.rb
|
@@ -316,6 +322,8 @@ files:
|
|
316
322
|
- lib/playwright/version.rb
|
317
323
|
- lib/playwright/video.rb
|
318
324
|
- lib/playwright/wait_helper.rb
|
325
|
+
- lib/playwright/web_socket_client.rb
|
326
|
+
- lib/playwright/web_socket_transport.rb
|
319
327
|
- lib/playwright_api/accessibility.rb
|
320
328
|
- lib/playwright_api/android.rb
|
321
329
|
- lib/playwright_api/android_device.rb
|
@@ -328,11 +336,13 @@ files:
|
|
328
336
|
- lib/playwright_api/cdp_session.rb
|
329
337
|
- lib/playwright_api/console_message.rb
|
330
338
|
- lib/playwright_api/dialog.rb
|
339
|
+
- lib/playwright_api/download.rb
|
331
340
|
- lib/playwright_api/element_handle.rb
|
332
341
|
- lib/playwright_api/file_chooser.rb
|
333
342
|
- lib/playwright_api/frame.rb
|
334
343
|
- lib/playwright_api/js_handle.rb
|
335
344
|
- lib/playwright_api/keyboard.rb
|
345
|
+
- lib/playwright_api/locator.rb
|
336
346
|
- lib/playwright_api/mouse.rb
|
337
347
|
- lib/playwright_api/page.rb
|
338
348
|
- lib/playwright_api/playwright.rb
|
@@ -364,8 +374,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
364
374
|
- !ruby/object:Gem::Version
|
365
375
|
version: '0'
|
366
376
|
requirements: []
|
367
|
-
rubygems_version: 3.2.
|
377
|
+
rubygems_version: 3.2.22
|
368
378
|
signing_key:
|
369
379
|
specification_version: 4
|
370
|
-
summary: The Ruby binding of playwright driver 1.
|
380
|
+
summary: The Ruby binding of playwright driver 1.14.0
|
371
381
|
test_files: []
|