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 +4 -4
- data/CONTRIBUTING.md +5 -0
- data/README.md +4 -0
- data/documentation/docs/api/browser_context.md +6 -2
- data/documentation/docs/api/page.md +31 -0
- data/documentation/docs/include/api_coverage.md +3 -0
- data/documentation/package.json +3 -3
- data/documentation/yarn.lock +12372 -8623
- data/lib/playwright/channel_owners/browser_context.rb +3 -15
- data/lib/playwright/channel_owners/page.rb +20 -1
- data/lib/playwright/console_message_impl.rb +3 -2
- data/lib/playwright/locator_assertions_impl.rb +5 -2
- data/lib/playwright/page_assertions_impl.rb +5 -2
- data/lib/playwright/version.rb +2 -2
- data/lib/playwright_api/browser_context.rb +2 -2
- data/lib/playwright_api/locator.rb +1 -1
- data/lib/playwright_api/page.rb +27 -5
- data/lib/playwright_api/worker.rb +4 -4
- data/sig/playwright.rbs +3 -0
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 8640cc3446239876e19fb40cfca695bde42bfe4e88d2bbd6659ccde5ff6d99d4
         | 
| 4 | 
            +
              data.tar.gz: e8b748b832438a286de6786e8a44317aae282604815d9b7803f19fe47d24b876
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 39c49ab82a8bb4fe056dbbba337aa266a9b1b25ec8227fbffa8b2c7e4c19ef4f63148928d42bf3252784617efc99ea7571f32a98d6a77752079e97465a402e37
         | 
| 7 | 
            +
              data.tar.gz: 20d89735083a1dc2e533cffdfc41da1fe366c9ff1d309138d2894dbca1d506252f579aff1f475caea8565e8229970e3601b4d7a52e5a97de9f7593b1f8f9c744
         | 
    
        data/CONTRIBUTING.md
    ADDED
    
    
    
        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 | 
            -
             | 
| 78 | 
            +
            Background pages have been removed from Chromium together with Manifest V2 extensions.
         | 
| 78 79 |  | 
| 79 | 
            -
             | 
| 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
         | 
    
        data/documentation/package.json
    CHANGED
    
    | @@ -14,9 +14,9 @@ | |
| 14 14 | 
             
                "write-heading-ids": "docusaurus write-heading-ids"
         | 
| 15 15 | 
             
              },
         | 
| 16 16 | 
             
              "dependencies": {
         | 
| 17 | 
            -
                "@docusaurus/core": "^3. | 
| 18 | 
            -
                "@docusaurus/preset-classic": "^3. | 
| 19 | 
            -
                "@mdx-js/react": "^3. | 
| 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",
         |