Releases: microsoft/playwright-java
Releases · microsoft/playwright-java
v0.180.0
Highlights
- Selecting elements based on layout with
:left-of()
,:right-of()
,:above()
and:below()
- Playwright now includes command line interface, former playwright-cli. Give it a try with
npx playwright --help
- Documentation site now has a lot more content, and a dedicated python section
selectOption(selector, values[, options])
now waits for the options to be present- New methods to assert element state like
page.isEditable('selector')
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
elementHandle.isChecked()
elementHandle.isDisabled()
elementHandle.isEditable()
elementHandle.isEnabled()
elementHandle.isHidden()
elementHandle.isVisible()
page.isChecked(selector[, options])
page.isDisabled(selector[, options])
page.isEditable(selector[, options])
page.isEnabled(selector[, options])
page.isHidden(selector[, options])
page.isVisible(selector[, options])
- New option
'editable'
inelementHandle.waitForElementState(state[, options])
v0.171.0
v0.170.3
v0.170.2
v0.170.0
feat: update to [email protected] (#134)