playwright-ruby-client 1.17.0 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/docs/api/api_request.md +7 -0
  3. data/documentation/docs/api/api_request_context.md +137 -0
  4. data/documentation/docs/api/api_response.md +90 -0
  5. data/documentation/docs/api/browser_context.md +4 -0
  6. data/documentation/docs/include/api_coverage.md +30 -13
  7. data/lib/playwright/api_response_impl.rb +73 -0
  8. data/lib/playwright/channel_owners/api_request_context.rb +232 -0
  9. data/lib/playwright/channel_owners/browser_context.rb +3 -1
  10. data/lib/playwright/channel_owners/page.rb +4 -0
  11. data/lib/playwright/version.rb +2 -2
  12. data/lib/playwright_api/android.rb +6 -6
  13. data/lib/playwright_api/android_device.rb +8 -8
  14. data/lib/playwright_api/api_request.rb +18 -0
  15. data/lib/playwright_api/api_request_context.rb +14 -14
  16. data/lib/playwright_api/api_response.rb +68 -0
  17. data/lib/playwright_api/browser.rb +6 -6
  18. data/lib/playwright_api/browser_context.rb +12 -12
  19. data/lib/playwright_api/browser_type.rb +6 -6
  20. data/lib/playwright_api/cdp_session.rb +6 -6
  21. data/lib/playwright_api/console_message.rb +6 -6
  22. data/lib/playwright_api/dialog.rb +6 -6
  23. data/lib/playwright_api/element_handle.rb +6 -6
  24. data/lib/playwright_api/frame.rb +6 -6
  25. data/lib/playwright_api/js_handle.rb +6 -6
  26. data/lib/playwright_api/page.rb +15 -10
  27. data/lib/playwright_api/playwright.rb +6 -6
  28. data/lib/playwright_api/request.rb +6 -6
  29. data/lib/playwright_api/response.rb +6 -6
  30. data/lib/playwright_api/route.rb +6 -6
  31. data/lib/playwright_api/selectors.rb +6 -6
  32. data/lib/playwright_api/web_socket.rb +6 -6
  33. data/lib/playwright_api/worker.rb +8 -8
  34. data/playwright.gemspec +1 -1
  35. metadata +11 -6
@@ -164,20 +164,14 @@ module Playwright
164
164
  raise NotImplementedError.new('web_views is not implemented yet.')
165
165
  end
166
166
 
167
- # @nodoc
168
- def tree
169
- wrap_impl(@impl.tree)
170
- end
171
-
172
167
  # @nodoc
173
168
  def tap_on(selector, duration: nil, timeout: nil)
174
169
  wrap_impl(@impl.tap_on(unwrap_impl(selector), duration: unwrap_impl(duration), timeout: unwrap_impl(timeout)))
175
170
  end
176
171
 
177
- # -- inherited from EventEmitter --
178
172
  # @nodoc
179
- def off(event, callback)
180
- event_emitter_proxy.off(event, callback)
173
+ def tree
174
+ wrap_impl(@impl.tree)
181
175
  end
182
176
 
183
177
  # -- inherited from EventEmitter --
@@ -192,6 +186,12 @@ module Playwright
192
186
  event_emitter_proxy.on(event, callback)
193
187
  end
194
188
 
189
+ # -- inherited from EventEmitter --
190
+ # @nodoc
191
+ def off(event, callback)
192
+ event_emitter_proxy.off(event, callback)
193
+ end
194
+
195
195
  private def event_emitter_proxy
196
196
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
197
197
  end
@@ -0,0 +1,18 @@
1
+ module Playwright
2
+ # Exposes API that can be used for the Web API testing.
3
+ class APIRequest < PlaywrightApi
4
+
5
+ # Creates new instances of `APIRequestContext`.
6
+ def new_context(
7
+ baseURL: nil,
8
+ extraHTTPHeaders: nil,
9
+ httpCredentials: nil,
10
+ ignoreHTTPSErrors: nil,
11
+ proxy: nil,
12
+ storageState: nil,
13
+ timeout: nil,
14
+ userAgent: nil)
15
+ raise NotImplementedError.new('new_context is not implemented yet.')
16
+ end
17
+ end
18
+ end
@@ -18,14 +18,14 @@ module Playwright
18
18
  multipart: nil,
19
19
  params: nil,
20
20
  timeout: nil)
21
- raise NotImplementedError.new('delete is not implemented yet.')
21
+ wrap_impl(@impl.delete(unwrap_impl(url), data: unwrap_impl(data), failOnStatusCode: unwrap_impl(failOnStatusCode), form: unwrap_impl(form), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), multipart: unwrap_impl(multipart), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
22
22
  end
23
23
 
24
24
  # All responses returned by [`method: APIRequestContext.get`] and similar methods are stored in the memory, so that you
25
25
  # can later call [`method: APIResponse.body`]. This method discards all stored responses, and makes
26
26
  # [`method: APIResponse.body`] throw "Response disposed" error.
27
27
  def dispose
28
- raise NotImplementedError.new('dispose is not implemented yet.')
28
+ wrap_impl(@impl.dispose)
29
29
  end
30
30
 
31
31
  # Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and update
@@ -41,7 +41,7 @@ module Playwright
41
41
  multipart: nil,
42
42
  params: nil,
43
43
  timeout: nil)
44
- raise NotImplementedError.new('fetch is not implemented yet.')
44
+ wrap_impl(@impl.fetch(unwrap_impl(urlOrRequest), data: unwrap_impl(data), failOnStatusCode: unwrap_impl(failOnStatusCode), form: unwrap_impl(form), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), method: unwrap_impl(method), multipart: unwrap_impl(multipart), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
45
45
  end
46
46
 
47
47
  # Sends HTTP(S) [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET) request and returns its response. The
@@ -54,7 +54,7 @@ module Playwright
54
54
  ignoreHTTPSErrors: nil,
55
55
  params: nil,
56
56
  timeout: nil)
57
- raise NotImplementedError.new('get is not implemented yet.')
57
+ wrap_impl(@impl.get(unwrap_impl(url), failOnStatusCode: unwrap_impl(failOnStatusCode), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
58
58
  end
59
59
 
60
60
  # Sends HTTP(S) [HEAD](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD) request and returns its response.
@@ -67,7 +67,7 @@ module Playwright
67
67
  ignoreHTTPSErrors: nil,
68
68
  params: nil,
69
69
  timeout: nil)
70
- raise NotImplementedError.new('head is not implemented yet.')
70
+ wrap_impl(@impl.head(unwrap_impl(url), failOnStatusCode: unwrap_impl(failOnStatusCode), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
71
71
  end
72
72
 
73
73
  # Sends HTTP(S) [PATCH](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH) request and returns its response.
@@ -83,7 +83,7 @@ module Playwright
83
83
  multipart: nil,
84
84
  params: nil,
85
85
  timeout: nil)
86
- raise NotImplementedError.new('patch is not implemented yet.')
86
+ wrap_impl(@impl.patch(unwrap_impl(url), data: unwrap_impl(data), failOnStatusCode: unwrap_impl(failOnStatusCode), form: unwrap_impl(form), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), multipart: unwrap_impl(multipart), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
87
87
  end
88
88
 
89
89
  # Sends HTTP(S) [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) request and returns its response.
@@ -99,7 +99,7 @@ module Playwright
99
99
  multipart: nil,
100
100
  params: nil,
101
101
  timeout: nil)
102
- raise NotImplementedError.new('post is not implemented yet.')
102
+ wrap_impl(@impl.post(unwrap_impl(url), data: unwrap_impl(data), failOnStatusCode: unwrap_impl(failOnStatusCode), form: unwrap_impl(form), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), multipart: unwrap_impl(multipart), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
103
103
  end
104
104
 
105
105
  # Sends HTTP(S) [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) request and returns its response. The
@@ -115,7 +115,7 @@ module Playwright
115
115
  multipart: nil,
116
116
  params: nil,
117
117
  timeout: nil)
118
- raise NotImplementedError.new('put is not implemented yet.')
118
+ wrap_impl(@impl.put(unwrap_impl(url), data: unwrap_impl(data), failOnStatusCode: unwrap_impl(failOnStatusCode), form: unwrap_impl(form), headers: unwrap_impl(headers), ignoreHTTPSErrors: unwrap_impl(ignoreHTTPSErrors), multipart: unwrap_impl(multipart), params: unwrap_impl(params), timeout: unwrap_impl(timeout)))
119
119
  end
120
120
 
121
121
  # Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to
@@ -124,12 +124,6 @@ module Playwright
124
124
  raise NotImplementedError.new('storage_state is not implemented yet.')
125
125
  end
126
126
 
127
- # -- inherited from EventEmitter --
128
- # @nodoc
129
- def off(event, callback)
130
- event_emitter_proxy.off(event, callback)
131
- end
132
-
133
127
  # -- inherited from EventEmitter --
134
128
  # @nodoc
135
129
  def once(event, callback)
@@ -142,6 +136,12 @@ module Playwright
142
136
  event_emitter_proxy.on(event, callback)
143
137
  end
144
138
 
139
+ # -- inherited from EventEmitter --
140
+ # @nodoc
141
+ def off(event, callback)
142
+ event_emitter_proxy.off(event, callback)
143
+ end
144
+
145
145
  private def event_emitter_proxy
146
146
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
147
147
  end
@@ -0,0 +1,68 @@
1
+ module Playwright
2
+ # `APIResponse` class represents responses returned by [`method: APIRequestContext.get`] and similar methods.
3
+ class APIResponse < PlaywrightApi
4
+
5
+ # Returns the buffer with response body.
6
+ def body
7
+ wrap_impl(@impl.body)
8
+ end
9
+
10
+ # Disposes the body of this response. If not called then the body will stay in memory until the context closes.
11
+ def dispose
12
+ wrap_impl(@impl.dispose)
13
+ end
14
+
15
+ # An object with all the response HTTP headers associated with this response.
16
+ def headers
17
+ wrap_impl(@impl.headers)
18
+ end
19
+
20
+ # An array with all the request HTTP headers associated with this response. Header names are not lower-cased. Headers with
21
+ # multiple entries, such as `Set-Cookie`, appear in the array multiple times.
22
+ def headers_array
23
+ wrap_impl(@impl.headers_array)
24
+ end
25
+
26
+ # Returns the JSON representation of response body.
27
+ #
28
+ # This method will throw if the response body is not parsable via `JSON.parse`.
29
+ def json
30
+ wrap_impl(@impl.json)
31
+ end
32
+
33
+ # Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
34
+ def ok
35
+ wrap_impl(@impl.ok)
36
+ end
37
+
38
+ # Contains the status code of the response (e.g., 200 for a success).
39
+ def status
40
+ wrap_impl(@impl.status)
41
+ end
42
+
43
+ # Contains the status text of the response (e.g. usually an "OK" for a success).
44
+ def status_text
45
+ wrap_impl(@impl.status_text)
46
+ end
47
+
48
+ # Returns the text representation of response body.
49
+ def text
50
+ wrap_impl(@impl.text)
51
+ end
52
+
53
+ # Contains the URL of the response.
54
+ def url
55
+ wrap_impl(@impl.url)
56
+ end
57
+
58
+ # @nodoc
59
+ def ok?
60
+ wrap_impl(@impl.ok?)
61
+ end
62
+
63
+ # @nodoc
64
+ def to_s
65
+ wrap_impl(@impl.to_s)
66
+ end
67
+ end
68
+ end
@@ -166,12 +166,6 @@ module Playwright
166
166
  wrap_impl(@impl.version)
167
167
  end
168
168
 
169
- # -- inherited from EventEmitter --
170
- # @nodoc
171
- def off(event, callback)
172
- event_emitter_proxy.off(event, callback)
173
- end
174
-
175
169
  # -- inherited from EventEmitter --
176
170
  # @nodoc
177
171
  def once(event, callback)
@@ -184,6 +178,12 @@ module Playwright
184
178
  event_emitter_proxy.on(event, callback)
185
179
  end
186
180
 
181
+ # -- inherited from EventEmitter --
182
+ # @nodoc
183
+ def off(event, callback)
184
+ event_emitter_proxy.off(event, callback)
185
+ end
186
+
187
187
  private def event_emitter_proxy
188
188
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
189
189
  end
@@ -22,7 +22,7 @@ module Playwright
22
22
 
23
23
  # API testing helper associated with this context. Requests made with this API will use context cookies.
24
24
  def request # property
25
- raise NotImplementedError.new('request is not implemented yet.')
25
+ wrap_impl(@impl.request)
26
26
  end
27
27
 
28
28
  def tracing # property
@@ -371,6 +371,11 @@ module Playwright
371
371
  raise NotImplementedError.new('wait_for_event is not implemented yet.')
372
372
  end
373
373
 
374
+ # @nodoc
375
+ def pause
376
+ wrap_impl(@impl.pause)
377
+ end
378
+
374
379
  # @nodoc
375
380
  def enable_debug_console!
376
381
  wrap_impl(@impl.enable_debug_console!)
@@ -386,22 +391,11 @@ module Playwright
386
391
  wrap_impl(@impl.owner_page=(unwrap_impl(req)))
387
392
  end
388
393
 
389
- # @nodoc
390
- def pause
391
- wrap_impl(@impl.pause)
392
- end
393
-
394
394
  # @nodoc
395
395
  def options=(req)
396
396
  wrap_impl(@impl.options=(unwrap_impl(req)))
397
397
  end
398
398
 
399
- # -- inherited from EventEmitter --
400
- # @nodoc
401
- def off(event, callback)
402
- event_emitter_proxy.off(event, callback)
403
- end
404
-
405
399
  # -- inherited from EventEmitter --
406
400
  # @nodoc
407
401
  def once(event, callback)
@@ -414,6 +408,12 @@ module Playwright
414
408
  event_emitter_proxy.on(event, callback)
415
409
  end
416
410
 
411
+ # -- inherited from EventEmitter --
412
+ # @nodoc
413
+ def off(event, callback)
414
+ event_emitter_proxy.off(event, callback)
415
+ end
416
+
417
417
  private def event_emitter_proxy
418
418
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
419
419
  end
@@ -146,12 +146,6 @@ module Playwright
146
146
  wrap_impl(@impl.name)
147
147
  end
148
148
 
149
- # -- inherited from EventEmitter --
150
- # @nodoc
151
- def off(event, callback)
152
- event_emitter_proxy.off(event, callback)
153
- end
154
-
155
149
  # -- inherited from EventEmitter --
156
150
  # @nodoc
157
151
  def once(event, callback)
@@ -164,6 +158,12 @@ module Playwright
164
158
  event_emitter_proxy.on(event, callback)
165
159
  end
166
160
 
161
+ # -- inherited from EventEmitter --
162
+ # @nodoc
163
+ def off(event, callback)
164
+ event_emitter_proxy.off(event, callback)
165
+ end
166
+
167
167
  private def event_emitter_proxy
168
168
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
169
169
  end
@@ -33,12 +33,6 @@ module Playwright
33
33
  wrap_impl(@impl.send_message(unwrap_impl(method), params: unwrap_impl(params)))
34
34
  end
35
35
 
36
- # -- inherited from EventEmitter --
37
- # @nodoc
38
- def off(event, callback)
39
- event_emitter_proxy.off(event, callback)
40
- end
41
-
42
36
  # -- inherited from EventEmitter --
43
37
  # @nodoc
44
38
  def once(event, callback)
@@ -51,6 +45,12 @@ module Playwright
51
45
  event_emitter_proxy.on(event, callback)
52
46
  end
53
47
 
48
+ # -- inherited from EventEmitter --
49
+ # @nodoc
50
+ def off(event, callback)
51
+ event_emitter_proxy.off(event, callback)
52
+ end
53
+
54
54
  private def event_emitter_proxy
55
55
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
56
56
  end
@@ -23,12 +23,6 @@ module Playwright
23
23
  wrap_impl(@impl.type)
24
24
  end
25
25
 
26
- # -- inherited from EventEmitter --
27
- # @nodoc
28
- def off(event, callback)
29
- event_emitter_proxy.off(event, callback)
30
- end
31
-
32
26
  # -- inherited from EventEmitter --
33
27
  # @nodoc
34
28
  def once(event, callback)
@@ -41,6 +35,12 @@ module Playwright
41
35
  event_emitter_proxy.on(event, callback)
42
36
  end
43
37
 
38
+ # -- inherited from EventEmitter --
39
+ # @nodoc
40
+ def off(event, callback)
41
+ event_emitter_proxy.off(event, callback)
42
+ end
43
+
44
44
  private def event_emitter_proxy
45
45
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
46
46
  end
@@ -58,12 +58,6 @@ module Playwright
58
58
  wrap_impl(@impl.accept_async(promptText: unwrap_impl(promptText)))
59
59
  end
60
60
 
61
- # -- inherited from EventEmitter --
62
- # @nodoc
63
- def off(event, callback)
64
- event_emitter_proxy.off(event, callback)
65
- end
66
-
67
61
  # -- inherited from EventEmitter --
68
62
  # @nodoc
69
63
  def once(event, callback)
@@ -76,6 +70,12 @@ module Playwright
76
70
  event_emitter_proxy.on(event, callback)
77
71
  end
78
72
 
73
+ # -- inherited from EventEmitter --
74
+ # @nodoc
75
+ def off(event, callback)
76
+ event_emitter_proxy.off(event, callback)
77
+ end
78
+
79
79
  private def event_emitter_proxy
80
80
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
81
81
  end
@@ -551,12 +551,6 @@ module Playwright
551
551
  wrap_impl(@impl.wait_for_selector(unwrap_impl(selector), state: unwrap_impl(state), strict: unwrap_impl(strict), timeout: unwrap_impl(timeout)))
552
552
  end
553
553
 
554
- # -- inherited from EventEmitter --
555
- # @nodoc
556
- def off(event, callback)
557
- event_emitter_proxy.off(event, callback)
558
- end
559
-
560
554
  # -- inherited from EventEmitter --
561
555
  # @nodoc
562
556
  def once(event, callback)
@@ -569,6 +563,12 @@ module Playwright
569
563
  event_emitter_proxy.on(event, callback)
570
564
  end
571
565
 
566
+ # -- inherited from EventEmitter --
567
+ # @nodoc
568
+ def off(event, callback)
569
+ event_emitter_proxy.off(event, callback)
570
+ end
571
+
572
572
  private def event_emitter_proxy
573
573
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
574
574
  end
@@ -788,12 +788,6 @@ module Playwright
788
788
  wrap_impl(@impl.detached=(unwrap_impl(req)))
789
789
  end
790
790
 
791
- # -- inherited from EventEmitter --
792
- # @nodoc
793
- def off(event, callback)
794
- event_emitter_proxy.off(event, callback)
795
- end
796
-
797
791
  # -- inherited from EventEmitter --
798
792
  # @nodoc
799
793
  def once(event, callback)
@@ -806,6 +800,12 @@ module Playwright
806
800
  event_emitter_proxy.on(event, callback)
807
801
  end
808
802
 
803
+ # -- inherited from EventEmitter --
804
+ # @nodoc
805
+ def off(event, callback)
806
+ event_emitter_proxy.off(event, callback)
807
+ end
808
+
809
809
  private def event_emitter_proxy
810
810
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
811
811
  end
@@ -88,12 +88,6 @@ module Playwright
88
88
  wrap_impl(@impl.to_s)
89
89
  end
90
90
 
91
- # -- inherited from EventEmitter --
92
- # @nodoc
93
- def off(event, callback)
94
- event_emitter_proxy.off(event, callback)
95
- end
96
-
97
91
  # -- inherited from EventEmitter --
98
92
  # @nodoc
99
93
  def once(event, callback)
@@ -106,6 +100,12 @@ module Playwright
106
100
  event_emitter_proxy.on(event, callback)
107
101
  end
108
102
 
103
+ # -- inherited from EventEmitter --
104
+ # @nodoc
105
+ def off(event, callback)
106
+ event_emitter_proxy.off(event, callback)
107
+ end
108
+
109
109
  private def event_emitter_proxy
110
110
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
111
111
  end
@@ -1381,6 +1381,11 @@ module Playwright
1381
1381
  wrap_impl(@impl.owned_context=(unwrap_impl(req)))
1382
1382
  end
1383
1383
 
1384
+ # @nodoc
1385
+ def request
1386
+ wrap_impl(@impl.request)
1387
+ end
1388
+
1384
1389
  # @nodoc
1385
1390
  def start_js_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
1386
1391
  wrap_impl(@impl.start_js_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
@@ -1391,25 +1396,19 @@ module Playwright
1391
1396
  wrap_impl(@impl.stop_js_coverage)
1392
1397
  end
1393
1398
 
1394
- # @nodoc
1395
- def stop_css_coverage
1396
- wrap_impl(@impl.stop_css_coverage)
1397
- end
1398
-
1399
1399
  # @nodoc
1400
1400
  def start_css_coverage(resetOnNavigation: nil, reportAnonymousScripts: nil)
1401
1401
  wrap_impl(@impl.start_css_coverage(resetOnNavigation: unwrap_impl(resetOnNavigation), reportAnonymousScripts: unwrap_impl(reportAnonymousScripts)))
1402
1402
  end
1403
1403
 
1404
1404
  # @nodoc
1405
- def guid
1406
- wrap_impl(@impl.guid)
1405
+ def stop_css_coverage
1406
+ wrap_impl(@impl.stop_css_coverage)
1407
1407
  end
1408
1408
 
1409
- # -- inherited from EventEmitter --
1410
1409
  # @nodoc
1411
- def off(event, callback)
1412
- event_emitter_proxy.off(event, callback)
1410
+ def guid
1411
+ wrap_impl(@impl.guid)
1413
1412
  end
1414
1413
 
1415
1414
  # -- inherited from EventEmitter --
@@ -1424,6 +1423,12 @@ module Playwright
1424
1423
  event_emitter_proxy.on(event, callback)
1425
1424
  end
1426
1425
 
1426
+ # -- inherited from EventEmitter --
1427
+ # @nodoc
1428
+ def off(event, callback)
1429
+ event_emitter_proxy.off(event, callback)
1430
+ end
1431
+
1427
1432
  private def event_emitter_proxy
1428
1433
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
1429
1434
  end
@@ -96,12 +96,6 @@ module Playwright
96
96
  wrap_impl(@impl.electron)
97
97
  end
98
98
 
99
- # -- inherited from EventEmitter --
100
- # @nodoc
101
- def off(event, callback)
102
- event_emitter_proxy.off(event, callback)
103
- end
104
-
105
99
  # -- inherited from EventEmitter --
106
100
  # @nodoc
107
101
  def once(event, callback)
@@ -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
@@ -56,12 +56,6 @@ module Playwright
56
56
  wrap_impl(@impl.request)
57
57
  end
58
58
 
59
- # -- inherited from EventEmitter --
60
- # @nodoc
61
- def off(event, callback)
62
- event_emitter_proxy.off(event, callback)
63
- end
64
-
65
59
  # -- inherited from EventEmitter --
66
60
  # @nodoc
67
61
  def once(event, callback)
@@ -74,6 +68,12 @@ module Playwright
74
68
  event_emitter_proxy.on(event, callback)
75
69
  end
76
70
 
71
+ # -- inherited from EventEmitter --
72
+ # @nodoc
73
+ def off(event, callback)
74
+ event_emitter_proxy.off(event, callback)
75
+ end
76
+
77
77
  private def event_emitter_proxy
78
78
  @event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
79
79
  end
@@ -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