playwright-ruby-client 1.14.beta3 → 1.15.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -14
- data/documentation/docs/api/browser.md +4 -0
- data/documentation/docs/api/browser_context.md +5 -1
- data/documentation/docs/api/browser_type.md +2 -0
- data/documentation/docs/api/element_handle.md +30 -5
- data/documentation/docs/api/experimental/android_device.md +2 -0
- data/documentation/docs/api/frame.md +32 -6
- data/documentation/docs/api/locator.md +67 -38
- data/documentation/docs/api/mouse.md +11 -0
- data/documentation/docs/api/page.md +38 -7
- data/documentation/docs/api/request.md +34 -1
- data/documentation/docs/api/response.md +37 -2
- data/documentation/docs/api/selectors.md +29 -3
- data/documentation/docs/api/tracing.md +42 -8
- data/documentation/docs/api/worker.md +12 -11
- data/documentation/docs/article/getting_started.md +10 -1
- data/documentation/docs/article/guides/download_playwright_driver.md +9 -0
- data/documentation/docs/article/guides/inspector.md +1 -1
- data/documentation/docs/article/guides/playwright_on_alpine_linux.md +56 -3
- data/documentation/docs/article/guides/rails_integration.md +4 -2
- data/documentation/docs/article/guides/rails_integration_with_null_driver.md +86 -0
- data/documentation/docs/article/guides/recording_video.md +1 -1
- data/documentation/docs/article/guides/semi_automation.md +2 -2
- data/documentation/docs/article/guides/use_storage_state.md +78 -0
- data/documentation/docs/include/api_coverage.md +15 -0
- data/documentation/docusaurus.config.js +1 -0
- data/documentation/package.json +2 -2
- data/documentation/src/pages/index.js +0 -1
- data/documentation/static/img/playwright-ruby-client.png +0 -0
- data/documentation/yarn.lock +625 -549
- data/lib/playwright/channel.rb +36 -2
- data/lib/playwright/channel_owners/artifact.rb +6 -2
- data/lib/playwright/channel_owners/browser.rb +4 -0
- data/lib/playwright/channel_owners/browser_context.rb +21 -14
- data/lib/playwright/channel_owners/browser_type.rb +0 -1
- data/lib/playwright/channel_owners/element_handle.rb +10 -2
- data/lib/playwright/channel_owners/frame.rb +8 -0
- data/lib/playwright/channel_owners/page.rb +20 -4
- data/lib/playwright/channel_owners/playwright.rb +9 -0
- data/lib/playwright/channel_owners/request.rb +53 -17
- data/lib/playwright/channel_owners/response.rb +48 -5
- data/lib/playwright/connection.rb +8 -11
- data/lib/playwright/http_headers.rb +0 -6
- data/lib/playwright/locator_impl.rb +8 -0
- data/lib/playwright/mouse_impl.rb +9 -0
- data/lib/playwright/raw_headers.rb +61 -0
- data/lib/playwright/{route_handler_entry.rb → route_handler.rb} +30 -2
- data/lib/playwright/tracing_impl.rb +18 -7
- data/lib/playwright/transport.rb +2 -0
- data/lib/playwright/utils.rb +8 -1
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright/web_socket_transport.rb +2 -0
- data/lib/playwright.rb +46 -5
- data/lib/playwright_api/android.rb +6 -6
- data/lib/playwright_api/android_device.rb +11 -9
- data/lib/playwright_api/browser.rb +12 -8
- data/lib/playwright_api/browser_context.rb +12 -8
- data/lib/playwright_api/browser_type.rb +9 -7
- data/lib/playwright_api/cdp_session.rb +7 -7
- data/lib/playwright_api/console_message.rb +6 -6
- data/lib/playwright_api/dialog.rb +6 -6
- data/lib/playwright_api/element_handle.rb +31 -8
- data/lib/playwright_api/frame.rb +35 -12
- data/lib/playwright_api/js_handle.rb +6 -6
- data/lib/playwright_api/locator.rb +39 -0
- data/lib/playwright_api/mouse.rb +8 -0
- data/lib/playwright_api/page.rb +43 -15
- data/lib/playwright_api/playwright.rb +6 -6
- data/lib/playwright_api/request.rb +33 -7
- data/lib/playwright_api/response.rb +31 -8
- data/lib/playwright_api/route.rb +6 -6
- data/lib/playwright_api/selectors.rb +38 -7
- data/lib/playwright_api/tracing.rb +33 -4
- data/lib/playwright_api/web_socket.rb +6 -6
- data/lib/playwright_api/worker.rb +8 -8
- metadata +8 -4
@@ -29,20 +29,20 @@ module Playwright
|
|
29
29
|
|
30
30
|
# -- inherited from EventEmitter --
|
31
31
|
# @nodoc
|
32
|
-
def
|
33
|
-
event_emitter_proxy.
|
32
|
+
def off(event, callback)
|
33
|
+
event_emitter_proxy.off(event, callback)
|
34
34
|
end
|
35
35
|
|
36
36
|
# -- inherited from EventEmitter --
|
37
37
|
# @nodoc
|
38
|
-
def
|
39
|
-
event_emitter_proxy.
|
38
|
+
def once(event, callback)
|
39
|
+
event_emitter_proxy.once(event, callback)
|
40
40
|
end
|
41
41
|
|
42
42
|
# -- inherited from EventEmitter --
|
43
43
|
# @nodoc
|
44
|
-
def
|
45
|
-
event_emitter_proxy.
|
44
|
+
def on(event, callback)
|
45
|
+
event_emitter_proxy.on(event, callback)
|
46
46
|
end
|
47
47
|
|
48
48
|
private def event_emitter_proxy
|
@@ -43,14 +43,20 @@ module Playwright
|
|
43
43
|
wrap_impl(@impl.url)
|
44
44
|
end
|
45
45
|
|
46
|
+
# @nodoc
|
47
|
+
def page=(req)
|
48
|
+
wrap_impl(@impl.page=(unwrap_impl(req)))
|
49
|
+
end
|
50
|
+
|
46
51
|
# @nodoc
|
47
52
|
def context=(req)
|
48
53
|
wrap_impl(@impl.context=(unwrap_impl(req)))
|
49
54
|
end
|
50
55
|
|
56
|
+
# -- inherited from EventEmitter --
|
51
57
|
# @nodoc
|
52
|
-
def
|
53
|
-
|
58
|
+
def off(event, callback)
|
59
|
+
event_emitter_proxy.off(event, callback)
|
54
60
|
end
|
55
61
|
|
56
62
|
# -- inherited from EventEmitter --
|
@@ -65,12 +71,6 @@ module Playwright
|
|
65
71
|
event_emitter_proxy.on(event, callback)
|
66
72
|
end
|
67
73
|
|
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.15.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-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -248,8 +248,10 @@ files:
|
|
248
248
|
- documentation/docs/article/guides/launch_browser.md
|
249
249
|
- documentation/docs/article/guides/playwright_on_alpine_linux.md
|
250
250
|
- documentation/docs/article/guides/rails_integration.md
|
251
|
+
- documentation/docs/article/guides/rails_integration_with_null_driver.md
|
251
252
|
- documentation/docs/article/guides/recording_video.md
|
252
253
|
- documentation/docs/article/guides/semi_automation.md
|
254
|
+
- documentation/docs/article/guides/use_storage_state.md
|
253
255
|
- documentation/docs/include/api_coverage.md
|
254
256
|
- documentation/docusaurus.config.js
|
255
257
|
- documentation/package.json
|
@@ -262,6 +264,7 @@ files:
|
|
262
264
|
- documentation/src/pages/markdown-page.md
|
263
265
|
- documentation/static/.nojekyll
|
264
266
|
- documentation/static/img/playwright-logo.svg
|
267
|
+
- documentation/static/img/playwright-ruby-client.png
|
265
268
|
- documentation/static/img/undraw_dropdown_menu.svg
|
266
269
|
- documentation/static/img/undraw_web_development.svg
|
267
270
|
- documentation/static/img/undraw_windows.svg
|
@@ -312,7 +315,8 @@ files:
|
|
312
315
|
- lib/playwright/locator_impl.rb
|
313
316
|
- lib/playwright/mouse_impl.rb
|
314
317
|
- lib/playwright/playwright_api.rb
|
315
|
-
- lib/playwright/
|
318
|
+
- lib/playwright/raw_headers.rb
|
319
|
+
- lib/playwright/route_handler.rb
|
316
320
|
- lib/playwright/select_option_values.rb
|
317
321
|
- lib/playwright/timeout_settings.rb
|
318
322
|
- lib/playwright/touchscreen_impl.rb
|
@@ -378,5 +382,5 @@ requirements: []
|
|
378
382
|
rubygems_version: 3.2.22
|
379
383
|
signing_key:
|
380
384
|
specification_version: 4
|
381
|
-
summary: The Ruby binding of playwright driver 1.
|
385
|
+
summary: The Ruby binding of playwright driver 1.15.0
|
382
386
|
test_files: []
|