playwright-ruby-client 0.8.0 → 1.14.beta2
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/accessibility.md +52 -1
- data/documentation/docs/api/browser.md +8 -2
- data/documentation/docs/api/browser_context.md +28 -0
- data/documentation/docs/api/browser_type.md +1 -0
- data/documentation/docs/api/download.md +97 -0
- data/documentation/docs/api/element_handle.md +28 -3
- data/documentation/docs/api/experimental/android_device.md +1 -0
- data/documentation/docs/api/frame.md +78 -18
- data/documentation/docs/api/keyboard.md +11 -20
- data/documentation/docs/api/locator.md +650 -0
- data/documentation/docs/api/page.md +124 -20
- data/documentation/docs/api/touchscreen.md +8 -0
- data/documentation/docs/api/worker.md +37 -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/semi_automation.md +5 -1
- data/documentation/docs/include/api_coverage.md +72 -15
- data/lib/playwright.rb +0 -1
- data/lib/playwright/accessibility_impl.rb +50 -0
- data/lib/playwright/channel_owners/artifact.rb +4 -0
- data/lib/playwright/channel_owners/browser_context.rb +77 -3
- data/lib/playwright/channel_owners/frame.rb +101 -35
- data/lib/playwright/channel_owners/page.rb +157 -56
- data/lib/playwright/channel_owners/worker.rb +23 -0
- 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/touchscreen_impl.rb +7 -0
- data/lib/playwright/tracing_impl.rb +9 -8
- data/lib/playwright/url_matcher.rb +12 -2
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright_api/accessibility.rb +1 -1
- data/lib/playwright_api/android.rb +6 -6
- data/lib/playwright_api/android_device.rb +8 -7
- data/lib/playwright_api/browser.rb +16 -10
- data/lib/playwright_api/browser_context.rb +16 -11
- data/lib/playwright_api/browser_type.rb +8 -7
- data/lib/playwright_api/cdp_session.rb +6 -6
- 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 +34 -20
- data/lib/playwright_api/frame.rb +94 -52
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +509 -0
- data/lib/playwright_api/page.rb +101 -57
- data/lib/playwright_api/playwright.rb +6 -6
- data/lib/playwright_api/request.rb +6 -6
- data/lib/playwright_api/response.rb +6 -6
- data/lib/playwright_api/route.rb +6 -11
- data/lib/playwright_api/selectors.rb +6 -6
- data/lib/playwright_api/touchscreen.rb +1 -1
- data/lib/playwright_api/web_socket.rb +6 -6
- data/lib/playwright_api/worker.rb +16 -6
- metadata +14 -6
@@ -12,12 +12,6 @@ module Playwright
|
|
12
12
|
wrap_impl(@impl.register(unwrap_impl(name), contentScript: unwrap_impl(contentScript), path: unwrap_impl(path), script: unwrap_impl(script)))
|
13
13
|
end
|
14
14
|
|
15
|
-
# -- inherited from EventEmitter --
|
16
|
-
# @nodoc
|
17
|
-
def off(event, callback)
|
18
|
-
event_emitter_proxy.off(event, callback)
|
19
|
-
end
|
20
|
-
|
21
15
|
# -- inherited from EventEmitter --
|
22
16
|
# @nodoc
|
23
17
|
def once(event, callback)
|
@@ -30,6 +24,12 @@ module Playwright
|
|
30
24
|
event_emitter_proxy.on(event, callback)
|
31
25
|
end
|
32
26
|
|
27
|
+
# -- inherited from EventEmitter --
|
28
|
+
# @nodoc
|
29
|
+
def off(event, callback)
|
30
|
+
event_emitter_proxy.off(event, callback)
|
31
|
+
end
|
32
|
+
|
33
33
|
private def event_emitter_proxy
|
34
34
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
35
35
|
end
|
@@ -5,7 +5,7 @@ module Playwright
|
|
5
5
|
|
6
6
|
# Dispatches a `touchstart` and `touchend` event with a single touch at the position (`x`,`y`).
|
7
7
|
def tap_point(x, y)
|
8
|
-
|
8
|
+
wrap_impl(@impl.tap_point(unwrap_impl(x), unwrap_impl(y)))
|
9
9
|
end
|
10
10
|
end
|
11
11
|
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
|
@@ -25,7 +25,7 @@ module Playwright
|
|
25
25
|
# [`method: Worker.evaluate`] returns `undefined`. Playwright also supports transferring some additional values that are
|
26
26
|
# not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`.
|
27
27
|
def evaluate(expression, arg: nil)
|
28
|
-
|
28
|
+
wrap_impl(@impl.evaluate(unwrap_impl(expression), arg: unwrap_impl(arg)))
|
29
29
|
end
|
30
30
|
|
31
31
|
# Returns the return value of `expression` as a `JSHandle`.
|
@@ -36,17 +36,21 @@ module Playwright
|
|
36
36
|
# If the function passed to the [`method: Worker.evaluateHandle`] returns a [Promise], then
|
37
37
|
# [`method: Worker.evaluateHandle`] would wait for the promise to resolve and return its value.
|
38
38
|
def evaluate_handle(expression, arg: nil)
|
39
|
-
|
39
|
+
wrap_impl(@impl.evaluate_handle(unwrap_impl(expression), arg: unwrap_impl(arg)))
|
40
40
|
end
|
41
41
|
|
42
42
|
def url
|
43
|
-
|
43
|
+
wrap_impl(@impl.url)
|
44
44
|
end
|
45
45
|
|
46
|
-
# -- inherited from EventEmitter --
|
47
46
|
# @nodoc
|
48
|
-
def
|
49
|
-
|
47
|
+
def context=(req)
|
48
|
+
wrap_impl(@impl.context=(unwrap_impl(req)))
|
49
|
+
end
|
50
|
+
|
51
|
+
# @nodoc
|
52
|
+
def page=(req)
|
53
|
+
wrap_impl(@impl.page=(unwrap_impl(req)))
|
50
54
|
end
|
51
55
|
|
52
56
|
# -- inherited from EventEmitter --
|
@@ -61,6 +65,12 @@ module Playwright
|
|
61
65
|
event_emitter_proxy.on(event, callback)
|
62
66
|
end
|
63
67
|
|
68
|
+
# -- inherited from EventEmitter --
|
69
|
+
# @nodoc
|
70
|
+
def off(event, callback)
|
71
|
+
event_emitter_proxy.off(event, callback)
|
72
|
+
end
|
73
|
+
|
64
74
|
private def event_emitter_proxy
|
65
75
|
@event_emitter_proxy ||= EventEmitterProxy.new(self, @impl)
|
66
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:
|
4
|
+
version: 1.14.beta2
|
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-06 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
|
@@ -263,6 +267,7 @@ files:
|
|
263
267
|
- documentation/static/img/undraw_windows.svg
|
264
268
|
- documentation/yarn.lock
|
265
269
|
- lib/playwright.rb
|
270
|
+
- lib/playwright/accessibility_impl.rb
|
266
271
|
- lib/playwright/android_input_impl.rb
|
267
272
|
- lib/playwright/api_implementation.rb
|
268
273
|
- lib/playwright/channel.rb
|
@@ -291,7 +296,7 @@ files:
|
|
291
296
|
- lib/playwright/channel_owners/web_socket.rb
|
292
297
|
- lib/playwright/channel_owners/worker.rb
|
293
298
|
- lib/playwright/connection.rb
|
294
|
-
- lib/playwright/
|
299
|
+
- lib/playwright/download_impl.rb
|
295
300
|
- lib/playwright/errors.rb
|
296
301
|
- lib/playwright/event_emitter.rb
|
297
302
|
- lib/playwright/event_emitter_proxy.rb
|
@@ -304,6 +309,7 @@ files:
|
|
304
309
|
- lib/playwright/javascript/value_parser.rb
|
305
310
|
- lib/playwright/javascript/value_serializer.rb
|
306
311
|
- lib/playwright/keyboard_impl.rb
|
312
|
+
- lib/playwright/locator_impl.rb
|
307
313
|
- lib/playwright/mouse_impl.rb
|
308
314
|
- lib/playwright/playwright_api.rb
|
309
315
|
- lib/playwright/route_handler_entry.rb
|
@@ -331,11 +337,13 @@ files:
|
|
331
337
|
- lib/playwright_api/cdp_session.rb
|
332
338
|
- lib/playwright_api/console_message.rb
|
333
339
|
- lib/playwright_api/dialog.rb
|
340
|
+
- lib/playwright_api/download.rb
|
334
341
|
- lib/playwright_api/element_handle.rb
|
335
342
|
- lib/playwright_api/file_chooser.rb
|
336
343
|
- lib/playwright_api/frame.rb
|
337
344
|
- lib/playwright_api/js_handle.rb
|
338
345
|
- lib/playwright_api/keyboard.rb
|
346
|
+
- lib/playwright_api/locator.rb
|
339
347
|
- lib/playwright_api/mouse.rb
|
340
348
|
- lib/playwright_api/page.rb
|
341
349
|
- lib/playwright_api/playwright.rb
|
@@ -363,12 +371,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
363
371
|
version: '2.4'
|
364
372
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
365
373
|
requirements:
|
366
|
-
- - "
|
374
|
+
- - ">"
|
367
375
|
- !ruby/object:Gem::Version
|
368
|
-
version:
|
376
|
+
version: 1.3.1
|
369
377
|
requirements: []
|
370
378
|
rubygems_version: 3.2.22
|
371
379
|
signing_key:
|
372
380
|
specification_version: 4
|
373
|
-
summary: The Ruby binding of playwright driver 1.
|
381
|
+
summary: The Ruby binding of playwright driver 1.14.0
|
374
382
|
test_files: []
|