playwright-ruby-client 0.0.6 → 0.0.7
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/README.md +79 -2
- data/docs/api_coverage.md +354 -0
- data/lib/playwright.rb +2 -0
- data/lib/playwright/channel_owner.rb +3 -2
- data/lib/playwright/channel_owners/android.rb +10 -1
- data/lib/playwright/channel_owners/android_device.rb +93 -0
- data/lib/playwright/channel_owners/browser.rb +13 -13
- data/lib/playwright/channel_owners/element_handle.rb +232 -1
- data/lib/playwright/channel_owners/frame.rb +41 -3
- data/lib/playwright/channel_owners/js_handle.rb +51 -0
- data/lib/playwright/channel_owners/page.rb +48 -10
- data/lib/playwright/channel_owners/webkit_browser.rb +1 -1
- data/lib/playwright/connection.rb +9 -6
- data/lib/playwright/errors.rb +1 -1
- data/lib/playwright/input_files.rb +42 -0
- data/lib/playwright/input_types/keyboard.rb +1 -1
- data/lib/playwright/javascript/value_serializer.rb +11 -11
- data/lib/playwright/playwright_api.rb +8 -0
- data/lib/playwright/select_option_values.rb +32 -0
- data/lib/playwright/utils.rb +18 -0
- data/lib/playwright/version.rb +1 -1
- data/lib/playwright_api/android.rb +33 -0
- data/lib/playwright_api/android_device.rb +48 -0
- data/lib/playwright_api/binding_call.rb +3 -3
- data/lib/playwright_api/browser.rb +7 -6
- data/lib/playwright_api/browser_context.rb +6 -6
- data/lib/playwright_api/browser_type.rb +4 -4
- data/lib/playwright_api/chromium_browser_context.rb +3 -3
- data/lib/playwright_api/console_message.rb +3 -8
- data/lib/playwright_api/dialog.rb +2 -2
- data/lib/playwright_api/element_handle.rb +40 -39
- data/lib/playwright_api/frame.rb +23 -27
- data/lib/playwright_api/js_handle.rb +15 -9
- data/lib/playwright_api/keyboard.rb +6 -6
- data/lib/playwright_api/page.rb +35 -54
- data/lib/playwright_api/playwright.rb +7 -7
- data/lib/playwright_api/request.rb +3 -3
- data/lib/playwright_api/response.rb +3 -3
- data/lib/playwright_api/selectors.rb +3 -3
- data/playwright.gemspec +1 -0
- metadata +22 -2
@@ -166,31 +166,31 @@ module Playwright
|
|
166
166
|
end
|
167
167
|
|
168
168
|
# @nodoc
|
169
|
-
def
|
170
|
-
wrap_impl(@impl.
|
169
|
+
def android
|
170
|
+
wrap_impl(@impl.android)
|
171
171
|
end
|
172
172
|
|
173
173
|
# @nodoc
|
174
|
-
def
|
175
|
-
wrap_impl(@impl.
|
174
|
+
def electron
|
175
|
+
wrap_impl(@impl.electron)
|
176
176
|
end
|
177
177
|
|
178
178
|
# -- inherited from EventEmitter --
|
179
179
|
# @nodoc
|
180
180
|
def on(event, callback)
|
181
|
-
wrap_impl(@impl.on(event, callback))
|
181
|
+
wrap_impl(@impl.on(unwrap_impl(event), unwrap_impl(callback)))
|
182
182
|
end
|
183
183
|
|
184
184
|
# -- inherited from EventEmitter --
|
185
185
|
# @nodoc
|
186
186
|
def off(event, callback)
|
187
|
-
wrap_impl(@impl.off(event, callback))
|
187
|
+
wrap_impl(@impl.off(unwrap_impl(event), unwrap_impl(callback)))
|
188
188
|
end
|
189
189
|
|
190
190
|
# -- inherited from EventEmitter --
|
191
191
|
# @nodoc
|
192
192
|
def once(event, callback)
|
193
|
-
wrap_impl(@impl.once(event, callback))
|
193
|
+
wrap_impl(@impl.once(unwrap_impl(event), unwrap_impl(callback)))
|
194
194
|
end
|
195
195
|
end
|
196
196
|
end
|
@@ -186,19 +186,19 @@ module Playwright
|
|
186
186
|
# -- inherited from EventEmitter --
|
187
187
|
# @nodoc
|
188
188
|
def on(event, callback)
|
189
|
-
wrap_impl(@impl.on(event, callback))
|
189
|
+
wrap_impl(@impl.on(unwrap_impl(event), unwrap_impl(callback)))
|
190
190
|
end
|
191
191
|
|
192
192
|
# -- inherited from EventEmitter --
|
193
193
|
# @nodoc
|
194
194
|
def off(event, callback)
|
195
|
-
wrap_impl(@impl.off(event, callback))
|
195
|
+
wrap_impl(@impl.off(unwrap_impl(event), unwrap_impl(callback)))
|
196
196
|
end
|
197
197
|
|
198
198
|
# -- inherited from EventEmitter --
|
199
199
|
# @nodoc
|
200
200
|
def once(event, callback)
|
201
|
-
wrap_impl(@impl.once(event, callback))
|
201
|
+
wrap_impl(@impl.once(unwrap_impl(event), unwrap_impl(callback)))
|
202
202
|
end
|
203
203
|
end
|
204
204
|
end
|
@@ -62,19 +62,19 @@ module Playwright
|
|
62
62
|
# -- inherited from EventEmitter --
|
63
63
|
# @nodoc
|
64
64
|
def on(event, callback)
|
65
|
-
wrap_impl(@impl.on(event, callback))
|
65
|
+
wrap_impl(@impl.on(unwrap_impl(event), unwrap_impl(callback)))
|
66
66
|
end
|
67
67
|
|
68
68
|
# -- inherited from EventEmitter --
|
69
69
|
# @nodoc
|
70
70
|
def off(event, callback)
|
71
|
-
wrap_impl(@impl.off(event, callback))
|
71
|
+
wrap_impl(@impl.off(unwrap_impl(event), unwrap_impl(callback)))
|
72
72
|
end
|
73
73
|
|
74
74
|
# -- inherited from EventEmitter --
|
75
75
|
# @nodoc
|
76
76
|
def once(event, callback)
|
77
|
-
wrap_impl(@impl.once(event, callback))
|
77
|
+
wrap_impl(@impl.once(unwrap_impl(event), unwrap_impl(callback)))
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|
@@ -55,19 +55,19 @@ module Playwright
|
|
55
55
|
# -- inherited from EventEmitter --
|
56
56
|
# @nodoc
|
57
57
|
def on(event, callback)
|
58
|
-
wrap_impl(@impl.on(event, callback))
|
58
|
+
wrap_impl(@impl.on(unwrap_impl(event), unwrap_impl(callback)))
|
59
59
|
end
|
60
60
|
|
61
61
|
# -- inherited from EventEmitter --
|
62
62
|
# @nodoc
|
63
63
|
def off(event, callback)
|
64
|
-
wrap_impl(@impl.off(event, callback))
|
64
|
+
wrap_impl(@impl.off(unwrap_impl(event), unwrap_impl(callback)))
|
65
65
|
end
|
66
66
|
|
67
67
|
# -- inherited from EventEmitter --
|
68
68
|
# @nodoc
|
69
69
|
def once(event, callback)
|
70
|
-
wrap_impl(@impl.once(event, callback))
|
70
|
+
wrap_impl(@impl.once(unwrap_impl(event), unwrap_impl(callback)))
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
data/playwright.gemspec
CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
27
|
spec.add_dependency 'concurrent-ruby'
|
28
|
+
spec.add_dependency 'mime-types', '>= 3.0'
|
28
29
|
spec.add_development_dependency 'bundler', '~> 2.2.3'
|
29
30
|
spec.add_development_dependency 'dry-inflector'
|
30
31
|
spec.add_development_dependency 'pry-byebug'
|
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: 0.0.
|
4
|
+
version: 0.0.7
|
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-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mime-types
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,10 +179,12 @@ files:
|
|
165
179
|
- Rakefile
|
166
180
|
- bin/console
|
167
181
|
- bin/setup
|
182
|
+
- docs/api_coverage.md
|
168
183
|
- lib/playwright.rb
|
169
184
|
- lib/playwright/channel.rb
|
170
185
|
- lib/playwright/channel_owner.rb
|
171
186
|
- lib/playwright/channel_owners/android.rb
|
187
|
+
- lib/playwright/channel_owners/android_device.rb
|
172
188
|
- lib/playwright/channel_owners/binding_call.rb
|
173
189
|
- lib/playwright/channel_owners/browser.rb
|
174
190
|
- lib/playwright/channel_owners/browser_context.rb
|
@@ -191,6 +207,7 @@ files:
|
|
191
207
|
- lib/playwright/errors.rb
|
192
208
|
- lib/playwright/event_emitter.rb
|
193
209
|
- lib/playwright/events.rb
|
210
|
+
- lib/playwright/input_files.rb
|
194
211
|
- lib/playwright/input_type.rb
|
195
212
|
- lib/playwright/input_types/keyboard.rb
|
196
213
|
- lib/playwright/input_types/mouse.rb
|
@@ -201,6 +218,7 @@ files:
|
|
201
218
|
- lib/playwright/javascript/value_parser.rb
|
202
219
|
- lib/playwright/javascript/value_serializer.rb
|
203
220
|
- lib/playwright/playwright_api.rb
|
221
|
+
- lib/playwright/select_option_values.rb
|
204
222
|
- lib/playwright/timeout_settings.rb
|
205
223
|
- lib/playwright/transport.rb
|
206
224
|
- lib/playwright/url_matcher.rb
|
@@ -208,6 +226,8 @@ files:
|
|
208
226
|
- lib/playwright/version.rb
|
209
227
|
- lib/playwright/wait_helper.rb
|
210
228
|
- lib/playwright_api/accessibility.rb
|
229
|
+
- lib/playwright_api/android.rb
|
230
|
+
- lib/playwright_api/android_device.rb
|
211
231
|
- lib/playwright_api/binding_call.rb
|
212
232
|
- lib/playwright_api/browser.rb
|
213
233
|
- lib/playwright_api/browser_context.rb
|