playwright-ruby-client 0.8.1 → 0.9.0

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/docs/api/download.md +97 -0
  3. data/documentation/docs/api/element_handle.md +27 -2
  4. data/documentation/docs/api/frame.md +50 -17
  5. data/documentation/docs/api/locator.md +650 -0
  6. data/documentation/docs/api/page.md +68 -18
  7. data/documentation/docs/article/guides/inspector.md +31 -0
  8. data/documentation/docs/article/guides/playwright_on_alpine_linux.md +1 -1
  9. data/documentation/docs/article/guides/semi_automation.md +1 -1
  10. data/documentation/docs/include/api_coverage.md +57 -1
  11. data/lib/playwright.rb +0 -1
  12. data/lib/playwright/channel_owners/browser_context.rb +25 -0
  13. data/lib/playwright/channel_owners/frame.rb +70 -33
  14. data/lib/playwright/channel_owners/page.rb +102 -40
  15. data/lib/playwright/{download.rb → download_impl.rb} +1 -1
  16. data/lib/playwright/javascript/expression.rb +5 -4
  17. data/lib/playwright/locator_impl.rb +314 -0
  18. data/lib/playwright/timeout_settings.rb +4 -4
  19. data/lib/playwright/version.rb +2 -2
  20. data/lib/playwright_api/android.rb +6 -6
  21. data/lib/playwright_api/android_device.rb +6 -6
  22. data/lib/playwright_api/browser.rb +6 -6
  23. data/lib/playwright_api/browser_context.rb +16 -11
  24. data/lib/playwright_api/browser_type.rb +6 -6
  25. data/lib/playwright_api/cdp_session.rb +6 -6
  26. data/lib/playwright_api/console_message.rb +6 -6
  27. data/lib/playwright_api/dialog.rb +6 -6
  28. data/lib/playwright_api/download.rb +70 -0
  29. data/lib/playwright_api/element_handle.rb +33 -19
  30. data/lib/playwright_api/frame.rb +81 -51
  31. data/lib/playwright_api/js_handle.rb +6 -6
  32. data/lib/playwright_api/locator.rb +509 -0
  33. data/lib/playwright_api/page.rb +84 -52
  34. data/lib/playwright_api/playwright.rb +6 -6
  35. data/lib/playwright_api/request.rb +6 -6
  36. data/lib/playwright_api/response.rb +6 -6
  37. data/lib/playwright_api/route.rb +6 -6
  38. data/lib/playwright_api/selectors.rb +6 -6
  39. data/lib/playwright_api/web_socket.rb +6 -6
  40. data/lib/playwright_api/worker.rb +6 -6
  41. metadata +10 -4
@@ -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
@@ -43,12 +43,6 @@ module Playwright
43
43
  raise NotImplementedError.new('url is not implemented yet.')
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
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.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-08-03 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
@@ -292,7 +295,7 @@ files:
292
295
  - lib/playwright/channel_owners/web_socket.rb
293
296
  - lib/playwright/channel_owners/worker.rb
294
297
  - lib/playwright/connection.rb
295
- - lib/playwright/download.rb
298
+ - lib/playwright/download_impl.rb
296
299
  - lib/playwright/errors.rb
297
300
  - lib/playwright/event_emitter.rb
298
301
  - lib/playwright/event_emitter_proxy.rb
@@ -305,6 +308,7 @@ files:
305
308
  - lib/playwright/javascript/value_parser.rb
306
309
  - lib/playwright/javascript/value_serializer.rb
307
310
  - lib/playwright/keyboard_impl.rb
311
+ - lib/playwright/locator_impl.rb
308
312
  - lib/playwright/mouse_impl.rb
309
313
  - lib/playwright/playwright_api.rb
310
314
  - lib/playwright/route_handler_entry.rb
@@ -332,11 +336,13 @@ files:
332
336
  - lib/playwright_api/cdp_session.rb
333
337
  - lib/playwright_api/console_message.rb
334
338
  - lib/playwright_api/dialog.rb
339
+ - lib/playwright_api/download.rb
335
340
  - lib/playwright_api/element_handle.rb
336
341
  - lib/playwright_api/file_chooser.rb
337
342
  - lib/playwright_api/frame.rb
338
343
  - lib/playwright_api/js_handle.rb
339
344
  - lib/playwright_api/keyboard.rb
345
+ - lib/playwright_api/locator.rb
340
346
  - lib/playwright_api/mouse.rb
341
347
  - lib/playwright_api/page.rb
342
348
  - lib/playwright_api/playwright.rb
@@ -371,5 +377,5 @@ requirements: []
371
377
  rubygems_version: 3.2.22
372
378
  signing_key:
373
379
  specification_version: 4
374
- summary: The Ruby binding of playwright driver 1.13.0
380
+ summary: The Ruby binding of playwright driver 1.14.0
375
381
  test_files: []