playwright/src/client
Andrey Lushnikov c5ce263de7
fix: make sure page.goto navigates away from pages with beforeunload (#8770)
As of today, we can't navigate away from a page with beforeunload unless
we have an explicit `beforeunload` handler.

This patch updates our dialog auto-closing logic so that it auto-accepts
all beforeunload dialogs.

Fixes #8144
2021-09-09 13:19:50 -07:00
..
accessibility.ts feat(types): make our client classes implement public types (#4817) 2020-12-26 17:05:57 -08:00
android.ts chore: move sdkLanguage over to the protocol init call (#8329) 2021-08-20 21:32:21 +02:00
api.ts feat(network): remove Headers class and add headersArray method (#8749) 2021-09-07 10:27:53 -07:00
artifact.ts chore: remove hard-coded wrapApi names (#7347) 2021-06-28 13:27:38 -07:00
browser.ts fix(test runner): make sure options, trace and screenshot apply to all contexts (#8083) 2021-08-09 18:09:11 -07:00
browserContext.ts feat(fetch): fetch with request parameter (#8793) 2021-09-08 16:31:58 -07:00
browserType.ts fix: use logger from config if specified (#8697) 2021-09-03 14:21:25 -07:00
cdpSession.ts chore: remove hard-coded wrapApi names (#7347) 2021-06-28 13:27:38 -07:00
channelOwner.ts fix(tracing): collect apiName for mouse/keyboard/touchscreen (#8755) 2021-09-07 13:48:30 -07:00
clientHelper.ts feat: add browser.newContext({ baseUrl }) (#7409) 2021-07-06 21:16:37 +02:00
connection.ts feat(html reporter): show log for pw:api and expect steps (#8692) 2021-09-03 13:08:17 -07:00
consoleMessage.ts feat(types): make our client classes implement public types (#4817) 2020-12-26 17:05:57 -08:00
coverage.ts api: remove Chromium* classes (#6040) 2021-04-01 18:47:14 -07:00
dialog.ts chore: remove hard-coded wrapApi names (#7347) 2021-06-28 13:27:38 -07:00
download.ts feat(download): introduce Download.cancel (#7462) 2021-07-06 09:38:50 +02:00
electron.ts chore: move sdkLanguage over to the protocol init call (#8329) 2021-08-20 21:32:21 +02:00
elementHandle.ts feat(api): introduce setChecked convenience method (#8525) 2021-08-29 20:00:40 -07:00
events.ts feat(network): expose network events via browser context (#6370) 2021-05-13 10:29:14 -07:00
fileChooser.ts chore: remove hard-coded wrapApi names (#7347) 2021-06-28 13:27:38 -07:00
frame.ts feat(api): introduce setChecked convenience method (#8525) 2021-08-29 20:00:40 -07:00
input.ts fix(tracing): collect apiName for mouse/keyboard/touchscreen (#8755) 2021-09-07 13:48:30 -07:00
jsHandle.ts chore(typescript): turn on noImplicitOverride (#7810) 2021-08-25 10:11:18 -04:00
jsonPipe.ts chore: implement browserType.connect on the driver side (#8566) 2021-08-31 12:51:13 -07:00
locator.ts fix(locators): not waiting until handle is disposed (#8735) 2021-09-07 11:16:43 +02:00
network.ts feat(fetch): fulfill without passing fetch response body client<->server (#8789) 2021-09-08 14:59:12 -07:00
page.ts fix: make sure page.goto navigates away from pages with beforeunload (#8770) 2021-09-09 13:19:50 -07:00
playwright.ts feat(proxy): support local.playwright for proxying (#8330) 2021-08-19 16:56:06 -07:00
selectors.ts feat(types): make our client classes implement public types (#4817) 2020-12-26 17:05:57 -08:00
stream.ts chore(typescript): turn on noImplicitOverride (#7810) 2021-08-25 10:11:18 -04:00
tracing.ts feat(tracing): tracing.{start,stop}Chunk instead of tracing._export (#8521) 2021-08-31 17:03:31 -07:00
types.ts feat(html reporter): show log for pw:api and expect steps (#8692) 2021-09-03 13:08:17 -07:00
video.ts fix(connect): handle disconnect in various situations (#6276) 2021-05-06 09:34:06 -07:00
waiter.ts fix(trace-viewer): include waitFor* in trace viewer (#7413) 2021-06-30 17:56:48 -07:00
worker.ts chore: remove hard-coded wrapApi names (#7347) 2021-06-28 13:27:38 -07:00