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

⬆️ Update dependency playwright to >=1.45.1 #59

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 17, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
playwright (changelog) >=1.38.0 -> >=1.45.1 age adoption passing confidence

Release Notes

Microsoft/playwright-python (playwright)

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

v1.44.0

Compare Source

New APIs

Accessibility assertions

Locator handler

locator = page.get_by_text("This interstitial covers the button")
page.add_locator_handler(locator, lambda overlay: overlay.locator("#close").click(), times=3, no_wait_after=True)

### Run your tests that can be interrupted by the overlay.
### ...
page.remove_locator_handler(locator)

Miscellaneous options

Browser Versions

  • Chromium 125.0.6422.14
  • Mozilla Firefox 125.0.1
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 124
  • Microsoft Edge 124

v1.43.0

Compare Source

New APIs

Clear all cookies.

context.clear_cookies()

New: clear cookies with a particular name.

context.clear_cookies(name="session-id")

New: clear cookies for a particular domain.

context.clear_cookies(domain="my-origin.com")


- New method [locator.content_frame](https://playwright.dev/python/docs/api/class-locator#locator-content-frame) converts a {@&#8203;link Locator} object to a [FrameLocator](https://playwright.dev/python/docs/api/class-framelocator). This can be useful when you have a [Locator](https://playwright.dev/python/docs/api/class-locator) object obtained somewhere, and later on would like to interact with the content inside the frame.

```python
locator = page.locator("iframe[name='embedded']")

### ...
frame_locator = locator.content_frame
frame_locator.getByRole("button").click()
  • New method frameLocator.owner converts a FrameLocator object to a Locator. This can be useful when you have a FrameLocator object obtained somewhere, and later on would like to interact with the iframe element.

    frame_locator = page.frame_locator("iframe[name='embedded']")

...

locator = frame_locator.owner
expect(locator).to_be_visible()


- Conda builds are now published for macOS-arm64 and Linux-arm64.

#### Browser Versions
* Chromium 124.0.6367.8
* Mozilla Firefox 124.0
* WebKit 17.4

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

v1.42.0

Compare Source

New Locator Handler

New method page.add_locator_handler(locator, handler) registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears.

### Setup the handler.
page.add_locator_handler(
    page.get_by_role("heading", name="Hej! You are in control of your cookies."),
    lambda: page.get_by_role("button", name="Accept all").click(),
)

### Write the test as usual.
page.goto("https://www.ikea.com/")
page.get_by_role("link", name="Collection of blue and white").click()
expect(page.get_by_role("heading", name="Light and easy")).to_be_visible()

New APIs

Announcements

  • ⚠️ Ubuntu 18 is not supported anymore.

Browser Versions

  • Chromium 123.0.6312.4
  • Mozilla Firefox 123.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 122
  • Microsoft Edge 123

v1.41.2

Compare Source

Highlights

https://github.com/microsoft/playwright-python/issues/2258 - [REGRESSION] Failing step is not highlighted in red in actions panel for versions after 1.39.0https://github.com/microsoft/playwright/issues/291233 - [REGRESSION] route.continue: Protocol error (Fetch.continueRequest): Invalid InterceptionId.

Browser Versions

  • Chromium 121.0.6167.57
  • Mozilla Firefox 121.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 120
  • Microsoft Edge 120

v1.41.1

Compare Source

Highlights

https://github.com/microsoft/playwright/issues/29067 - [REGRESSION] Codegen/Recorder: not all clicks are being actioned nor recordedhttps://github.com/microsoft/playwright/issues/290199 - [REGRESSION] trace.playwright.dev does not currently support the loading from URL

Browser Versions

  • Chromium 121.0.6167.57
  • Mozilla Firefox 121.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 120
  • Microsoft Edge 120

v1.41.0

Compare Source

New APIs

Browser Versions

  • Chromium 121.0.6167.57
  • Mozilla Firefox 121.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 120
  • Microsoft Edge 120

v1.40.0

Compare Source

Test Generator Update

Playwright Test Generator

New tools to generate assertions:

Here is an example of a generated test with assertions:

from playwright.sync_api import Page, expect

def test_example(page: Page) -> None:
    page.goto("https://playwright.dev/")
    page.get_by_role("link", name="Get started").click()
    expect(page.get_by_label("Breadcrumbs").get_by_role("list")).to_contain_text("Installation")
    expect(page.get_by_label("Search")).to_be_visible()
    page.get_by_label("Search").click()
    page.get_by_placeholder("Search docs").fill("locator")
    expect(page.get_by_placeholder("Search docs")).to_have_value("locator");

New APIs

Other Changes

  • Method download.path() throws an error for failed and cancelled downloads.

Browser Versions

  • Chromium 120.0.6099.28
  • Mozilla Firefox 119.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 119
  • Microsoft Edge 119

v1.39.0

Compare Source

Features

Python 3.12 support.

Browser Versions

  • Chromium 119.0.6045.9
  • Mozilla Firefox 118.0.1
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 118
  • Microsoft Edge 118

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 ⬆️ Update dependency playwright to >=1.39.0 ⬆️ Update dependency playwright to >=1.40.0 Nov 21, 2023
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.40.0 ⬆️ Update dependency playwright to >=1.41.0 Jan 18, 2024
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.41.0 ⬆️ Update dependency playwright to >=1.41.1 Jan 25, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x branch from 67c50ac to accc590 Compare March 2, 2024 14:28
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.41.1 ⬆️ Update dependency playwright to >=1.41.2 Mar 2, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x branch from accc590 to bc45354 Compare March 6, 2024 13:14
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.41.2 ⬆️ Update dependency playwright to >=1.42.0 Mar 6, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x branch 2 times, most recently from d482335 to 28b131e Compare March 30, 2024 16:27
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.42.0 ⬆️ Update dependency playwright to >=1.43.0 Apr 9, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x branch from 28b131e to b4e58ec Compare April 9, 2024 14:26
@renovate renovate bot force-pushed the renovate/playwright-1.x branch from b4e58ec to 97d2bc7 Compare May 17, 2024 18:03
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.43.0 ⬆️ Update dependency playwright to >=1.44.0 May 17, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x branch from 97d2bc7 to 84dc100 Compare July 3, 2024 11:47
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.44.0 ⬆️ Update dependency playwright to >=1.45.0 Jul 3, 2024
@renovate renovate bot force-pushed the renovate/playwright-1.x branch from 84dc100 to 3d99816 Compare July 23, 2024 14:54
@renovate renovate bot changed the title ⬆️ Update dependency playwright to >=1.45.0 ⬆️ Update dependency playwright to >=1.45.1 Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants