playwright-ruby-client 1.20.2 → 1.21.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.
- checksums.yaml +4 -4
- data/documentation/docs/api/api_request_context.md +15 -2
- data/documentation/docs/api/browser_type.md +1 -1
- data/documentation/docs/api/console_message.md +27 -1
- data/documentation/docs/api/element_handle.md +4 -2
- data/documentation/docs/api/experimental/android.md +1 -1
- data/documentation/docs/api/frame_locator.md +1 -1
- data/documentation/docs/api/locator.md +3 -1
- data/documentation/docs/api/page.md +4 -1
- data/documentation/package.json +6 -6
- data/documentation/yarn.lock +2931 -3220
- data/lib/playwright/channel_owners/browser_context.rb +8 -0
- data/lib/playwright/channel_owners/element_handle.rb +12 -3
- data/lib/playwright/channel_owners/frame.rb +4 -5
- data/lib/playwright/channel_owners/page.rb +11 -7
- data/lib/playwright/channel_owners/writable_stream.rb +14 -0
- data/lib/playwright/input_files.rb +60 -8
- data/lib/playwright/locator_impl.rb +5 -0
- data/lib/playwright/transport.rb +12 -2
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright_api/accessibility.rb +2 -1
- data/lib/playwright_api/android.rb +8 -8
- data/lib/playwright_api/android_device.rb +6 -6
- data/lib/playwright_api/api_request.rb +3 -3
- data/lib/playwright_api/api_request_context.rb +21 -8
- data/lib/playwright_api/browser.rb +6 -6
- data/lib/playwright_api/browser_context.rb +11 -11
- data/lib/playwright_api/browser_type.rb +8 -8
- data/lib/playwright_api/cdp_session.rb +6 -6
- data/lib/playwright_api/console_message.rb +26 -7
- data/lib/playwright_api/dialog.rb +6 -6
- data/lib/playwright_api/element_handle.rb +40 -38
- data/lib/playwright_api/frame.rb +24 -24
- data/lib/playwright_api/frame_locator.rb +1 -1
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +22 -20
- data/lib/playwright_api/page.rb +31 -28
- data/lib/playwright_api/playwright.rb +9 -9
- data/lib/playwright_api/request.rb +6 -6
- data/lib/playwright_api/response.rb +6 -6
- data/lib/playwright_api/route.rb +6 -6
- data/lib/playwright_api/selectors.rb +7 -7
- data/lib/playwright_api/tracing.rb +7 -7
- data/lib/playwright_api/web_socket.rb +6 -6
- data/lib/playwright_api/worker.rb +8 -8
- metadata +4 -3
data/lib/playwright_api/page.rb
CHANGED
@@ -56,7 +56,8 @@ module Playwright
|
|
56
56
|
wrap_impl(@impl.mouse)
|
57
57
|
end
|
58
58
|
|
59
|
-
# API testing helper associated with this page.
|
59
|
+
# API testing helper associated with this page. This method returns the same instance as
|
60
|
+
# [`property: BrowserContext.request`] on the page's context. See [`property: BrowserContext.request`] for more details.
|
60
61
|
def request # property
|
61
62
|
wrap_impl(@impl.request)
|
62
63
|
end
|
@@ -111,7 +112,7 @@ module Playwright
|
|
111
112
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
112
113
|
# 1. Ensure that matched element is a checkbox or a radio input. If not, this method throws. If the element is already
|
113
114
|
# checked, this method returns immediately.
|
114
|
-
# 1. Wait for [actionability](
|
115
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
115
116
|
# element is detached during the checks, the whole action is retried.
|
116
117
|
# 1. Scroll the element into view if needed.
|
117
118
|
# 1. Use [`property: Page.mouse`] to click in the center of the element.
|
@@ -135,7 +136,7 @@ module Playwright
|
|
135
136
|
|
136
137
|
# This method clicks an element matching `selector` by performing the following steps:
|
137
138
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
138
|
-
# 1. Wait for [actionability](
|
139
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
139
140
|
# element is detached during the checks, the whole action is retried.
|
140
141
|
# 1. Scroll the element into view if needed.
|
141
142
|
# 1. Use [`property: Page.mouse`] to click in the center of the element, or the specified `position`.
|
@@ -183,7 +184,7 @@ module Playwright
|
|
183
184
|
|
184
185
|
# This method double clicks an element matching `selector` by performing the following steps:
|
185
186
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
186
|
-
# 1. Wait for [actionability](
|
187
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
187
188
|
# element is detached during the checks, the whole action is retried.
|
188
189
|
# 1. Scroll the element into view if needed.
|
189
190
|
# 1. Use [`property: Page.mouse`] to double click in the center of the element, or the specified `position`.
|
@@ -501,7 +502,7 @@ module Playwright
|
|
501
502
|
wrap_impl(@impl.expose_function(unwrap_impl(name), unwrap_impl(callback)))
|
502
503
|
end
|
503
504
|
|
504
|
-
# This method waits for an element matching `selector`, waits for [actionability](
|
505
|
+
# This method waits for an element matching `selector`, waits for [actionability](../actionability.md) checks, focuses the
|
505
506
|
# element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
|
506
507
|
# field.
|
507
508
|
#
|
@@ -608,7 +609,7 @@ module Playwright
|
|
608
609
|
|
609
610
|
# This method hovers over an element matching `selector` by performing the following steps:
|
610
611
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
611
|
-
# 1. Wait for [actionability](
|
612
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
612
613
|
# element is detached during the checks, the whole action is retried.
|
613
614
|
# 1. Scroll the element into view if needed.
|
614
615
|
# 1. Use [`property: Page.mouse`] to hover over the center of the element, or the specified `position`.
|
@@ -654,28 +655,28 @@ module Playwright
|
|
654
655
|
wrap_impl(@impl.closed?)
|
655
656
|
end
|
656
657
|
|
657
|
-
# Returns whether the element is disabled, the opposite of [enabled](
|
658
|
+
# Returns whether the element is disabled, the opposite of [enabled](../actionability.md#enabled).
|
658
659
|
def disabled?(selector, strict: nil, timeout: nil)
|
659
660
|
wrap_impl(@impl.disabled?(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
660
661
|
end
|
661
662
|
|
662
|
-
# Returns whether the element is [editable](
|
663
|
+
# Returns whether the element is [editable](../actionability.md#editable).
|
663
664
|
def editable?(selector, strict: nil, timeout: nil)
|
664
665
|
wrap_impl(@impl.editable?(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
665
666
|
end
|
666
667
|
|
667
|
-
# Returns whether the element is [enabled](
|
668
|
+
# Returns whether the element is [enabled](../actionability.md#enabled).
|
668
669
|
def enabled?(selector, strict: nil, timeout: nil)
|
669
670
|
wrap_impl(@impl.enabled?(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
670
671
|
end
|
671
672
|
|
672
|
-
# Returns whether the element is hidden, the opposite of [visible](
|
673
|
+
# Returns whether the element is hidden, the opposite of [visible](../actionability.md#visible). `selector` that does not
|
673
674
|
# match any elements is considered hidden.
|
674
675
|
def hidden?(selector, strict: nil, timeout: nil)
|
675
676
|
wrap_impl(@impl.hidden?(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
676
677
|
end
|
677
678
|
|
678
|
-
# Returns whether the element is [visible](
|
679
|
+
# Returns whether the element is [visible](../actionability.md#visible). `selector` that does not match any elements is
|
679
680
|
# considered not visible.
|
680
681
|
def visible?(selector, strict: nil, timeout: nil)
|
681
682
|
wrap_impl(@impl.visible?(unwrap_impl(selector), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
|
@@ -892,18 +893,20 @@ module Playwright
|
|
892
893
|
# Returns the buffer with the captured screenshot.
|
893
894
|
def screenshot(
|
894
895
|
animations: nil,
|
896
|
+
caret: nil,
|
895
897
|
clip: nil,
|
896
898
|
fullPage: nil,
|
897
899
|
mask: nil,
|
898
900
|
omitBackground: nil,
|
899
901
|
path: nil,
|
900
902
|
quality: nil,
|
903
|
+
scale: nil,
|
901
904
|
timeout: nil,
|
902
905
|
type: nil)
|
903
|
-
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), clip: unwrap_impl(clip), fullPage: unwrap_impl(fullPage), mask: unwrap_impl(mask), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
906
|
+
wrap_impl(@impl.screenshot(animations: unwrap_impl(animations), caret: unwrap_impl(caret), clip: unwrap_impl(clip), fullPage: unwrap_impl(fullPage), mask: unwrap_impl(mask), omitBackground: unwrap_impl(omitBackground), path: unwrap_impl(path), quality: unwrap_impl(quality), scale: unwrap_impl(scale), timeout: unwrap_impl(timeout), type: unwrap_impl(type)))
|
904
907
|
end
|
905
908
|
|
906
|
-
# This method waits for an element matching `selector`, waits for [actionability](
|
909
|
+
# This method waits for an element matching `selector`, waits for [actionability](../actionability.md) checks, waits until
|
907
910
|
# all specified options are present in the `<select>` element and selects these options.
|
908
911
|
#
|
909
912
|
# If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
|
@@ -941,7 +944,7 @@ module Playwright
|
|
941
944
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
942
945
|
# 1. Ensure that matched element is a checkbox or a radio input. If not, this method throws.
|
943
946
|
# 1. If the element already has the right checked state, this method returns immediately.
|
944
|
-
# 1. Wait for [actionability](
|
947
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
945
948
|
# element is detached during the checks, the whole action is retried.
|
946
949
|
# 1. Scroll the element into view if needed.
|
947
950
|
# 1. Use [`property: Page.mouse`] to click in the center of the element.
|
@@ -1035,7 +1038,7 @@ module Playwright
|
|
1035
1038
|
|
1036
1039
|
# This method taps an element matching `selector` by performing the following steps:
|
1037
1040
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
1038
|
-
# 1. Wait for [actionability](
|
1041
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
1039
1042
|
# element is detached during the checks, the whole action is retried.
|
1040
1043
|
# 1. Scroll the element into view if needed.
|
1041
1044
|
# 1. Use [`property: Page.touchscreen`] to tap the center of the element, or the specified `position`.
|
@@ -1094,7 +1097,7 @@ module Playwright
|
|
1094
1097
|
# 1. Find an element matching `selector`. If there is none, wait until a matching element is attached to the DOM.
|
1095
1098
|
# 1. Ensure that matched element is a checkbox or a radio input. If not, this method throws. If the element is already
|
1096
1099
|
# unchecked, this method returns immediately.
|
1097
|
-
# 1. Wait for [actionability](
|
1100
|
+
# 1. Wait for [actionability](../actionability.md) checks on the matched element, unless `force` option is set. If the
|
1098
1101
|
# element is detached during the checks, the whole action is retried.
|
1099
1102
|
# 1. Scroll the element into view if needed.
|
1100
1103
|
# 1. Use [`property: Page.mouse`] to click in the center of the element.
|
@@ -1252,7 +1255,7 @@ module Playwright
|
|
1252
1255
|
wrap_impl(@impl.expect_popup(predicate: unwrap_impl(predicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
|
1253
1256
|
end
|
1254
1257
|
|
1255
|
-
# Waits for the matching request and returns it. See [waiting for event](
|
1258
|
+
# Waits for the matching request and returns it. See [waiting for event](../events.md#waiting-for-event) for more details
|
1256
1259
|
# about events.
|
1257
1260
|
#
|
1258
1261
|
# ```python sync
|
@@ -1276,7 +1279,7 @@ module Playwright
|
|
1276
1279
|
wrap_impl(@impl.expect_request_finished(predicate: unwrap_impl(predicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
|
1277
1280
|
end
|
1278
1281
|
|
1279
|
-
# Returns the matched response. See [waiting for event](
|
1282
|
+
# Returns the matched response. See [waiting for event](../events.md#waiting-for-event) for more details about events.
|
1280
1283
|
#
|
1281
1284
|
# ```python sync
|
1282
1285
|
# with page.expect_response("https://example.com/resource") as response_info:
|
@@ -1395,13 +1398,13 @@ module Playwright
|
|
1395
1398
|
end
|
1396
1399
|
|
1397
1400
|
# @nodoc
|
1398
|
-
def
|
1399
|
-
wrap_impl(@impl.
|
1401
|
+
def stop_js_coverage
|
1402
|
+
wrap_impl(@impl.stop_js_coverage)
|
1400
1403
|
end
|
1401
1404
|
|
1402
1405
|
# @nodoc
|
1403
|
-
def
|
1404
|
-
wrap_impl(@impl.
|
1406
|
+
def start_css_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
|
1407
|
+
wrap_impl(@impl.start_css_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
|
1405
1408
|
end
|
1406
1409
|
|
1407
1410
|
# @nodoc
|
@@ -1414,12 +1417,6 @@ module Playwright
|
|
1414
1417
|
wrap_impl(@impl.guid)
|
1415
1418
|
end
|
1416
1419
|
|
1417
|
-
# -- inherited from EventEmitter --
|
1418
|
-
# @nodoc
|
1419
|
-
def off(event, callback)
|
1420
|
-
event_emitter_proxy.off(event, callback)
|
1421
|
-
end
|
1422
|
-
|
1423
1420
|
# -- inherited from EventEmitter --
|
1424
1421
|
# @nodoc
|
1425
1422
|
def once(event, callback)
|
@@ -1432,6 +1429,12 @@ module Playwright
|
|
1432
1429
|
event_emitter_proxy.on(event, callback)
|
1433
1430
|
end
|
1434
1431
|
|
1432
|
+
# -- inherited from EventEmitter --
|
1433
|
+
# @nodoc
|
1434
|
+
def off(event, callback)
|
1435
|
+
event_emitter_proxy.off(event, callback)
|
1436
|
+
end
|
1437
|
+
|
1435
1438
|
private def event_emitter_proxy
|
1436
1439
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
1437
1440
|
end
|
@@ -55,7 +55,7 @@ module Playwright
|
|
55
55
|
raise NotImplementedError.new('request is not implemented yet.')
|
56
56
|
end
|
57
57
|
|
58
|
-
# Selectors can be used to install custom selector engines. See [Working with selectors](
|
58
|
+
# Selectors can be used to install custom selector engines. See [Working with selectors](../selectors.md) for more
|
59
59
|
# information.
|
60
60
|
def selectors # property
|
61
61
|
wrap_impl(@impl.selectors)
|
@@ -86,20 +86,14 @@ module Playwright
|
|
86
86
|
raise NotImplementedError.new('stop is not implemented yet.')
|
87
87
|
end
|
88
88
|
|
89
|
-
# @nodoc
|
90
|
-
def android
|
91
|
-
wrap_impl(@impl.android)
|
92
|
-
end
|
93
|
-
|
94
89
|
# @nodoc
|
95
90
|
def electron
|
96
91
|
wrap_impl(@impl.electron)
|
97
92
|
end
|
98
93
|
|
99
|
-
# -- inherited from EventEmitter --
|
100
94
|
# @nodoc
|
101
|
-
def
|
102
|
-
|
95
|
+
def android
|
96
|
+
wrap_impl(@impl.android)
|
103
97
|
end
|
104
98
|
|
105
99
|
# -- inherited from EventEmitter --
|
@@ -114,6 +108,12 @@ module Playwright
|
|
114
108
|
event_emitter_proxy.on(event, callback)
|
115
109
|
end
|
116
110
|
|
111
|
+
# -- inherited from EventEmitter --
|
112
|
+
# @nodoc
|
113
|
+
def off(event, callback)
|
114
|
+
event_emitter_proxy.off(event, callback)
|
115
|
+
end
|
116
|
+
|
117
117
|
private def event_emitter_proxy
|
118
118
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
119
119
|
end
|
@@ -154,12 +154,6 @@ module Playwright
|
|
154
154
|
wrap_impl(@impl.header_values(unwrap_impl(name)))
|
155
155
|
end
|
156
156
|
|
157
|
-
# -- inherited from EventEmitter --
|
158
|
-
# @nodoc
|
159
|
-
def off(event, callback)
|
160
|
-
event_emitter_proxy.off(event, callback)
|
161
|
-
end
|
162
|
-
|
163
157
|
# -- inherited from EventEmitter --
|
164
158
|
# @nodoc
|
165
159
|
def once(event, callback)
|
@@ -172,6 +166,12 @@ module Playwright
|
|
172
166
|
event_emitter_proxy.on(event, callback)
|
173
167
|
end
|
174
168
|
|
169
|
+
# -- inherited from EventEmitter --
|
170
|
+
# @nodoc
|
171
|
+
def off(event, callback)
|
172
|
+
event_emitter_proxy.off(event, callback)
|
173
|
+
end
|
174
|
+
|
175
175
|
private def event_emitter_proxy
|
176
176
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
177
177
|
end
|
@@ -97,12 +97,6 @@ module Playwright
|
|
97
97
|
wrap_impl(@impl.ok?)
|
98
98
|
end
|
99
99
|
|
100
|
-
# -- inherited from EventEmitter --
|
101
|
-
# @nodoc
|
102
|
-
def off(event, callback)
|
103
|
-
event_emitter_proxy.off(event, callback)
|
104
|
-
end
|
105
|
-
|
106
100
|
# -- inherited from EventEmitter --
|
107
101
|
# @nodoc
|
108
102
|
def once(event, callback)
|
@@ -115,6 +109,12 @@ module Playwright
|
|
115
109
|
event_emitter_proxy.on(event, callback)
|
116
110
|
end
|
117
111
|
|
112
|
+
# -- inherited from EventEmitter --
|
113
|
+
# @nodoc
|
114
|
+
def off(event, callback)
|
115
|
+
event_emitter_proxy.off(event, callback)
|
116
|
+
end
|
117
|
+
|
118
118
|
private def event_emitter_proxy
|
119
119
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
120
120
|
end
|
data/lib/playwright_api/route.rb
CHANGED
@@ -57,12 +57,6 @@ module Playwright
|
|
57
57
|
wrap_impl(@impl.request)
|
58
58
|
end
|
59
59
|
|
60
|
-
# -- inherited from EventEmitter --
|
61
|
-
# @nodoc
|
62
|
-
def off(event, callback)
|
63
|
-
event_emitter_proxy.off(event, callback)
|
64
|
-
end
|
65
|
-
|
66
60
|
# -- inherited from EventEmitter --
|
67
61
|
# @nodoc
|
68
62
|
def once(event, callback)
|
@@ -75,6 +69,12 @@ module Playwright
|
|
75
69
|
event_emitter_proxy.on(event, callback)
|
76
70
|
end
|
77
71
|
|
72
|
+
# -- inherited from EventEmitter --
|
73
|
+
# @nodoc
|
74
|
+
def off(event, callback)
|
75
|
+
event_emitter_proxy.off(event, callback)
|
76
|
+
end
|
77
|
+
|
78
78
|
private def event_emitter_proxy
|
79
79
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
80
80
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Playwright
|
2
|
-
# Selectors can be used to install custom selector engines. See [Working with selectors](
|
2
|
+
# Selectors can be used to install custom selector engines. See [Working with selectors](../selectors.md) for more
|
3
3
|
# information.
|
4
4
|
class Selectors < PlaywrightApi
|
5
5
|
|
@@ -43,12 +43,6 @@ module Playwright
|
|
43
43
|
wrap_impl(@impl.register(unwrap_impl(name), contentScript: unwrap_impl(contentScript), path: unwrap_impl(path), script: unwrap_impl(script)))
|
44
44
|
end
|
45
45
|
|
46
|
-
# -- inherited from EventEmitter --
|
47
|
-
# @nodoc
|
48
|
-
def off(event, callback)
|
49
|
-
event_emitter_proxy.off(event, callback)
|
50
|
-
end
|
51
|
-
|
52
46
|
# -- inherited from EventEmitter --
|
53
47
|
# @nodoc
|
54
48
|
def once(event, callback)
|
@@ -61,6 +55,12 @@ module Playwright
|
|
61
55
|
event_emitter_proxy.on(event, callback)
|
62
56
|
end
|
63
57
|
|
58
|
+
# -- inherited from EventEmitter --
|
59
|
+
# @nodoc
|
60
|
+
def off(event, callback)
|
61
|
+
event_emitter_proxy.off(event, callback)
|
62
|
+
end
|
63
|
+
|
64
64
|
private def event_emitter_proxy
|
65
65
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
66
66
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Playwright
|
2
|
-
# API for collecting and saving Playwright traces. Playwright traces can be opened in [Trace Viewer](
|
2
|
+
# API for collecting and saving Playwright traces. Playwright traces can be opened in [Trace Viewer](../trace-viewer.md)
|
3
3
|
# after Playwright script runs.
|
4
4
|
#
|
5
5
|
# Start recording a trace before performing actions. At the end, stop tracing and save it to a file.
|
@@ -64,12 +64,6 @@ module Playwright
|
|
64
64
|
wrap_impl(@impl.stop_chunk(path: unwrap_impl(path)))
|
65
65
|
end
|
66
66
|
|
67
|
-
# -- inherited from EventEmitter --
|
68
|
-
# @nodoc
|
69
|
-
def off(event, callback)
|
70
|
-
event_emitter_proxy.off(event, callback)
|
71
|
-
end
|
72
|
-
|
73
67
|
# -- inherited from EventEmitter --
|
74
68
|
# @nodoc
|
75
69
|
def once(event, callback)
|
@@ -82,6 +76,12 @@ module Playwright
|
|
82
76
|
event_emitter_proxy.on(event, callback)
|
83
77
|
end
|
84
78
|
|
79
|
+
# -- inherited from EventEmitter --
|
80
|
+
# @nodoc
|
81
|
+
def off(event, callback)
|
82
|
+
event_emitter_proxy.off(event, callback)
|
83
|
+
end
|
84
|
+
|
85
85
|
private def event_emitter_proxy
|
86
86
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
87
87
|
end
|
@@ -27,12 +27,6 @@ module Playwright
|
|
27
27
|
wrap_impl(@impl.wait_for_event(unwrap_impl(event), predicate: unwrap_impl(predicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
|
28
28
|
end
|
29
29
|
|
30
|
-
# -- inherited from EventEmitter --
|
31
|
-
# @nodoc
|
32
|
-
def off(event, callback)
|
33
|
-
event_emitter_proxy.off(event, callback)
|
34
|
-
end
|
35
|
-
|
36
30
|
# -- inherited from EventEmitter --
|
37
31
|
# @nodoc
|
38
32
|
def once(event, callback)
|
@@ -45,6 +39,12 @@ module Playwright
|
|
45
39
|
event_emitter_proxy.on(event, callback)
|
46
40
|
end
|
47
41
|
|
42
|
+
# -- inherited from EventEmitter --
|
43
|
+
# @nodoc
|
44
|
+
def off(event, callback)
|
45
|
+
event_emitter_proxy.off(event, callback)
|
46
|
+
end
|
47
|
+
|
48
48
|
private def event_emitter_proxy
|
49
49
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
50
50
|
end
|
@@ -43,20 +43,14 @@ module Playwright
|
|
43
43
|
wrap_impl(@impl.url)
|
44
44
|
end
|
45
45
|
|
46
|
-
# @nodoc
|
47
|
-
def context=(req)
|
48
|
-
wrap_impl(@impl.context=(unwrap_impl(req)))
|
49
|
-
end
|
50
|
-
|
51
46
|
# @nodoc
|
52
47
|
def page=(req)
|
53
48
|
wrap_impl(@impl.page=(unwrap_impl(req)))
|
54
49
|
end
|
55
50
|
|
56
|
-
# -- inherited from EventEmitter --
|
57
51
|
# @nodoc
|
58
|
-
def
|
59
|
-
|
52
|
+
def context=(req)
|
53
|
+
wrap_impl(@impl.context=(unwrap_impl(req)))
|
60
54
|
end
|
61
55
|
|
62
56
|
# -- inherited from EventEmitter --
|
@@ -71,6 +65,12 @@ module Playwright
|
|
71
65
|
event_emitter_proxy.on(event, callback)
|
72
66
|
end
|
73
67
|
|
68
|
+
# -- inherited from EventEmitter --
|
69
|
+
# @nodoc
|
70
|
+
def off(event, callback)
|
71
|
+
event_emitter_proxy.off(event, callback)
|
72
|
+
end
|
73
|
+
|
74
74
|
private def event_emitter_proxy
|
75
75
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
76
76
|
end
|
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: 1.
|
4
|
+
version: 1.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -307,6 +307,7 @@ files:
|
|
307
307
|
- lib/playwright/channel_owners/tracing.rb
|
308
308
|
- lib/playwright/channel_owners/web_socket.rb
|
309
309
|
- lib/playwright/channel_owners/worker.rb
|
310
|
+
- lib/playwright/channel_owners/writable_stream.rb
|
310
311
|
- lib/playwright/connection.rb
|
311
312
|
- lib/playwright/download_impl.rb
|
312
313
|
- lib/playwright/errors.rb
|
@@ -396,5 +397,5 @@ requirements: []
|
|
396
397
|
rubygems_version: 3.3.7
|
397
398
|
signing_key:
|
398
399
|
specification_version: 4
|
399
|
-
summary: The Ruby binding of playwright driver 1.
|
400
|
+
summary: The Ruby binding of playwright driver 1.21.1
|
400
401
|
test_files: []
|