playwright-ruby-client 1.40.0 → 1.42.1

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/docs/api/browser_context.md +17 -10
  3. data/documentation/docs/api/element_handle.md +3 -2
  4. data/documentation/docs/api/experimental/android.md +0 -6
  5. data/documentation/docs/api/frame.md +1 -1
  6. data/documentation/docs/api/keyboard.md +1 -1
  7. data/documentation/docs/api/locator.md +2 -1
  8. data/documentation/docs/api/locator_assertions.md +5 -5
  9. data/documentation/docs/api/page.md +21 -11
  10. data/documentation/docs/api/tracing.md +2 -2
  11. data/documentation/docs/include/api_coverage.md +3 -0
  12. data/documentation/docusaurus.config.js +6 -0
  13. data/documentation/package.json +2 -2
  14. data/documentation/yarn.lock +1732 -1815
  15. data/lib/playwright/channel_owners/browser_context.rb +6 -1
  16. data/lib/playwright/channel_owners/element_handle.rb +2 -0
  17. data/lib/playwright/channel_owners/frame.rb +8 -1
  18. data/lib/playwright/channel_owners/page.rb +13 -2
  19. data/lib/playwright/connection.rb +4 -2
  20. data/lib/playwright/har_router.rb +7 -0
  21. data/lib/playwright/javascript/source_url.rb +16 -0
  22. data/lib/playwright/javascript.rb +1 -0
  23. data/lib/playwright/locator_impl.rb +2 -0
  24. data/lib/playwright/version.rb +2 -2
  25. data/lib/playwright/waiter.rb +8 -6
  26. data/lib/playwright_api/android.rb +0 -6
  27. data/lib/playwright_api/browser_context.rb +7 -1
  28. data/lib/playwright_api/element_handle.rb +4 -3
  29. data/lib/playwright_api/frame.rb +1 -1
  30. data/lib/playwright_api/keyboard.rb +1 -1
  31. data/lib/playwright_api/locator.rb +3 -2
  32. data/lib/playwright_api/locator_assertions.rb +6 -6
  33. data/lib/playwright_api/page.rb +80 -10
  34. data/lib/playwright_api/request.rb +4 -4
  35. data/lib/playwright_api/response.rb +4 -4
  36. data/lib/playwright_api/tracing.rb +2 -2
  37. data/playwright.gemspec +3 -3
  38. data/sig/playwright.rbs +7 -5
  39. metadata +15 -14
data/sig/playwright.rbs CHANGED
@@ -118,7 +118,7 @@ module Playwright
118
118
  def press: (String key, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
119
119
  def query_selector: (String selector) -> (nil | ElementHandle)
120
120
  def query_selector_all: (String selector) -> Array[untyped]
121
- def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?timeout: Float, ?type: ("png" | "jpeg")) -> String
121
+ def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?style: String, ?timeout: Float, ?type: ("png" | "jpeg")) -> String
122
122
  def scroll_into_view_if_needed: (?timeout: Float) -> void
123
123
  def select_option: (?element: (ElementHandle | Array[untyped]), ?index: (Integer | Array[untyped]), ?value: (String | Array[untyped]), ?label: (String | Array[untyped]), ?force: bool, ?noWaitAfter: bool, ?timeout: Float) -> Array[untyped]
124
124
  def select_text: (?force: bool, ?timeout: Float) -> void
@@ -299,14 +299,14 @@ module Playwright
299
299
  def main_frame: -> Frame
300
300
  def opener: -> (nil | Page)
301
301
  def pause: -> void
302
- def pdf: (?displayHeaderFooter: bool, ?footerTemplate: String, ?format: String, ?headerTemplate: String, ?height: (String | Float), ?landscape: bool, ?margin: Hash[untyped, untyped], ?pageRanges: String, ?path: (String | File), ?preferCSSPageSize: bool, ?printBackground: bool, ?scale: Float, ?width: (String | Float)) -> String
302
+ def pdf: (?displayHeaderFooter: bool, ?footerTemplate: String, ?format: String, ?headerTemplate: String, ?height: (String | Float), ?landscape: bool, ?margin: Hash[untyped, untyped], ?outline: bool, ?pageRanges: String, ?path: (String | File), ?preferCSSPageSize: bool, ?printBackground: bool, ?scale: Float, ?tagged: bool, ?width: (String | Float)) -> String
303
303
  def press: (String selector, String key, ?delay: Float, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
304
304
  def query_selector: (String selector, ?strict: bool) -> (nil | ElementHandle)
305
305
  def query_selector_all: (String selector) -> Array[untyped]
306
306
  def reload: (?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> (nil | Response)
307
307
  def route: ((String | Regexp | function) url, function handler, ?times: Integer) -> void
308
308
  def route_from_har: ((String | File) har, ?notFound: ("abort" | "fallback"), ?update: bool, ?updateContent: ("embed" | "attach"), ?updateMode: ("full" | "minimal"), ?url: (String | Regexp)) -> void
309
- def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?clip: Hash[untyped, untyped], ?fullPage: bool, ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?timeout: Float, ?type: ("png" | "jpeg")) -> String
309
+ def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?clip: Hash[untyped, untyped], ?fullPage: bool, ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?style: String, ?timeout: Float, ?type: ("png" | "jpeg")) -> String
310
310
  def select_option: (String selector, ?element: (ElementHandle | Array[untyped]), ?index: (Integer | Array[untyped]), ?value: (String | Array[untyped]), ?label: (String | Array[untyped]), ?force: bool, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> Array[untyped]
311
311
  def set_checked: (String selector, bool checked, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
312
312
  def set_content: (String html, ?timeout: Float, ?waitUntil: ("load" | "domcontentloaded" | "networkidle" | "commit")) -> void
@@ -325,6 +325,7 @@ module Playwright
325
325
  def title: -> String
326
326
  def type: (String selector, String text, ?delay: Float, ?noWaitAfter: bool, ?strict: bool, ?timeout: Float) -> void
327
327
  def uncheck: (String selector, ?force: bool, ?noWaitAfter: bool, ?position: Hash[untyped, untyped], ?strict: bool, ?timeout: Float, ?trial: bool) -> void
328
+ def unroute_all: (?behavior: ("wait" | "ignoreErrors" | "default")) -> void
328
329
  def unroute: ((String | Regexp | function) url, ?handler: function) -> void
329
330
  def url: -> String
330
331
  def video: -> (nil | untyped)
@@ -383,6 +384,7 @@ module Playwright
383
384
  def set_offline: (bool offline) -> void
384
385
  def offline=: (bool offline) -> void
385
386
  def storage_state: (?path: (String | File)) -> Hash[untyped, untyped]
387
+ def unroute_all: (?behavior: ("wait" | "ignoreErrors" | "default")) -> void
386
388
  def unroute: ((String | Regexp | function) url, ?handler: function) -> void
387
389
  def expect_console_message: (?predicate: function, ?timeout: Float) { () -> void } -> ConsoleMessage
388
390
  def expect_event: (String event, ?predicate: function, ?timeout: Float) { () -> void } -> untyped
@@ -484,7 +486,7 @@ module Playwright
484
486
  def page: -> Page
485
487
  def press: (String key, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
486
488
  def press_sequentially: (String text, ?delay: Float, ?noWaitAfter: bool, ?timeout: Float) -> void
487
- def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?timeout: Float, ?type: ("png" | "jpeg")) -> String
489
+ def screenshot: (?animations: ("disabled" | "allow"), ?caret: ("hide" | "initial"), ?mask: Array[untyped], ?maskColor: String, ?omitBackground: bool, ?path: (String | File), ?quality: Integer, ?scale: ("css" | "device"), ?style: String, ?timeout: Float, ?type: ("png" | "jpeg")) -> String
488
490
  def scroll_into_view_if_needed: (?timeout: Float) -> void
489
491
  def select_option: (?element: (ElementHandle | Array[untyped]), ?index: (Integer | Array[untyped]), ?value: (String | Array[untyped]), ?label: (String | Array[untyped]), ?force: bool, ?noWaitAfter: bool, ?timeout: Float) -> Array[untyped]
490
492
  def select_text: (?force: bool, ?timeout: Float) -> void
@@ -550,7 +552,7 @@ module Playwright
550
552
  def not_to_be_in_viewport: (?ratio: Float, ?timeout: Float) -> void
551
553
  def not_to_be_visible: (?timeout: Float, ?visible: bool) -> void
552
554
  def not_to_contain_text: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?ignoreCase: bool, ?timeout: Float, ?useInnerText: bool) -> void
553
- def not_to_have_attribute: (String name, (String | Regexp) value, ?timeout: Float) -> void
555
+ def not_to_have_attribute: (String name, (String | Regexp) value, ?ignoreCase: bool, ?timeout: Float) -> void
554
556
  def not_to_have_class: ((String | Regexp | Array[untyped] | Array[untyped] | Array[untyped]) expected, ?timeout: Float) -> void
555
557
  def not_to_have_count: (Integer count, ?timeout: Float) -> void
556
558
  def not_to_have_css: (String name, (String | Regexp) value, ?timeout: Float) -> void
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.40.0
4
+ version: 1.42.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - YusukeIwaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -123,35 +123,35 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rake
126
+ name: rack
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - "<"
130
130
  - !ruby/object:Gem::Version
131
- version: 13.0.3
131
+ version: '3'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - "<"
137
137
  - !ruby/object:Gem::Version
138
- version: 13.0.3
138
+ version: '3'
139
139
  - !ruby/object:Gem::Dependency
140
- name: rspec
140
+ name: rake
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 3.10.0
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 3.10.0
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: rspec_junit_formatter
154
+ name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -324,6 +324,7 @@ files:
324
324
  - lib/playwright/javascript.rb
325
325
  - lib/playwright/javascript/expression.rb
326
326
  - lib/playwright/javascript/regex.rb
327
+ - lib/playwright/javascript/source_url.rb
327
328
  - lib/playwright/javascript/value_parser.rb
328
329
  - lib/playwright/javascript/value_serializer.rb
329
330
  - lib/playwright/javascript/visitor_info.rb
@@ -406,5 +407,5 @@ requirements: []
406
407
  rubygems_version: 3.3.26
407
408
  signing_key:
408
409
  specification_version: 4
409
- summary: The Ruby binding of playwright driver 1.40.1
410
+ summary: The Ruby binding of playwright driver 1.42.1
410
411
  test_files: []