Skip to content

Releases: microsoft/playwright-java

v0.180.0

23 Jan 02:17
b9dbd56
Compare
Choose a tag to compare

Highlights

API changes since the last 0.171.0 version:

  • Deferred interface has been removed, use waitFor* methods instead:
// Before
Deferred<Request> event = page.waitForRequest();
page.click("a");
Request request = event.get();
// After
Request request = page.waitForRequest(() -> page.click("a"));
  • Listener interface is gone, use corresponding on*/off* methods with typed parameter:
// Before
page.addListener(Page.EventType.REQUESTFAILED, event -> {
  Request request = (Request) event.data();
  System.out.println(request.url());
});
// After
page.onRequestFailed(request -> {
  System.out.println(request.url());
});

Browser Versions

  • Chromium 90.0.4392.0
  • Mozilla Firefox 85.0b5
  • WebKit 14.1

New APIs

v0.171.0

22 Dec 23:47
9d61cee
Compare
Choose a tag to compare
fix: correctly encode unicode strings to UTF-8 (#167)

v0.170.3

20 Dec 02:28
d7fee05
Compare
Choose a tag to compare
  • playwright module now includes driver
  • easier creation of browser context emulating a device

v0.170.2

17 Dec 07:56
8c9a2a8
Compare
Choose a tag to compare
devops: update publish.yml to use env var for passphrase (#144)

v0.170.0

16 Dec 06:57
2d179c6
Compare
Choose a tag to compare
feat: update to [email protected] (#134)