Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency playwright to v1.47.0 #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 17, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
playwright (changelog) 1.44.0 -> 1.47.0 age adoption passing confidence

Release Notes

Microsoft/playwright-python (playwright)

v1.47.0

Compare Source

Network Tab improvements

The Network tab in the trace viewer has several nice improvements:

  • filtering by asset type and URL
  • better display of query string parameters
  • preview of font assets

Network tab now has filters

Miscellaneous

  • The mcr.microsoft.com/playwright-python:v1.47.0 now serves a Playwright image based on Ubuntu 24.04 Noble.
    To use the 22.04 jammy-based image, please use mcr.microsoft.com/playwright-python:v1.47.0-jammy instead.
  • The :latest/:focal/:jammy tag for Playwright Docker images is no longer being published. Pin to a specific version for better stability and reproducibility.
  • TLS client certificates can now be passed from memory by passing cert and key as bytes instead of file paths.
  • no_wait_after in locator.selectOption() was deprecated.
  • We've seen reports of WebGL in Webkit misbehaving on GitHub Actions macos-13. We recommend upgrading GitHub Actions to macos-14.

Browser Versions

  • Chromium 129.0.6668.29
  • Mozilla Firefox 130.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 128
  • Microsoft Edge 128

v1.46.0

Compare Source

TLS Client Certificates

Playwright now allows to supply client-side certificates, so that server can verify them, as specified by TLS Client Authentication.

You can provide client certificates as a parameter of browser.new_context() and api_request.new_context(). The following snippet sets up a client certificate for https://example.com:

context = browser.new_context(
    client_certificates=[
        {
            "origin": "https://example.com",
            "certPath": "client-certificates/cert.pem",
            "keyPath": "client-certificates/key.pem",
        }
    ],
)

When using the Pytest plugin, it can be added like this:

@​pytest.fixture(scope="session")
def browser_context_args(browser_context_args):
    return {
        **browser_context_args,
        "client_certificates": [
            {
                "origin": "https://example.com",
                "certPath": "client-certificates/cert.pem",
                "keyPath": "client-certificates/key.pem",
            }
        ],
    }

Trace Viewer Updates

  • Content of text attachments is now rendered inline in the attachments pane.
  • New setting to show/hide routing actions like route.continue_().
  • Request method and status are shown in the network details tab.
  • New button to copy source file location to clipboard.
  • Metadata pane now displays the base_url.

Miscellaneous

Browser Versions

  • Chromium 128.0.6613.18
  • Mozilla Firefox 128.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 127
  • Microsoft Edge 127

v1.45.1

Compare Source

Highlights

https://github.com/microsoft/playwright-java/issues/1617 - [Bug]: Trace Viewer not reporting all actionshttps://github.com/microsoft/playwright/issues/317644 - [Bug]: some actions do not appear in the trace file

Browser Versions

  • Chromium 127.0.6533.5
  • Mozilla Firefox 127.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 126
  • Microsoft Edge 126

v1.45.0

Compare Source

Clock

Utilizing the new Clock API allows to manipulate and control time within tests to verify time-related behavior. This API covers many common scenarios, including:

  • testing with predefined time;
  • keeping consistent time and timers;
  • monitoring inactivity;
  • ticking through time manually.
### Initialize clock with some time before the test time and let the page load
### naturally. `Date.now` will progress as the timers fire.
page.clock.install(time=datetime.datetime(2024, 2, 2, 8, 0, 0))
page.goto("http://localhost:3333")

### Pretend that the user closed the laptop lid and opened it again at 10am.
### Pause the time once reached that point.
page.clock.pause_at(datetime.datetime(2024, 2, 2, 10, 0, 0))

### Assert the page state.
expect(page.get_by_test_id("current-time")).to_have_text("2/2/2024, 10:00:00 AM")

### Close the laptop lid again and open it at 10:30am.
page.clock.fast_forward("30:00")
expect(page.get_by_test_id("current-time")).to_have_text("2/2/2024, 10:30:00 AM")

See the clock guide for more details.

Miscellaneous

  • Method locator.setInputFiles() now supports uploading a directory for <input type=file webkitdirectory> elements.
    page.get_by_label("Upload directory").set_input_files('mydir')
  • Multiple methods like locator.click() or locator.press() now support a ControlOrMeta modifier key. This key maps to Meta on macOS and maps to Control on Windows and Linux.

Press the common keyboard shortcut Control+S or Meta+S to trigger a "Save" operation.

page.keyboard.press("ControlOrMeta+S")

- New property `httpCredentials.send` in [apiRequest.newContext()](https://playwright.dev/python/docs/api/class-apirequest#api-request-new-context) that allows to either always send the `Authorization` header or only send it in response to `401 Unauthorized`.
- Playwright now supports Chromium, Firefox and WebKit on Ubuntu 24.04.
- v1.45 is the last release to receive WebKit update for macOS 12 Monterey. Please update macOS to keep using the latest WebKit.
#### Browser Versions
* Chromium 127.0.6533.5
* Mozilla Firefox 127.0
* WebKit 17.4

This version was also tested against the following stable channels:
* Google Chrome 126
* Microsoft Edge 126

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency playwright to v1.44.0 chore(deps): update dependency playwright to v1.44.0 - autoclosed Jul 1, 2024
@renovate renovate bot closed this Jul 1, 2024
@renovate renovate bot deleted the renovate/playwright-1.x-lockfile branch July 1, 2024 17:26
@renovate renovate bot restored the renovate/playwright-1.x-lockfile branch July 3, 2024 12:43
@renovate renovate bot changed the title chore(deps): update dependency playwright to v1.44.0 - autoclosed chore(deps): update dependency playwright to v1.44.0 Jul 3, 2024
@renovate renovate bot reopened this Jul 3, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x-lockfile branch from ea2ab03 to a4d66b8 Compare July 3, 2024 12:44
@renovate renovate bot changed the title chore(deps): update dependency playwright to v1.44.0 chore(deps): update dependency playwright to v1.45.0 Jul 3, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x-lockfile branch from a4d66b8 to b967d93 Compare July 23, 2024 12:34
@renovate renovate bot changed the title chore(deps): update dependency playwright to v1.45.0 chore(deps): update dependency playwright to v1.45.1 Jul 23, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x-lockfile branch from b967d93 to 85af550 Compare August 12, 2024 13:12
@renovate renovate bot changed the title chore(deps): update dependency playwright to v1.45.1 chore(deps): update dependency playwright to v1.46.0 Aug 12, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x-lockfile branch from 85af550 to 0c38ea9 Compare September 13, 2024 08:29
@renovate renovate bot changed the title chore(deps): update dependency playwright to v1.46.0 chore(deps): update dependency playwright to v1.47.0 Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants