isomorfeus-puppetmaster 0.5.1 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -17
- data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +32 -20
- data/lib/isomorfeus/puppetmaster/driver/puppeteer_document.rb +30 -30
- data/lib/isomorfeus/puppetmaster/driver/puppeteer_node.rb +4 -4
- data/lib/isomorfeus/puppetmaster/node.rb +3 -3
- data/lib/isomorfeus/puppetmaster/server.rb +1 -1
- data/lib/isomorfeus/puppetmaster/version.rb +1 -1
- data/lib/isomorfeus/puppetmaster.rb +2 -2
- data/lib/isomorfeus-puppetmaster.rb +5 -2
- data/node_modules/.package-lock.json +56 -45
- data/node_modules/debug/package.json +1 -1
- data/node_modules/debug/src/common.js +14 -1
- data/node_modules/{mkdirp → mkdirp-classic}/LICENSE +2 -2
- data/node_modules/mkdirp-classic/README.md +18 -0
- data/node_modules/{mkdirp → mkdirp-classic}/index.js +2 -3
- data/node_modules/mkdirp-classic/package.json +18 -0
- data/node_modules/node-fetch/lib/index.es.js +25 -3
- data/node_modules/node-fetch/lib/index.js +25 -3
- data/node_modules/node-fetch/lib/index.mjs +25 -3
- data/node_modules/node-fetch/package.json +8 -6
- data/node_modules/progress/lib/node-progress.js +4 -3
- data/node_modules/progress/package.json +1 -1
- data/node_modules/puppeteer-core/CHANGELOG.md +64 -0
- data/node_modules/puppeteer-core/README.md +13 -15
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +5 -5
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +20 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +20 -7
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +2 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +8 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +26 -8
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +18 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +16 -9
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +4 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +26 -18
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +120 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +2 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +10 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +9 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +8 -8
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +2 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +21 -9
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +157 -74
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +5 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +32 -29
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +14 -4
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +2 -3
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +3 -4
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +27 -5
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +46 -21
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +7 -5
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +5 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +51 -6
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +157 -50
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +5 -5
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +3 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +3 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js +30 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +9 -3
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +6 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +5 -5
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js +3 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +20 -21
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +11 -5
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +6 -2
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +30 -15
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +7 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +17 -3
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +1 -1
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +5 -5
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +20 -2
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +16 -3
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +8 -2
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +23 -5
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +18 -2
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +10 -3
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +4 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +16 -8
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +120 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +10 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +7 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +21 -9
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +152 -69
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +5 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +22 -19
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +14 -4
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +2 -3
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +2 -3
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +27 -5
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +35 -10
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +6 -4
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +5 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +51 -6
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +136 -29
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +3 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +3 -2
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +26 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +8 -2
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +4 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js +2 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +9 -10
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +7 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +6 -2
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +27 -12
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +7 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -1
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +17 -3
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -1
- data/node_modules/puppeteer-core/lib/types.d.ts +3898 -3710
- data/node_modules/puppeteer-core/package.json +35 -41
- data/node_modules/tar-fs/.travis.yml +2 -1
- data/node_modules/tar-fs/README.md +4 -2
- data/node_modules/tar-fs/index.js +11 -8
- data/node_modules/tar-fs/package.json +4 -4
- data/node_modules/tar-fs/test/index.js +1 -1
- data/node_modules/tr46/.npmignore +4 -0
- data/node_modules/tr46/index.js +193 -0
- data/node_modules/tr46/lib/.gitkeep +0 -0
- data/node_modules/tr46/lib/mappingTable.json +1 -0
- data/node_modules/tr46/package.json +31 -0
- data/node_modules/unbzip2-stream/README.md +1 -1
- data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -1
- data/node_modules/unbzip2-stream/index.js +3 -2
- data/node_modules/unbzip2-stream/lib/bzip2.js +4 -6
- data/node_modules/unbzip2-stream/package.json +1 -1
- data/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/node_modules/webidl-conversions/README.md +53 -0
- data/node_modules/webidl-conversions/lib/index.js +189 -0
- data/node_modules/webidl-conversions/package.json +23 -0
- data/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/node_modules/whatwg-url/README.md +67 -0
- data/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- data/node_modules/whatwg-url/lib/URL.js +196 -0
- data/node_modules/whatwg-url/lib/public-api.js +11 -0
- data/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- data/node_modules/whatwg-url/lib/utils.js +20 -0
- data/node_modules/whatwg-url/package.json +32 -0
- data/node_modules/ws/LICENSE +0 -2
- data/node_modules/ws/README.md +49 -52
- data/node_modules/ws/index.js +3 -0
- data/node_modules/ws/lib/buffer-util.js +3 -6
- data/node_modules/ws/lib/constants.js +3 -1
- data/node_modules/ws/lib/event-target.js +172 -90
- data/node_modules/ws/lib/extension.js +8 -28
- data/node_modules/ws/lib/permessage-deflate.js +10 -16
- data/node_modules/ws/lib/receiver.js +143 -38
- data/node_modules/ws/lib/sender.js +29 -12
- data/node_modules/ws/lib/stream.js +20 -5
- data/node_modules/ws/lib/subprotocol.js +62 -0
- data/node_modules/ws/lib/validation.js +28 -8
- data/node_modules/ws/lib/websocket-server.js +129 -62
- data/node_modules/ws/lib/websocket.js +311 -104
- data/node_modules/ws/package.json +10 -5
- data/node_modules/ws/wrapper.mjs +8 -0
- data/package.json +1 -1
- metadata +83 -61
- data/node_modules/.bin/mkdirp +0 -12
- data/node_modules/.bin/mkdirp.cmd +0 -17
- data/node_modules/.bin/mkdirp.ps1 +0 -28
- data/node_modules/minimist/.travis.yml +0 -8
- data/node_modules/minimist/LICENSE +0 -18
- data/node_modules/minimist/example/parse.js +0 -2
- data/node_modules/minimist/index.js +0 -245
- data/node_modules/minimist/package.json +0 -45
- data/node_modules/minimist/readme.markdown +0 -95
- data/node_modules/minimist/test/all_bool.js +0 -32
- data/node_modules/minimist/test/bool.js +0 -178
- data/node_modules/minimist/test/dash.js +0 -31
- data/node_modules/minimist/test/default_bool.js +0 -35
- data/node_modules/minimist/test/dotted.js +0 -22
- data/node_modules/minimist/test/kv_short.js +0 -16
- data/node_modules/minimist/test/long.js +0 -31
- data/node_modules/minimist/test/num.js +0 -36
- data/node_modules/minimist/test/parse.js +0 -197
- data/node_modules/minimist/test/parse_modified.js +0 -9
- data/node_modules/minimist/test/proto.js +0 -44
- data/node_modules/minimist/test/short.js +0 -67
- data/node_modules/minimist/test/stop_early.js +0 -15
- data/node_modules/minimist/test/unknown.js +0 -102
- data/node_modules/minimist/test/whitespace.js +0 -8
- data/node_modules/mkdirp/bin/cmd.js +0 -33
- data/node_modules/mkdirp/bin/usage.txt +0 -12
- data/node_modules/mkdirp/package.json +0 -34
- data/node_modules/mkdirp/readme.markdown +0 -100
- data/node_modules/node-fetch/CHANGELOG.md +0 -272
|
@@ -37,6 +37,7 @@ import { PuppeteerLifeCycleEvent } from './LifecycleWatcher.js';
|
|
|
37
37
|
import { Protocol } from 'devtools-protocol';
|
|
38
38
|
import { SerializableOrJSHandle, EvaluateHandleFn, WrapElementHandle, EvaluateFn, EvaluateFnReturnType, UnwrapPromiseLike } from './EvalTypes.js';
|
|
39
39
|
import { PDFOptions } from './PDFOptions.js';
|
|
40
|
+
import { TaskQueue } from './TaskQueue.js';
|
|
40
41
|
/**
|
|
41
42
|
* @public
|
|
42
43
|
*/
|
|
@@ -125,7 +126,7 @@ export interface ScreenshotOptions {
|
|
|
125
126
|
/**
|
|
126
127
|
* @defaultValue 'png'
|
|
127
128
|
*/
|
|
128
|
-
type?: 'png' | 'jpeg';
|
|
129
|
+
type?: 'png' | 'jpeg' | 'webp';
|
|
129
130
|
/**
|
|
130
131
|
* The file path to save the image to. The screenshot type will be inferred
|
|
131
132
|
* from file extension. If path is a relative path, then it is resolved
|
|
@@ -168,7 +169,9 @@ export interface ScreenshotOptions {
|
|
|
168
169
|
* @public
|
|
169
170
|
*/
|
|
170
171
|
export declare const enum PageEmittedEvents {
|
|
171
|
-
/** Emitted when the page closes.
|
|
172
|
+
/** Emitted when the page closes.
|
|
173
|
+
* @eventProperty
|
|
174
|
+
*/
|
|
172
175
|
Close = "close",
|
|
173
176
|
/**
|
|
174
177
|
* Emitted when JavaScript within the page calls one of console API methods,
|
|
@@ -383,7 +386,7 @@ export declare class Page extends EventEmitter {
|
|
|
383
386
|
/**
|
|
384
387
|
* @internal
|
|
385
388
|
*/
|
|
386
|
-
static create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null): Promise<Page>;
|
|
389
|
+
static create(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null, screenshotTaskQueue: TaskQueue): Promise<Page>;
|
|
387
390
|
private _closed;
|
|
388
391
|
private _client;
|
|
389
392
|
private _target;
|
|
@@ -404,10 +407,11 @@ export declare class Page extends EventEmitter {
|
|
|
404
407
|
private _fileChooserInterceptors;
|
|
405
408
|
private _disconnectPromise?;
|
|
406
409
|
private _userDragInterceptionEnabled;
|
|
410
|
+
private _handlerMap;
|
|
407
411
|
/**
|
|
408
412
|
* @internal
|
|
409
413
|
*/
|
|
410
|
-
constructor(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean);
|
|
414
|
+
constructor(client: CDPSession, target: Target, ignoreHTTPSErrors: boolean, screenshotTaskQueue: TaskQueue);
|
|
411
415
|
private _initialize;
|
|
412
416
|
private _onFileChooser;
|
|
413
417
|
/**
|
|
@@ -423,6 +427,7 @@ export declare class Page extends EventEmitter {
|
|
|
423
427
|
*/
|
|
424
428
|
on<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter;
|
|
425
429
|
once<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter;
|
|
430
|
+
off<K extends keyof PageEventObject>(eventName: K, handler: (event: PageEventObject[K]) => void): EventEmitter;
|
|
426
431
|
/**
|
|
427
432
|
* This method is typically coupled with an action that triggers file
|
|
428
433
|
* choosing. The following example clicks a button that issues a file chooser
|
|
@@ -461,6 +466,11 @@ export declare class Page extends EventEmitter {
|
|
|
461
466
|
* @returns A target this page was created from.
|
|
462
467
|
*/
|
|
463
468
|
target(): Target;
|
|
469
|
+
/**
|
|
470
|
+
* Get the CDP session client the page belongs to.
|
|
471
|
+
* @internal
|
|
472
|
+
*/
|
|
473
|
+
client(): CDPSession;
|
|
464
474
|
/**
|
|
465
475
|
* Get the browser the page belongs to.
|
|
466
476
|
*/
|
|
@@ -843,6 +853,7 @@ export declare class Page extends EventEmitter {
|
|
|
843
853
|
path?: string;
|
|
844
854
|
content?: string;
|
|
845
855
|
type?: string;
|
|
856
|
+
id?: string;
|
|
846
857
|
}): Promise<ElementHandle>;
|
|
847
858
|
/**
|
|
848
859
|
* Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
|
|
@@ -914,7 +925,9 @@ export declare class Page extends EventEmitter {
|
|
|
914
925
|
* })();
|
|
915
926
|
* ```
|
|
916
927
|
*/
|
|
917
|
-
exposeFunction(name: string, puppeteerFunction: Function
|
|
928
|
+
exposeFunction(name: string, puppeteerFunction: Function | {
|
|
929
|
+
default: Function;
|
|
930
|
+
}): Promise<void>;
|
|
918
931
|
/**
|
|
919
932
|
* Provide credentials for `HTTP authentication`.
|
|
920
933
|
* @remarks To disable authentication, pass `null`.
|
|
@@ -1193,6 +1206,34 @@ export declare class Page extends EventEmitter {
|
|
|
1193
1206
|
waitForResponse(urlOrPredicate: string | ((res: HTTPResponse) => boolean | Promise<boolean>), options?: {
|
|
1194
1207
|
timeout?: number;
|
|
1195
1208
|
}): Promise<HTTPResponse>;
|
|
1209
|
+
/**
|
|
1210
|
+
* @param options - Optional waiting parameters
|
|
1211
|
+
* @returns Promise which resolves when network is idle
|
|
1212
|
+
*/
|
|
1213
|
+
waitForNetworkIdle(options?: {
|
|
1214
|
+
idleTime?: number;
|
|
1215
|
+
timeout?: number;
|
|
1216
|
+
}): Promise<void>;
|
|
1217
|
+
/**
|
|
1218
|
+
* @param urlOrPredicate - A URL or predicate to wait for.
|
|
1219
|
+
* @param options - Optional waiting parameters
|
|
1220
|
+
* @returns Promise which resolves to the matched frame.
|
|
1221
|
+
* @example
|
|
1222
|
+
* ```js
|
|
1223
|
+
* const frame = await page.waitForFrame(async (frame) => {
|
|
1224
|
+
* return frame.name() === 'Test';
|
|
1225
|
+
* });
|
|
1226
|
+
* ```
|
|
1227
|
+
* @remarks
|
|
1228
|
+
* Optional Parameter have:
|
|
1229
|
+
*
|
|
1230
|
+
* - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds,
|
|
1231
|
+
* pass `0` to disable the timeout. The default value can be changed by using
|
|
1232
|
+
* the {@link Page.setDefaultTimeout} method.
|
|
1233
|
+
*/
|
|
1234
|
+
waitForFrame(urlOrPredicate: string | ((frame: Frame) => boolean | Promise<boolean>), options?: {
|
|
1235
|
+
timeout?: number;
|
|
1236
|
+
}): Promise<Frame>;
|
|
1196
1237
|
/**
|
|
1197
1238
|
* This method navigate to the previous page in history.
|
|
1198
1239
|
* @param options - Navigation parameters
|
|
@@ -1325,6 +1366,10 @@ export declare class Page extends EventEmitter {
|
|
|
1325
1366
|
* ```
|
|
1326
1367
|
*/
|
|
1327
1368
|
emulateMediaType(type?: string): Promise<void>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Enables CPU throttling to emulate slow CPUs.
|
|
1371
|
+
* @param factor - slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
|
|
1372
|
+
*/
|
|
1328
1373
|
emulateCPUThrottling(factor: number | null): Promise<void>;
|
|
1329
1374
|
/**
|
|
1330
1375
|
* @param features - `<?Array<Object>>` Given an array of media feature
|
|
@@ -1622,7 +1667,7 @@ export declare class Page extends EventEmitter {
|
|
|
1622
1667
|
* @returns Promise which resolves to buffer or a base64 string (depending on
|
|
1623
1668
|
* the value of `encoding`) with captured screenshot.
|
|
1624
1669
|
*/
|
|
1625
|
-
screenshot(options?: ScreenshotOptions): Promise<Buffer | string
|
|
1670
|
+
screenshot(options?: ScreenshotOptions): Promise<Buffer | string>;
|
|
1626
1671
|
private _screenshotTask;
|
|
1627
1672
|
/**
|
|
1628
1673
|
* Generatees a PDF of the page with the `print` CSS media type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/common/Page.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC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EmulationManager.js';
|
|
|
20
20
|
import { FrameManager, FrameManagerEmittedEvents, } from './FrameManager.js';
|
|
21
21
|
import { Keyboard, Mouse, Touchscreen } from './Input.js';
|
|
22
22
|
import { Tracing } from './Tracing.js';
|
|
23
|
-
import { assert } from './assert.js';
|
|
23
|
+
import { assert, assertNever } from './assert.js';
|
|
24
24
|
import { helper, debugError } from './helper.js';
|
|
25
25
|
import { Coverage } from './Coverage.js';
|
|
26
26
|
import { WebWorker } from './WebWorker.js';
|
|
@@ -32,16 +32,6 @@ import { FileChooser } from './FileChooser.js';
|
|
|
32
32
|
import { ConsoleMessage } from './ConsoleMessage.js';
|
|
33
33
|
import { paperFormats } from './PDFOptions.js';
|
|
34
34
|
import { isNode } from '../environment.js';
|
|
35
|
-
class ScreenshotTaskQueue {
|
|
36
|
-
constructor() {
|
|
37
|
-
this._chain = Promise.resolve(undefined);
|
|
38
|
-
}
|
|
39
|
-
postTask(task) {
|
|
40
|
-
const result = this._chain.then(task);
|
|
41
|
-
this._chain = result.catch(() => { });
|
|
42
|
-
return result;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
35
|
/**
|
|
46
36
|
* Page provides methods to interact with a single tab or
|
|
47
37
|
* {@link https://developer.chrome.com/extensions/background_pages | extension background page} in Chromium.
|
|
@@ -89,7 +79,7 @@ export class Page extends EventEmitter {
|
|
|
89
79
|
/**
|
|
90
80
|
* @internal
|
|
91
81
|
*/
|
|
92
|
-
constructor(client, target, ignoreHTTPSErrors) {
|
|
82
|
+
constructor(client, target, ignoreHTTPSErrors, screenshotTaskQueue) {
|
|
93
83
|
super();
|
|
94
84
|
this._closed = false;
|
|
95
85
|
this._timeoutSettings = new TimeoutSettings();
|
|
@@ -100,6 +90,7 @@ export class Page extends EventEmitter {
|
|
|
100
90
|
// something?
|
|
101
91
|
this._fileChooserInterceptors = new Set();
|
|
102
92
|
this._userDragInterceptionEnabled = false;
|
|
93
|
+
this._handlerMap = new WeakMap();
|
|
103
94
|
this._client = client;
|
|
104
95
|
this._target = target;
|
|
105
96
|
this._keyboard = new Keyboard(client);
|
|
@@ -110,7 +101,7 @@ export class Page extends EventEmitter {
|
|
|
110
101
|
this._emulationManager = new EmulationManager(client);
|
|
111
102
|
this._tracing = new Tracing(client);
|
|
112
103
|
this._coverage = new Coverage(client);
|
|
113
|
-
this._screenshotTaskQueue =
|
|
104
|
+
this._screenshotTaskQueue = screenshotTaskQueue;
|
|
114
105
|
this._viewport = null;
|
|
115
106
|
client.on('Target.attachedToTarget', (event) => {
|
|
116
107
|
if (event.targetInfo.type !== 'worker' &&
|
|
@@ -119,7 +110,7 @@ export class Page extends EventEmitter {
|
|
|
119
110
|
// We still want to attach to workers for emitting events.
|
|
120
111
|
// We still want to attach to iframes so sessions may interact with them.
|
|
121
112
|
// We detach from all other types out of an abundance of caution.
|
|
122
|
-
// See https://source.chromium.org/chromium/chromium/src/+/
|
|
113
|
+
// See https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypePage%5B%5D%22
|
|
123
114
|
// for the complete list of available types.
|
|
124
115
|
client
|
|
125
116
|
.send('Target.detachFromTarget', {
|
|
@@ -128,10 +119,12 @@ export class Page extends EventEmitter {
|
|
|
128
119
|
.catch(debugError);
|
|
129
120
|
return;
|
|
130
121
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
122
|
+
if (event.targetInfo.type === 'worker') {
|
|
123
|
+
const session = Connection.fromSession(client).session(event.sessionId);
|
|
124
|
+
const worker = new WebWorker(session, event.targetInfo.url, this._addConsoleMessage.bind(this), this._handleException.bind(this));
|
|
125
|
+
this._workers.set(event.sessionId, worker);
|
|
126
|
+
this.emit("workercreated" /* WorkerCreated */, worker);
|
|
127
|
+
}
|
|
135
128
|
});
|
|
136
129
|
client.on('Target.detachedFromTarget', (event) => {
|
|
137
130
|
const worker = this._workers.get(event.sessionId);
|
|
@@ -168,8 +161,8 @@ export class Page extends EventEmitter {
|
|
|
168
161
|
/**
|
|
169
162
|
* @internal
|
|
170
163
|
*/
|
|
171
|
-
static async create(client, target, ignoreHTTPSErrors, defaultViewport) {
|
|
172
|
-
const page = new Page(client, target, ignoreHTTPSErrors);
|
|
164
|
+
static async create(client, target, ignoreHTTPSErrors, defaultViewport, screenshotTaskQueue) {
|
|
165
|
+
const page = new Page(client, target, ignoreHTTPSErrors, screenshotTaskQueue);
|
|
173
166
|
await page._initialize();
|
|
174
167
|
if (defaultViewport)
|
|
175
168
|
await page.setViewport(defaultViewport);
|
|
@@ -219,9 +212,11 @@ export class Page extends EventEmitter {
|
|
|
219
212
|
// dispatching is delegated to EventEmitter.
|
|
220
213
|
on(eventName, handler) {
|
|
221
214
|
if (eventName === 'request') {
|
|
222
|
-
|
|
215
|
+
const wrap = (event) => {
|
|
223
216
|
event.enqueueInterceptAction(() => handler(event));
|
|
224
|
-
}
|
|
217
|
+
};
|
|
218
|
+
this._handlerMap.set(handler, wrap);
|
|
219
|
+
return super.on(eventName, wrap);
|
|
225
220
|
}
|
|
226
221
|
return super.on(eventName, handler);
|
|
227
222
|
}
|
|
@@ -230,6 +225,12 @@ export class Page extends EventEmitter {
|
|
|
230
225
|
// to EventEmitter.
|
|
231
226
|
return super.once(eventName, handler);
|
|
232
227
|
}
|
|
228
|
+
off(eventName, handler) {
|
|
229
|
+
if (eventName === 'request') {
|
|
230
|
+
handler = this._handlerMap.get(handler) || handler;
|
|
231
|
+
}
|
|
232
|
+
return super.off(eventName, handler);
|
|
233
|
+
}
|
|
233
234
|
/**
|
|
234
235
|
* This method is typically coupled with an action that triggers file
|
|
235
236
|
* choosing. The following example clicks a button that issues a file chooser
|
|
@@ -298,6 +299,13 @@ export class Page extends EventEmitter {
|
|
|
298
299
|
target() {
|
|
299
300
|
return this._target;
|
|
300
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* Get the CDP session client the page belongs to.
|
|
304
|
+
* @internal
|
|
305
|
+
*/
|
|
306
|
+
client() {
|
|
307
|
+
return this._client;
|
|
308
|
+
}
|
|
301
309
|
/**
|
|
302
310
|
* Get the browser the page belongs to.
|
|
303
311
|
*/
|
|
@@ -841,7 +849,17 @@ export class Page extends EventEmitter {
|
|
|
841
849
|
async exposeFunction(name, puppeteerFunction) {
|
|
842
850
|
if (this._pageBindings.has(name))
|
|
843
851
|
throw new Error(`Failed to add page binding with name ${name}: window['${name}'] already exists!`);
|
|
844
|
-
|
|
852
|
+
let exposedFunction;
|
|
853
|
+
if (typeof puppeteerFunction === 'function') {
|
|
854
|
+
exposedFunction = puppeteerFunction;
|
|
855
|
+
}
|
|
856
|
+
else if (typeof puppeteerFunction.default === 'function') {
|
|
857
|
+
exposedFunction = puppeteerFunction.default;
|
|
858
|
+
}
|
|
859
|
+
else {
|
|
860
|
+
throw new Error(`Failed to add page binding with name ${name}: ${puppeteerFunction} is not a function or a module with a default export.`);
|
|
861
|
+
}
|
|
862
|
+
this._pageBindings.set(name, exposedFunction);
|
|
845
863
|
const expression = helper.pageBindingInitString('exposedFun', name);
|
|
846
864
|
await this._client.send('Runtime.addBinding', { name: name });
|
|
847
865
|
await this._client.send('Page.addScriptToEvaluateOnNewDocument', {
|
|
@@ -955,7 +973,7 @@ export class Page extends EventEmitter {
|
|
|
955
973
|
// @see https://github.com/puppeteer/puppeteer/issues/3865
|
|
956
974
|
return;
|
|
957
975
|
}
|
|
958
|
-
const context = this._frameManager.executionContextById(event.executionContextId);
|
|
976
|
+
const context = this._frameManager.executionContextById(event.executionContextId, this._client);
|
|
959
977
|
const values = event.args.map((arg) => createJSHandle(context, arg));
|
|
960
978
|
this._addConsoleMessage(event.type, values, event.stackTrace);
|
|
961
979
|
}
|
|
@@ -1282,6 +1300,85 @@ export class Page extends EventEmitter {
|
|
|
1282
1300
|
return false;
|
|
1283
1301
|
}, timeout, this._sessionClosePromise());
|
|
1284
1302
|
}
|
|
1303
|
+
/**
|
|
1304
|
+
* @param options - Optional waiting parameters
|
|
1305
|
+
* @returns Promise which resolves when network is idle
|
|
1306
|
+
*/
|
|
1307
|
+
async waitForNetworkIdle(options = {}) {
|
|
1308
|
+
const { idleTime = 500, timeout = this._timeoutSettings.timeout() } = options;
|
|
1309
|
+
const networkManager = this._frameManager.networkManager();
|
|
1310
|
+
let idleResolveCallback;
|
|
1311
|
+
const idlePromise = new Promise((resolve) => {
|
|
1312
|
+
idleResolveCallback = resolve;
|
|
1313
|
+
});
|
|
1314
|
+
let abortRejectCallback;
|
|
1315
|
+
const abortPromise = new Promise((_, reject) => {
|
|
1316
|
+
abortRejectCallback = reject;
|
|
1317
|
+
});
|
|
1318
|
+
let idleTimer;
|
|
1319
|
+
const onIdle = () => idleResolveCallback();
|
|
1320
|
+
const cleanup = () => {
|
|
1321
|
+
idleTimer && clearTimeout(idleTimer);
|
|
1322
|
+
abortRejectCallback(new Error('abort'));
|
|
1323
|
+
};
|
|
1324
|
+
const evaluate = () => {
|
|
1325
|
+
idleTimer && clearTimeout(idleTimer);
|
|
1326
|
+
if (networkManager.numRequestsInProgress() === 0)
|
|
1327
|
+
idleTimer = setTimeout(onIdle, idleTime);
|
|
1328
|
+
};
|
|
1329
|
+
evaluate();
|
|
1330
|
+
const eventHandler = () => {
|
|
1331
|
+
evaluate();
|
|
1332
|
+
return false;
|
|
1333
|
+
};
|
|
1334
|
+
const listenToEvent = (event) => helper.waitForEvent(networkManager, event, eventHandler, timeout, abortPromise);
|
|
1335
|
+
const eventPromises = [
|
|
1336
|
+
listenToEvent(NetworkManagerEmittedEvents.Request),
|
|
1337
|
+
listenToEvent(NetworkManagerEmittedEvents.Response),
|
|
1338
|
+
];
|
|
1339
|
+
await Promise.race([
|
|
1340
|
+
idlePromise,
|
|
1341
|
+
...eventPromises,
|
|
1342
|
+
this._sessionClosePromise(),
|
|
1343
|
+
]).then((r) => {
|
|
1344
|
+
cleanup();
|
|
1345
|
+
return r;
|
|
1346
|
+
}, (error) => {
|
|
1347
|
+
cleanup();
|
|
1348
|
+
throw error;
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* @param urlOrPredicate - A URL or predicate to wait for.
|
|
1353
|
+
* @param options - Optional waiting parameters
|
|
1354
|
+
* @returns Promise which resolves to the matched frame.
|
|
1355
|
+
* @example
|
|
1356
|
+
* ```js
|
|
1357
|
+
* const frame = await page.waitForFrame(async (frame) => {
|
|
1358
|
+
* return frame.name() === 'Test';
|
|
1359
|
+
* });
|
|
1360
|
+
* ```
|
|
1361
|
+
* @remarks
|
|
1362
|
+
* Optional Parameter have:
|
|
1363
|
+
*
|
|
1364
|
+
* - `timeout`: Maximum wait time in milliseconds, defaults to `30` seconds,
|
|
1365
|
+
* pass `0` to disable the timeout. The default value can be changed by using
|
|
1366
|
+
* the {@link Page.setDefaultTimeout} method.
|
|
1367
|
+
*/
|
|
1368
|
+
async waitForFrame(urlOrPredicate, options = {}) {
|
|
1369
|
+
const { timeout = this._timeoutSettings.timeout() } = options;
|
|
1370
|
+
async function predicate(frame) {
|
|
1371
|
+
if (helper.isString(urlOrPredicate))
|
|
1372
|
+
return urlOrPredicate === frame.url();
|
|
1373
|
+
if (typeof urlOrPredicate === 'function')
|
|
1374
|
+
return !!(await urlOrPredicate(frame));
|
|
1375
|
+
return false;
|
|
1376
|
+
}
|
|
1377
|
+
return Promise.race([
|
|
1378
|
+
helper.waitForEvent(this._frameManager, FrameManagerEmittedEvents.FrameAttached, predicate, timeout, this._sessionClosePromise()),
|
|
1379
|
+
helper.waitForEvent(this._frameManager, FrameManagerEmittedEvents.FrameNavigated, predicate, timeout, this._sessionClosePromise()),
|
|
1380
|
+
]);
|
|
1381
|
+
}
|
|
1285
1382
|
/**
|
|
1286
1383
|
* This method navigate to the previous page in history.
|
|
1287
1384
|
* @param options - Navigation parameters
|
|
@@ -1446,6 +1543,10 @@ export class Page extends EventEmitter {
|
|
|
1446
1543
|
media: type || '',
|
|
1447
1544
|
});
|
|
1448
1545
|
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Enables CPU throttling to emulate slow CPUs.
|
|
1548
|
+
* @param factor - slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
|
|
1549
|
+
*/
|
|
1449
1550
|
async emulateCPUThrottling(factor) {
|
|
1450
1551
|
assert(factor === null || factor >= 1, 'Throttling rate should be greater or equal to 1');
|
|
1451
1552
|
await this._client.send('Emulation.setCPUThrottlingRate', {
|
|
@@ -1819,7 +1920,10 @@ export class Page extends EventEmitter {
|
|
|
1819
1920
|
// because it may be a 0-length file with no extension created beforehand
|
|
1820
1921
|
// (i.e. as a temp file).
|
|
1821
1922
|
if (options.type) {
|
|
1822
|
-
|
|
1923
|
+
const type = options.type;
|
|
1924
|
+
if (type !== 'png' && type !== 'jpeg' && type !== 'webp') {
|
|
1925
|
+
assertNever(type, 'Unknown options.type value: ' + type);
|
|
1926
|
+
}
|
|
1823
1927
|
screenshotType = options.type;
|
|
1824
1928
|
}
|
|
1825
1929
|
else if (options.path) {
|
|
@@ -1831,12 +1935,14 @@ export class Page extends EventEmitter {
|
|
|
1831
1935
|
screenshotType = 'png';
|
|
1832
1936
|
else if (extension === 'jpg' || extension === 'jpeg')
|
|
1833
1937
|
screenshotType = 'jpeg';
|
|
1938
|
+
else if (extension === 'webp')
|
|
1939
|
+
screenshotType = 'webp';
|
|
1834
1940
|
assert(screenshotType, `Unsupported screenshot type for extension \`.${extension}\``);
|
|
1835
1941
|
}
|
|
1836
1942
|
if (!screenshotType)
|
|
1837
1943
|
screenshotType = 'png';
|
|
1838
1944
|
if (options.quality) {
|
|
1839
|
-
assert(screenshotType === 'jpeg', 'options.quality is unsupported for the ' +
|
|
1945
|
+
assert(screenshotType === 'jpeg' || screenshotType === 'webp', 'options.quality is unsupported for the ' +
|
|
1840
1946
|
screenshotType +
|
|
1841
1947
|
' screenshots');
|
|
1842
1948
|
assert(typeof options.quality === 'number', 'Expected options.quality to be a number but found ' +
|
|
@@ -1888,7 +1994,7 @@ export class Page extends EventEmitter {
|
|
|
1888
1994
|
});
|
|
1889
1995
|
}
|
|
1890
1996
|
}
|
|
1891
|
-
const shouldSetDefaultBackground = options.omitBackground && format === 'png';
|
|
1997
|
+
const shouldSetDefaultBackground = options.omitBackground && (format === 'png' || format === 'webp');
|
|
1892
1998
|
if (shouldSetDefaultBackground) {
|
|
1893
1999
|
await this._setTransparentBackgroundColor();
|
|
1894
2000
|
}
|
|
@@ -1941,7 +2047,7 @@ export class Page extends EventEmitter {
|
|
|
1941
2047
|
* @param options - options for generating the PDF.
|
|
1942
2048
|
*/
|
|
1943
2049
|
async createPDFStream(options = {}) {
|
|
1944
|
-
const { scale = 1, displayHeaderFooter = false, headerTemplate = '', footerTemplate = '', printBackground = false, landscape = false, pageRanges = '', preferCSSPageSize = false, margin = {}, omitBackground = false, } = options;
|
|
2050
|
+
const { scale = 1, displayHeaderFooter = false, headerTemplate = '', footerTemplate = '', printBackground = false, landscape = false, pageRanges = '', preferCSSPageSize = false, margin = {}, omitBackground = false, timeout = 30000, } = options;
|
|
1945
2051
|
let paperWidth = 8.5;
|
|
1946
2052
|
let paperHeight = 11;
|
|
1947
2053
|
if (options.format) {
|
|
@@ -1962,7 +2068,7 @@ export class Page extends EventEmitter {
|
|
|
1962
2068
|
if (omitBackground) {
|
|
1963
2069
|
await this._setTransparentBackgroundColor();
|
|
1964
2070
|
}
|
|
1965
|
-
const
|
|
2071
|
+
const printCommandPromise = this._client.send('Page.printToPDF', {
|
|
1966
2072
|
transferMode: 'ReturnAsStream',
|
|
1967
2073
|
landscape,
|
|
1968
2074
|
displayHeaderFooter,
|
|
@@ -1979,6 +2085,7 @@ export class Page extends EventEmitter {
|
|
|
1979
2085
|
pageRanges,
|
|
1980
2086
|
preferCSSPageSize,
|
|
1981
2087
|
});
|
|
2088
|
+
const result = await helper.waitWithTimeout(printCommandPromise, 'Page.printToPDF', timeout);
|
|
1982
2089
|
if (omitBackground) {
|
|
1983
2090
|
await this._resetDefaultBackgroundColor();
|
|
1984
2091
|
}
|