playwright-ruby-client 0.6.1 → 0.6.6
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/browser.md +4 -1
- data/documentation/docs/api/browser_context.md +3 -4
- data/documentation/docs/api/browser_type.md +54 -1
- data/documentation/docs/api/dialog.md +15 -18
- data/documentation/docs/api/element_handle.md +28 -50
- data/documentation/docs/api/experimental/android.md +3 -2
- data/documentation/docs/api/experimental/android_device.md +1 -0
- data/documentation/docs/api/file_chooser.md +4 -5
- data/documentation/docs/api/frame.md +3 -4
- data/documentation/docs/api/js_handle.md +11 -14
- data/documentation/docs/api/page.md +163 -230
- data/documentation/docs/api/route.md +20 -21
- data/documentation/docs/api/tracing.md +8 -15
- data/documentation/docs/api/web_socket.md +1 -1
- data/documentation/docs/api/worker.md +18 -1
- data/documentation/docs/article/guides/rails_integration.md +156 -2
- data/documentation/docs/article/guides/recording_video.md +79 -0
- data/documentation/docs/include/api_coverage.md +5 -4
- data/documentation/package.json +1 -1
- data/documentation/yarn.lock +478 -498
- data/lib/playwright/channel_owners/binding_call.rb +1 -1
- data/lib/playwright/channel_owners/browser.rb +15 -27
- data/lib/playwright/channel_owners/browser_context.rb +13 -5
- data/lib/playwright/channel_owners/browser_type.rb +23 -8
- data/lib/playwright/channel_owners/page.rb +8 -7
- data/lib/playwright/channel_owners/web_socket.rb +4 -0
- data/lib/playwright/channel_owners/worker.rb +4 -0
- data/lib/playwright/playwright_api.rb +16 -1
- data/lib/playwright/tracing_impl.rb +9 -9
- data/lib/playwright/version.rb +1 -1
- data/lib/playwright_api/android.rb +9 -8
- data/lib/playwright_api/android_device.rb +8 -7
- data/lib/playwright_api/browser.rb +12 -9
- data/lib/playwright_api/browser_context.rb +13 -14
- data/lib/playwright_api/browser_type.rb +13 -11
- data/lib/playwright_api/console_message.rb +6 -6
- data/lib/playwright_api/dialog.rb +6 -6
- data/lib/playwright_api/element_handle.rb +6 -6
- data/lib/playwright_api/frame.rb +6 -6
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/page.rb +38 -24
- data/lib/playwright_api/playwright.rb +6 -6
- data/lib/playwright_api/request.rb +6 -6
- data/lib/playwright_api/response.rb +8 -8
- data/lib/playwright_api/route.rb +6 -6
- data/lib/playwright_api/selectors.rb +6 -6
- data/lib/playwright_api/tracing.rb +6 -12
- data/lib/playwright_api/web_socket.rb +22 -0
- data/lib/playwright_api/worker.rb +22 -0
- metadata +5 -2
@@ -158,14 +158,14 @@ module Playwright
|
|
158
158
|
#
|
159
159
|
# See [`method: Page.exposeFunction`] for page-only version.
|
160
160
|
#
|
161
|
-
# An example of adding
|
161
|
+
# An example of adding a `sha256` function to all pages in the context:
|
162
162
|
#
|
163
163
|
# ```python sync
|
164
164
|
# import hashlib
|
165
165
|
# from playwright.sync_api import sync_playwright
|
166
166
|
#
|
167
|
-
# def
|
168
|
-
# m = hashlib.
|
167
|
+
# def sha256(text):
|
168
|
+
# m = hashlib.sha256()
|
169
169
|
# m.update(bytes(text, "utf8"))
|
170
170
|
# return m.hexdigest()
|
171
171
|
#
|
@@ -174,13 +174,12 @@ module Playwright
|
|
174
174
|
# webkit = playwright.webkit
|
175
175
|
# browser = webkit.launch(headless=False)
|
176
176
|
# context = browser.new_context()
|
177
|
-
# context.expose_function("
|
177
|
+
# context.expose_function("sha256", sha256)
|
178
178
|
# page = context.new_page()
|
179
|
-
# page.expose_function("sha1", sha1)
|
180
179
|
# page.set_content("""
|
181
180
|
# <script>
|
182
181
|
# async function onClick() {
|
183
|
-
# document.querySelector('div').textContent = await window.
|
182
|
+
# document.querySelector('div').textContent = await window.sha256('PLAYWRIGHT');
|
184
183
|
# }
|
185
184
|
# </script>
|
186
185
|
# <button onclick="onClick()">Click me</button>
|
@@ -209,8 +208,8 @@ module Playwright
|
|
209
208
|
end
|
210
209
|
|
211
210
|
# Creates a new page in the browser context.
|
212
|
-
def new_page
|
213
|
-
wrap_impl(@impl.new_page)
|
211
|
+
def new_page(&block)
|
212
|
+
wrap_impl(@impl.new_page(&wrap_block_call(block)))
|
214
213
|
end
|
215
214
|
|
216
215
|
# Returns all open pages in the context.
|
@@ -385,20 +384,20 @@ module Playwright
|
|
385
384
|
|
386
385
|
# -- inherited from EventEmitter --
|
387
386
|
# @nodoc
|
388
|
-
def
|
389
|
-
event_emitter_proxy.
|
387
|
+
def once(event, callback)
|
388
|
+
event_emitter_proxy.once(event, callback)
|
390
389
|
end
|
391
390
|
|
392
391
|
# -- inherited from EventEmitter --
|
393
392
|
# @nodoc
|
394
|
-
def
|
395
|
-
event_emitter_proxy.
|
393
|
+
def on(event, callback)
|
394
|
+
event_emitter_proxy.on(event, callback)
|
396
395
|
end
|
397
396
|
|
398
397
|
# -- inherited from EventEmitter --
|
399
398
|
# @nodoc
|
400
|
-
def
|
401
|
-
event_emitter_proxy.
|
399
|
+
def off(event, callback)
|
400
|
+
event_emitter_proxy.off(event, callback)
|
402
401
|
end
|
403
402
|
|
404
403
|
private def event_emitter_proxy
|
@@ -83,9 +83,9 @@ module Playwright
|
|
83
83
|
proxy: nil,
|
84
84
|
slowMo: nil,
|
85
85
|
timeout: nil,
|
86
|
-
|
86
|
+
tracesDir: nil,
|
87
87
|
&block)
|
88
|
-
wrap_impl(@impl.launch(args: unwrap_impl(args), channel: unwrap_impl(channel), chromiumSandbox: unwrap_impl(chromiumSandbox), devtools: unwrap_impl(devtools), downloadsPath: unwrap_impl(downloadsPath), env: unwrap_impl(env), executablePath: unwrap_impl(executablePath), firefoxUserPrefs: unwrap_impl(firefoxUserPrefs), handleSIGHUP: unwrap_impl(handleSIGHUP), handleSIGINT: unwrap_impl(handleSIGINT), handleSIGTERM: unwrap_impl(handleSIGTERM), headless: unwrap_impl(headless), ignoreDefaultArgs: unwrap_impl(ignoreDefaultArgs), proxy: unwrap_impl(proxy), slowMo: unwrap_impl(slowMo), timeout: unwrap_impl(timeout),
|
88
|
+
wrap_impl(@impl.launch(args: unwrap_impl(args), channel: unwrap_impl(channel), chromiumSandbox: unwrap_impl(chromiumSandbox), devtools: unwrap_impl(devtools), downloadsPath: unwrap_impl(downloadsPath), env: unwrap_impl(env), executablePath: unwrap_impl(executablePath), firefoxUserPrefs: unwrap_impl(firefoxUserPrefs), handleSIGHUP: unwrap_impl(handleSIGHUP), handleSIGINT: unwrap_impl(handleSIGINT), handleSIGTERM: unwrap_impl(handleSIGTERM), headless: unwrap_impl(headless), ignoreDefaultArgs: unwrap_impl(ignoreDefaultArgs), proxy: unwrap_impl(proxy), slowMo: unwrap_impl(slowMo), timeout: unwrap_impl(timeout), tracesDir: unwrap_impl(tracesDir), &wrap_block_call(block)))
|
89
89
|
end
|
90
90
|
|
91
91
|
# Returns the persistent browser context instance.
|
@@ -126,14 +126,16 @@ module Playwright
|
|
126
126
|
record_har_path: nil,
|
127
127
|
record_video_dir: nil,
|
128
128
|
record_video_size: nil,
|
129
|
+
reducedMotion: nil,
|
129
130
|
screen: nil,
|
130
131
|
slowMo: nil,
|
131
132
|
timeout: nil,
|
132
133
|
timezoneId: nil,
|
133
|
-
|
134
|
+
tracesDir: nil,
|
134
135
|
userAgent: nil,
|
135
|
-
viewport: nil
|
136
|
-
|
136
|
+
viewport: nil,
|
137
|
+
&block)
|
138
|
+
wrap_impl(@impl.launch_persistent_context(unwrap_impl(userDataDir), acceptDownloads: unwrap_impl(acceptDownloads), args: unwrap_impl(args), bypassCSP: unwrap_impl(bypassCSP), channel: unwrap_impl(channel), chromiumSandbox: unwrap_impl(chromiumSandbox), colorScheme: unwrap_impl(colorScheme), deviceScaleFactor: unwrap_impl(deviceScaleFactor), devtools: unwrap_impl(devtools), downloadsPath: unwrap_impl(downloadsPath), env: unwrap_impl(env), executablePath: unwrap_impl(executablePath), extraHTTPHeaders: unwrap_impl(extraHTTPHeaders), geolocation: unwrap_impl(geolocation), handleSIGHUP: unwrap_impl(handleSIGHUP), handleSIGINT: unwrap_impl(handleSIGINT), handleSIGTERM: unwrap_impl(handleSIGTERM), hasTouch: unwrap_impl(hasTouch), headless: unwrap_impl(headless), httpCredentials: unwrap_impl(httpCredentials), ignoreDefaultArgs: unwrap_impl(ignoreDefaultArgs), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), isMobile: unwrap_impl(isMobile), javaScriptEnabled: unwrap_impl(javaScriptEnabled), locale: unwrap_impl(locale), noViewport: unwrap_impl(noViewport), offline: unwrap_impl(offline), permissions: unwrap_impl(permissions), proxy: unwrap_impl(proxy), record_har_omit_content: unwrap_impl(record_har_omit_content), record_har_path: unwrap_impl(record_har_path), record_video_dir: unwrap_impl(record_video_dir), record_video_size: unwrap_impl(record_video_size), reducedMotion: unwrap_impl(reducedMotion), screen: unwrap_impl(screen), slowMo: unwrap_impl(slowMo), timeout: unwrap_impl(timeout), timezoneId: unwrap_impl(timezoneId), tracesDir: unwrap_impl(tracesDir), userAgent: unwrap_impl(userAgent), viewport: unwrap_impl(viewport), &wrap_block_call(block)))
|
137
139
|
end
|
138
140
|
|
139
141
|
# Returns browser name. For example: `'chromium'`, `'webkit'` or `'firefox'`.
|
@@ -143,20 +145,20 @@ module Playwright
|
|
143
145
|
|
144
146
|
# -- inherited from EventEmitter --
|
145
147
|
# @nodoc
|
146
|
-
def
|
147
|
-
event_emitter_proxy.
|
148
|
+
def once(event, callback)
|
149
|
+
event_emitter_proxy.once(event, callback)
|
148
150
|
end
|
149
151
|
|
150
152
|
# -- inherited from EventEmitter --
|
151
153
|
# @nodoc
|
152
|
-
def
|
153
|
-
event_emitter_proxy.
|
154
|
+
def on(event, callback)
|
155
|
+
event_emitter_proxy.on(event, callback)
|
154
156
|
end
|
155
157
|
|
156
158
|
# -- inherited from EventEmitter --
|
157
159
|
# @nodoc
|
158
|
-
def
|
159
|
-
event_emitter_proxy.
|
160
|
+
def off(event, callback)
|
161
|
+
event_emitter_proxy.off(event, callback)
|
160
162
|
end
|
161
163
|
|
162
164
|
private def event_emitter_proxy
|
@@ -25,20 +25,20 @@ module Playwright
|
|
25
25
|
|
26
26
|
# -- inherited from EventEmitter --
|
27
27
|
# @nodoc
|
28
|
-
def
|
29
|
-
event_emitter_proxy.
|
28
|
+
def once(event, callback)
|
29
|
+
event_emitter_proxy.once(event, callback)
|
30
30
|
end
|
31
31
|
|
32
32
|
# -- inherited from EventEmitter --
|
33
33
|
# @nodoc
|
34
|
-
def
|
35
|
-
event_emitter_proxy.
|
34
|
+
def on(event, callback)
|
35
|
+
event_emitter_proxy.on(event, callback)
|
36
36
|
end
|
37
37
|
|
38
38
|
# -- inherited from EventEmitter --
|
39
39
|
# @nodoc
|
40
|
-
def
|
41
|
-
event_emitter_proxy.
|
40
|
+
def off(event, callback)
|
41
|
+
event_emitter_proxy.off(event, callback)
|
42
42
|
end
|
43
43
|
|
44
44
|
private def event_emitter_proxy
|
@@ -60,20 +60,20 @@ module Playwright
|
|
60
60
|
|
61
61
|
# -- inherited from EventEmitter --
|
62
62
|
# @nodoc
|
63
|
-
def
|
64
|
-
event_emitter_proxy.
|
63
|
+
def once(event, callback)
|
64
|
+
event_emitter_proxy.once(event, callback)
|
65
65
|
end
|
66
66
|
|
67
67
|
# -- inherited from EventEmitter --
|
68
68
|
# @nodoc
|
69
|
-
def
|
70
|
-
event_emitter_proxy.
|
69
|
+
def on(event, callback)
|
70
|
+
event_emitter_proxy.on(event, callback)
|
71
71
|
end
|
72
72
|
|
73
73
|
# -- inherited from EventEmitter --
|
74
74
|
# @nodoc
|
75
|
-
def
|
76
|
-
event_emitter_proxy.
|
75
|
+
def off(event, callback)
|
76
|
+
event_emitter_proxy.off(event, callback)
|
77
77
|
end
|
78
78
|
|
79
79
|
private def event_emitter_proxy
|
@@ -511,20 +511,20 @@ module Playwright
|
|
511
511
|
|
512
512
|
# -- inherited from EventEmitter --
|
513
513
|
# @nodoc
|
514
|
-
def
|
515
|
-
event_emitter_proxy.
|
514
|
+
def once(event, callback)
|
515
|
+
event_emitter_proxy.once(event, callback)
|
516
516
|
end
|
517
517
|
|
518
518
|
# -- inherited from EventEmitter --
|
519
519
|
# @nodoc
|
520
|
-
def
|
521
|
-
event_emitter_proxy.
|
520
|
+
def on(event, callback)
|
521
|
+
event_emitter_proxy.on(event, callback)
|
522
522
|
end
|
523
523
|
|
524
524
|
# -- inherited from EventEmitter --
|
525
525
|
# @nodoc
|
526
|
-
def
|
527
|
-
event_emitter_proxy.
|
526
|
+
def off(event, callback)
|
527
|
+
event_emitter_proxy.off(event, callback)
|
528
528
|
end
|
529
529
|
|
530
530
|
private def event_emitter_proxy
|
data/lib/playwright_api/frame.rb
CHANGED
@@ -689,20 +689,20 @@ module Playwright
|
|
689
689
|
|
690
690
|
# -- inherited from EventEmitter --
|
691
691
|
# @nodoc
|
692
|
-
def
|
693
|
-
event_emitter_proxy.
|
692
|
+
def once(event, callback)
|
693
|
+
event_emitter_proxy.once(event, callback)
|
694
694
|
end
|
695
695
|
|
696
696
|
# -- inherited from EventEmitter --
|
697
697
|
# @nodoc
|
698
|
-
def
|
699
|
-
event_emitter_proxy.
|
698
|
+
def on(event, callback)
|
699
|
+
event_emitter_proxy.on(event, callback)
|
700
700
|
end
|
701
701
|
|
702
702
|
# -- inherited from EventEmitter --
|
703
703
|
# @nodoc
|
704
|
-
def
|
705
|
-
event_emitter_proxy.
|
704
|
+
def off(event, callback)
|
705
|
+
event_emitter_proxy.off(event, callback)
|
706
706
|
end
|
707
707
|
|
708
708
|
private def event_emitter_proxy
|
@@ -90,20 +90,20 @@ module Playwright
|
|
90
90
|
|
91
91
|
# -- inherited from EventEmitter --
|
92
92
|
# @nodoc
|
93
|
-
def
|
94
|
-
event_emitter_proxy.
|
93
|
+
def once(event, callback)
|
94
|
+
event_emitter_proxy.once(event, callback)
|
95
95
|
end
|
96
96
|
|
97
97
|
# -- inherited from EventEmitter --
|
98
98
|
# @nodoc
|
99
|
-
def
|
100
|
-
event_emitter_proxy.
|
99
|
+
def on(event, callback)
|
100
|
+
event_emitter_proxy.on(event, callback)
|
101
101
|
end
|
102
102
|
|
103
103
|
# -- inherited from EventEmitter --
|
104
104
|
# @nodoc
|
105
|
-
def
|
106
|
-
event_emitter_proxy.
|
105
|
+
def off(event, callback)
|
106
|
+
event_emitter_proxy.off(event, callback)
|
107
107
|
end
|
108
108
|
|
109
109
|
private def event_emitter_proxy
|
data/lib/playwright_api/page.rb
CHANGED
@@ -263,8 +263,8 @@ module Playwright
|
|
263
263
|
# # → False
|
264
264
|
# page.evaluate("matchMedia('(prefers-color-scheme: no-preference)').matches")
|
265
265
|
# ```
|
266
|
-
def emulate_media(colorScheme: nil, media: nil)
|
267
|
-
wrap_impl(@impl.emulate_media(colorScheme: unwrap_impl(colorScheme), media: unwrap_impl(media)))
|
266
|
+
def emulate_media(colorScheme: nil, media: nil, reducedMotion: nil)
|
267
|
+
wrap_impl(@impl.emulate_media(colorScheme: unwrap_impl(colorScheme), media: unwrap_impl(media), reducedMotion: unwrap_impl(reducedMotion)))
|
268
268
|
end
|
269
269
|
|
270
270
|
# The method finds an element matching the specified selector within the page and passes it as a first argument to
|
@@ -434,14 +434,14 @@ module Playwright
|
|
434
434
|
#
|
435
435
|
# > NOTE: Functions installed via [`method: Page.exposeFunction`] survive navigations.
|
436
436
|
#
|
437
|
-
# An example of adding
|
437
|
+
# An example of adding a `sha256` function to the page:
|
438
438
|
#
|
439
439
|
# ```python sync
|
440
440
|
# import hashlib
|
441
441
|
# from playwright.sync_api import sync_playwright
|
442
442
|
#
|
443
|
-
# def
|
444
|
-
# m = hashlib.
|
443
|
+
# def sha256(text):
|
444
|
+
# m = hashlib.sha256()
|
445
445
|
# m.update(bytes(text, "utf8"))
|
446
446
|
# return m.hexdigest()
|
447
447
|
#
|
@@ -450,11 +450,11 @@ module Playwright
|
|
450
450
|
# webkit = playwright.webkit
|
451
451
|
# browser = webkit.launch(headless=False)
|
452
452
|
# page = browser.new_page()
|
453
|
-
# page.expose_function("
|
453
|
+
# page.expose_function("sha256", sha256)
|
454
454
|
# page.set_content("""
|
455
455
|
# <script>
|
456
456
|
# async function onClick() {
|
457
|
-
# document.querySelector('div').textContent = await window.
|
457
|
+
# document.querySelector('div').textContent = await window.sha256('PLAYWRIGHT');
|
458
458
|
# }
|
459
459
|
# </script>
|
460
460
|
# <button onclick="onClick()">Click me</button>
|
@@ -1023,7 +1023,7 @@ module Playwright
|
|
1023
1023
|
|
1024
1024
|
# Performs action and waits for a `ConsoleMessage` to be logged by in the page. If predicate is provided, it passes
|
1025
1025
|
# `ConsoleMessage` value into the `predicate` function and waits for `predicate(message)` to return a truthy value. Will
|
1026
|
-
# throw an error if the page is closed before the console event is fired.
|
1026
|
+
# throw an error if the page is closed before the [`event: Page.console`] event is fired.
|
1027
1027
|
def expect_console_message(predicate: nil, timeout: nil, &block)
|
1028
1028
|
wrap_impl(@impl.expect_console_message(predicate: unwrap_impl(predicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
|
1029
1029
|
end
|
@@ -1151,8 +1151,15 @@ module Playwright
|
|
1151
1151
|
# page.click('img')
|
1152
1152
|
# second_request = second.value
|
1153
1153
|
# ```
|
1154
|
-
def expect_request(urlOrPredicate, timeout: nil)
|
1155
|
-
wrap_impl(@impl.expect_request(unwrap_impl(urlOrPredicate), timeout: unwrap_impl(timeout)))
|
1154
|
+
def expect_request(urlOrPredicate, timeout: nil, &block)
|
1155
|
+
wrap_impl(@impl.expect_request(unwrap_impl(urlOrPredicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
# Performs action and waits for a `Request` to finish loading. If predicate is provided, it passes `Request` value into
|
1159
|
+
# the `predicate` function and waits for `predicate(request)` to return a truthy value. Will throw an error if the page is
|
1160
|
+
# closed before the [`event: Page.requestFinished`] event is fired.
|
1161
|
+
def expect_request_finished(predicate: nil, timeout: nil)
|
1162
|
+
raise NotImplementedError.new('expect_request_finished is not implemented yet.')
|
1156
1163
|
end
|
1157
1164
|
|
1158
1165
|
# Returns the matched response. See [waiting for event](./events.md#waiting-for-event) for more details about events.
|
@@ -1169,8 +1176,8 @@ module Playwright
|
|
1169
1176
|
# response = response_info.value
|
1170
1177
|
# return response.ok
|
1171
1178
|
# ```
|
1172
|
-
def expect_response(urlOrPredicate, timeout: nil)
|
1173
|
-
wrap_impl(@impl.expect_response(unwrap_impl(urlOrPredicate), timeout: unwrap_impl(timeout)))
|
1179
|
+
def expect_response(urlOrPredicate, timeout: nil, &block)
|
1180
|
+
wrap_impl(@impl.expect_response(unwrap_impl(urlOrPredicate), timeout: unwrap_impl(timeout), &wrap_block_call(block)))
|
1174
1181
|
end
|
1175
1182
|
|
1176
1183
|
# Returns when element specified by selector satisfies `state` option. Returns `null` if waiting for `hidden` or
|
@@ -1229,6 +1236,13 @@ module Playwright
|
|
1229
1236
|
wrap_impl(@impl.wait_for_url(unwrap_impl(url), timeout: unwrap_impl(timeout), waitUntil: unwrap_impl(waitUntil)))
|
1230
1237
|
end
|
1231
1238
|
|
1239
|
+
# Performs action and waits for a new `WebSocket`. If predicate is provided, it passes `WebSocket` value into the
|
1240
|
+
# `predicate` function and waits for `predicate(webSocket)` to return a truthy value. Will throw an error if the page is
|
1241
|
+
# closed before the WebSocket event is fired.
|
1242
|
+
def expect_websocket(predicate: nil, timeout: nil)
|
1243
|
+
raise NotImplementedError.new('expect_websocket is not implemented yet.')
|
1244
|
+
end
|
1245
|
+
|
1232
1246
|
# Performs action and waits for a new `Worker`. If predicate is provided, it passes `Worker` value into the `predicate`
|
1233
1247
|
# function and waits for `predicate(worker)` to return a truthy value. Will throw an error if the page is closed before
|
1234
1248
|
# the worker event is fired.
|
@@ -1259,13 +1273,13 @@ module Playwright
|
|
1259
1273
|
end
|
1260
1274
|
|
1261
1275
|
# @nodoc
|
1262
|
-
def
|
1263
|
-
wrap_impl(@impl.
|
1276
|
+
def stop_js_coverage
|
1277
|
+
wrap_impl(@impl.stop_js_coverage)
|
1264
1278
|
end
|
1265
1279
|
|
1266
1280
|
# @nodoc
|
1267
|
-
def
|
1268
|
-
wrap_impl(@impl.
|
1281
|
+
def start_css_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
|
1282
|
+
wrap_impl(@impl.start_css_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
|
1269
1283
|
end
|
1270
1284
|
|
1271
1285
|
# @nodoc
|
@@ -1274,8 +1288,8 @@ module Playwright
|
|
1274
1288
|
end
|
1275
1289
|
|
1276
1290
|
# @nodoc
|
1277
|
-
def
|
1278
|
-
wrap_impl(@impl.
|
1291
|
+
def start_js_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
|
1292
|
+
wrap_impl(@impl.start_js_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
|
1279
1293
|
end
|
1280
1294
|
|
1281
1295
|
# @nodoc
|
@@ -1285,20 +1299,20 @@ module Playwright
|
|
1285
1299
|
|
1286
1300
|
# -- inherited from EventEmitter --
|
1287
1301
|
# @nodoc
|
1288
|
-
def
|
1289
|
-
event_emitter_proxy.
|
1302
|
+
def once(event, callback)
|
1303
|
+
event_emitter_proxy.once(event, callback)
|
1290
1304
|
end
|
1291
1305
|
|
1292
1306
|
# -- inherited from EventEmitter --
|
1293
1307
|
# @nodoc
|
1294
|
-
def
|
1295
|
-
event_emitter_proxy.
|
1308
|
+
def on(event, callback)
|
1309
|
+
event_emitter_proxy.on(event, callback)
|
1296
1310
|
end
|
1297
1311
|
|
1298
1312
|
# -- inherited from EventEmitter --
|
1299
1313
|
# @nodoc
|
1300
|
-
def
|
1301
|
-
event_emitter_proxy.
|
1314
|
+
def off(event, callback)
|
1315
|
+
event_emitter_proxy.off(event, callback)
|
1302
1316
|
end
|
1303
1317
|
|
1304
1318
|
private def event_emitter_proxy
|
@@ -93,20 +93,20 @@ module Playwright
|
|
93
93
|
|
94
94
|
# -- inherited from EventEmitter --
|
95
95
|
# @nodoc
|
96
|
-
def
|
97
|
-
event_emitter_proxy.
|
96
|
+
def once(event, callback)
|
97
|
+
event_emitter_proxy.once(event, callback)
|
98
98
|
end
|
99
99
|
|
100
100
|
# -- inherited from EventEmitter --
|
101
101
|
# @nodoc
|
102
|
-
def
|
103
|
-
event_emitter_proxy.
|
102
|
+
def on(event, callback)
|
103
|
+
event_emitter_proxy.on(event, callback)
|
104
104
|
end
|
105
105
|
|
106
106
|
# -- inherited from EventEmitter --
|
107
107
|
# @nodoc
|
108
|
-
def
|
109
|
-
event_emitter_proxy.
|
108
|
+
def off(event, callback)
|
109
|
+
event_emitter_proxy.off(event, callback)
|
110
110
|
end
|
111
111
|
|
112
112
|
private def event_emitter_proxy
|
@@ -130,20 +130,20 @@ module Playwright
|
|
130
130
|
|
131
131
|
# -- inherited from EventEmitter --
|
132
132
|
# @nodoc
|
133
|
-
def
|
134
|
-
event_emitter_proxy.
|
133
|
+
def once(event, callback)
|
134
|
+
event_emitter_proxy.once(event, callback)
|
135
135
|
end
|
136
136
|
|
137
137
|
# -- inherited from EventEmitter --
|
138
138
|
# @nodoc
|
139
|
-
def
|
140
|
-
event_emitter_proxy.
|
139
|
+
def on(event, callback)
|
140
|
+
event_emitter_proxy.on(event, callback)
|
141
141
|
end
|
142
142
|
|
143
143
|
# -- inherited from EventEmitter --
|
144
144
|
# @nodoc
|
145
|
-
def
|
146
|
-
event_emitter_proxy.
|
145
|
+
def off(event, callback)
|
146
|
+
event_emitter_proxy.off(event, callback)
|
147
147
|
end
|
148
148
|
|
149
149
|
private def event_emitter_proxy
|