0
0
mirror of https://github.com/puppeteer/puppeteer synced 2024-06-14 14:02:48 +00:00
puppeteer/lib
Andrey Lushnikov 927d0f443b
feat(page): support waitUntil option for page.setContent ()
This patch teaches `page.setContent` to await resources in
the new document.

**NOTE**: This patch changes behavior: currently, `page.setContent`
awaits the `"domcontentloaded"` event; with this patch, we can now await
other lifecycle events, and switched default to the `"load"` event.

The change is justified since current behavior made `page.setContent`
unusable for its main designated usecases, pushing our client
to use [dataURL workaround](https://github.com/GoogleChrome/puppeteer/issues/728#issuecomment-334301491).

Fixes 
2018-11-20 15:32:46 -08:00
..
.eslintrc.js Introduce Eslint to validate style 2017-06-11 01:32:59 -07:00
Accessibility.js feat(accessibility): snapshot the accessibility tree () 2018-11-01 18:54:51 -07:00
Browser.js fix(types): fix return types where JSDoc and api.md disagree () 2018-11-07 22:48:43 -08:00
BrowserFetcher.js fix(types): fix return types where JSDoc and api.md disagree () 2018-11-07 22:48:43 -08:00
Connection.js fix(page): navigating 11 pages simultaneously should not throw warning () 2018-11-20 14:21:13 -08:00
Coverage.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
Dialog.js chore: upgrade to TypeScript 3.0.1 () 2018-08-06 11:31:33 -07:00
EmulationManager.js chore: upgrade to TypeScript 3.0.1 () 2018-08-06 11:31:33 -07:00
Errors.js feat: introduce puppeteer/Errors () 2018-08-09 16:51:12 -07:00
ExecutionContext.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
externs.d.ts refactor: move Connection to use ConnectionTransport () 2018-09-07 21:36:16 +01:00
FrameManager.js feat(page): support waitUntil option for page.setContent () 2018-11-20 15:32:46 -08:00
helper.js feat: browser.waitForTarget () 2018-10-09 14:16:53 -07:00
Input.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
Launcher.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
Multimap.js chore: upgrade to TypeScript 3.0.1 () 2018-08-06 11:31:33 -07:00
NetworkManager.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
Page.js feat(page): support waitUntil option for page.setContent () 2018-11-20 15:32:46 -08:00
PipeTransport.js fix(pipe): dispatch "disconnected" event when browser is terminated () 2018-10-31 16:31:29 -07:00
Puppeteer.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
Target.js fix: fix null-type bugs () 2018-08-24 15:17:36 -07:00
TaskQueue.js chore: upgrade to TypeScript 3.0.1 () 2018-08-06 11:31:33 -07:00
Tracing.js fix(types): fix parameters where they disagree with the api () 2018-11-12 12:59:21 -08:00
USKeyboardLayout.js fix: add missing location property to some key descriptors () 2018-10-05 12:35:10 -07:00
WebSocketTransport.js refactor: use browser-compliant interface of 'ws' () 2018-09-11 18:41:28 +01:00
Worker.js refactor: drop object factory from execution context () 2018-08-16 16:16:27 -07:00