playwright-ruby-client 1.55.0 → 1.56.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6503261c50eaabe9ee7f02dfd5762e7e8bc26c472e3aeb2a0ba715036b97819e
4
- data.tar.gz: 3474c967a82b5eabe36b445ccf4132585847b11932c0b08d0429148172584eac
3
+ metadata.gz: 8640cc3446239876e19fb40cfca695bde42bfe4e88d2bbd6659ccde5ff6d99d4
4
+ data.tar.gz: e8b748b832438a286de6786e8a44317aae282604815d9b7803f19fe47d24b876
5
5
  SHA512:
6
- metadata.gz: a1ffd17d14ed76ce2cdda0350fddc987e2420e447d15c0c4defd315b91790886a53bcb5536829c05e10b6c9583e1aca806cd0b0262607e66316182de66ad343d
7
- data.tar.gz: 66631908582bf6017ef4fae6e0444e4219df00f0c735eb76c5fc357f19b50dabbd74230d4214d3b09c9d1f8dced7f9a2ab4c1e28275fd558cbbe9c280175ff32
6
+ metadata.gz: 39c49ab82a8bb4fe056dbbba337aa266a9b1b25ec8227fbffa8b2c7e4c19ef4f63148928d42bf3252784617efc99ea7571f32a98d6a77752079e97465a402e37
7
+ data.tar.gz: 20d89735083a1dc2e533cffdfc41da1fe366c9ff1d309138d2894dbca1d506252f579aff1f475caea8565e8229970e3601b4d7a52e5a97de9f7593b1f8f9c744
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,5 @@
1
+ # Contributing
2
+
3
+ Thanks for your interest in contributing to `playwright-ruby-client`!
4
+
5
+ For development setup instructions and guidelines, please see [development/README.md](development/README.md).
data/README.md CHANGED
@@ -187,6 +187,10 @@ When `Playwright.connect_to_playwright_server` is used, playwright_cli_executabl
187
187
 
188
188
  For more detailed instraction, refer this article: https://playwright-ruby-client.vercel.app/docs/article/guides/playwright_on_alpine_linux
189
189
 
190
+ ## Contributing
191
+
192
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and contributing guidelines.
193
+
190
194
  ## License
191
195
 
192
196
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -73,10 +73,14 @@ browser_context.add_init_script(path: "preload.js")
73
73
  def background_pages
74
74
  ```
75
75
 
76
+ :::warning
76
77
 
77
- **NOTE**: Background pages are only supported on Chromium-based browsers.
78
+ Background pages have been removed from Chromium together with Manifest V2 extensions.
78
79
 
79
- All existing background pages in the context.
80
+ :::
81
+
82
+
83
+ Returns an empty list.
80
84
 
81
85
  ## browser
82
86
 
@@ -994,6 +994,24 @@ def visible?(selector, strict: nil, timeout: nil)
994
994
 
995
995
  Returns whether the element is [visible](https://playwright.dev/python/docs/actionability#visible). `selector` that does not match any elements is considered not visible.
996
996
 
997
+ ## console_messages
998
+
999
+ ```
1000
+ def console_messages
1001
+ ```
1002
+
1003
+
1004
+ Returns up to (currently) 200 last console messages from this page. See [`event: Page.console`] for more details.
1005
+
1006
+ ## page_errors
1007
+
1008
+ ```
1009
+ def page_errors
1010
+ ```
1011
+
1012
+
1013
+ Returns up to (currently) 200 last page errors from this page. See [`event: Page.pageError`] for more details.
1014
+
997
1015
  ## locator
998
1016
 
999
1017
  ```
@@ -1179,6 +1197,19 @@ def query_selector_all(selector)
1179
1197
  The method finds all elements matching the specified selector within the page. If no elements match the selector, the
1180
1198
  return value resolves to `[]`.
1181
1199
 
1200
+ ## requests
1201
+
1202
+ ```
1203
+ def requests
1204
+ ```
1205
+
1206
+
1207
+ Returns up to (currently) 100 last network request from this page. See [`event: Page.request`] for more details.
1208
+
1209
+ Returned requests should be accessed immediately, otherwise they might be collected to prevent unbounded memory growth as new requests come in. Once collected, retrieving most information about the request is impossible.
1210
+
1211
+ Note that requests reported through the [`event: Page.request`] request are not collected, so there is a trade off between efficient memory usage with [Page#requests](./page#requests) and the amount of available information reported through [`event: Page.request`].
1212
+
1182
1213
  ## reload
1183
1214
 
1184
1215
  ```
@@ -301,6 +301,8 @@
301
301
  * enabled?
302
302
  * hidden?
303
303
  * visible?
304
+ * console_messages
305
+ * page_errors
304
306
  * locator
305
307
  * main_frame
306
308
  * opener
@@ -309,6 +311,7 @@
309
311
  * press
310
312
  * query_selector
311
313
  * query_selector_all
314
+ * requests
312
315
  * ~~add_locator_handler~~
313
316
  * ~~remove_locator_handler~~
314
317
  * reload
@@ -14,9 +14,9 @@
14
14
  "write-heading-ids": "docusaurus write-heading-ids"
15
15
  },
16
16
  "dependencies": {
17
- "@docusaurus/core": "^3.1.1",
18
- "@docusaurus/preset-classic": "^3.1.1",
19
- "@mdx-js/react": "^3.0.0",
17
+ "@docusaurus/core": "^3.8.1",
18
+ "@docusaurus/preset-classic": "^3.8.1",
19
+ "@mdx-js/react": "^3.1.1",
20
20
  "@svgr/webpack": "^8.1.0",
21
21
  "clsx": "^2.0.0",
22
22
  "file-loader": "^6.2.0",