playwright-ruby-client 0.8.1 → 1.14.beta3
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 +51 -1
- data/documentation/docs/api/browser_context.md +28 -0
- data/documentation/docs/api/download.md +97 -0
- data/documentation/docs/api/element_handle.md +28 -3
- data/documentation/docs/api/experimental/android.md +15 -2
- data/documentation/docs/api/frame.md +116 -114
- data/documentation/docs/api/locator.md +650 -0
- data/documentation/docs/api/mouse.md +3 -4
- data/documentation/docs/api/page.md +109 -19
- data/documentation/docs/api/request.md +15 -19
- data/documentation/docs/api/touchscreen.md +8 -0
- data/documentation/docs/api/tracing.md +13 -12
- 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 +1 -1
- data/documentation/docs/article/guides/semi_automation.md +1 -1
- data/documentation/docs/include/api_coverage.md +70 -14
- data/lib/playwright.rb +0 -1
- data/lib/playwright/accessibility_impl.rb +50 -0
- data/lib/playwright/channel_owners/browser_context.rb +70 -0
- data/lib/playwright/channel_owners/frame.rb +79 -33
- data/lib/playwright/channel_owners/page.rb +133 -42
- data/lib/playwright/channel_owners/request.rb +8 -8
- data/lib/playwright/channel_owners/worker.rb +23 -0
- data/lib/playwright/{download.rb → download_impl.rb} +1 -1
- data/lib/playwright/javascript/expression.rb +5 -4
- data/lib/playwright/locator_impl.rb +314 -0
- 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/version.rb +2 -2
- data/lib/playwright_api/accessibility.rb +1 -1
- data/lib/playwright_api/android.rb +21 -8
- data/lib/playwright_api/android_device.rb +6 -6
- data/lib/playwright_api/browser.rb +6 -6
- data/lib/playwright_api/browser_context.rb +16 -11
- data/lib/playwright_api/browser_type.rb +6 -6
- 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 +85 -53
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +509 -0
- data/lib/playwright_api/page.rb +91 -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 -6
- 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 +13 -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.beta3
|
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-12 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,6 +244,7 @@ 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
|
246
249
|
- documentation/docs/article/guides/playwright_on_alpine_linux.md
|
247
250
|
- documentation/docs/article/guides/rails_integration.md
|
@@ -264,6 +267,7 @@ files:
|
|
264
267
|
- documentation/static/img/undraw_windows.svg
|
265
268
|
- documentation/yarn.lock
|
266
269
|
- lib/playwright.rb
|
270
|
+
- lib/playwright/accessibility_impl.rb
|
267
271
|
- lib/playwright/android_input_impl.rb
|
268
272
|
- lib/playwright/api_implementation.rb
|
269
273
|
- lib/playwright/channel.rb
|
@@ -292,7 +296,7 @@ files:
|
|
292
296
|
- lib/playwright/channel_owners/web_socket.rb
|
293
297
|
- lib/playwright/channel_owners/worker.rb
|
294
298
|
- lib/playwright/connection.rb
|
295
|
-
- lib/playwright/
|
299
|
+
- lib/playwright/download_impl.rb
|
296
300
|
- lib/playwright/errors.rb
|
297
301
|
- lib/playwright/event_emitter.rb
|
298
302
|
- lib/playwright/event_emitter_proxy.rb
|
@@ -305,6 +309,7 @@ files:
|
|
305
309
|
- lib/playwright/javascript/value_parser.rb
|
306
310
|
- lib/playwright/javascript/value_serializer.rb
|
307
311
|
- lib/playwright/keyboard_impl.rb
|
312
|
+
- lib/playwright/locator_impl.rb
|
308
313
|
- lib/playwright/mouse_impl.rb
|
309
314
|
- lib/playwright/playwright_api.rb
|
310
315
|
- lib/playwright/route_handler_entry.rb
|
@@ -332,11 +337,13 @@ files:
|
|
332
337
|
- lib/playwright_api/cdp_session.rb
|
333
338
|
- lib/playwright_api/console_message.rb
|
334
339
|
- lib/playwright_api/dialog.rb
|
340
|
+
- lib/playwright_api/download.rb
|
335
341
|
- lib/playwright_api/element_handle.rb
|
336
342
|
- lib/playwright_api/file_chooser.rb
|
337
343
|
- lib/playwright_api/frame.rb
|
338
344
|
- lib/playwright_api/js_handle.rb
|
339
345
|
- lib/playwright_api/keyboard.rb
|
346
|
+
- lib/playwright_api/locator.rb
|
340
347
|
- lib/playwright_api/mouse.rb
|
341
348
|
- lib/playwright_api/page.rb
|
342
349
|
- lib/playwright_api/playwright.rb
|
@@ -364,12 +371,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
364
371
|
version: '2.4'
|
365
372
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
366
373
|
requirements:
|
367
|
-
- - "
|
374
|
+
- - ">"
|
368
375
|
- !ruby/object:Gem::Version
|
369
|
-
version:
|
376
|
+
version: 1.3.1
|
370
377
|
requirements: []
|
371
378
|
rubygems_version: 3.2.22
|
372
379
|
signing_key:
|
373
380
|
specification_version: 4
|
374
|
-
summary: The Ruby binding of playwright driver 1.
|
381
|
+
summary: The Ruby binding of playwright driver 1.14.0
|
375
382
|
test_files: []
|