chrome-devtools-frontend 1.0.1036501 → 1.0.1038113
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.
- package/config/gni/devtools_grd_files.gni +9 -2
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +21 -5
- package/front_end/core/sdk/NetworkRequest.ts +10 -0
- package/front_end/entrypoints/main/MainImpl.ts +2 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +3 -3
- package/front_end/panels/elements/TopLayerContainer.ts +14 -13
- package/front_end/panels/media/PlayerPropertiesView.ts +43 -11
- package/front_end/panels/media/playerPropertiesView.css +22 -3
- package/front_end/panels/sources/NavigatorView.ts +12 -3
- package/front_end/panels/sources/components/BreakpointsView.ts +11 -16
- package/front_end/panels/sources/components/breakpointsView.css +21 -13
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +244 -244
- package/front_end/third_party/lighthouse/locales/en-US.json +2 -2
- package/front_end/third_party/lighthouse/locales/en-XL.json +2 -2
- package/front_end/third_party/puppeteer/package/README.md +20 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +10 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +19 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +23 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +35 -20
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +19 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +5 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +168 -131
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +208 -206
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +74 -75
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +82 -97
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +16 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +17 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts +634 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js +713 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +9 -679
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +77 -803
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +11 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +11 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +34 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +35 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DOMWorld.d.ts → IsolatedWorld.d.ts} +58 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DOMWorld.js → IsolatedWorld.js} +124 -151
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +40 -58
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +53 -76
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +23 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +17 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +8 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +395 -296
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +398 -313
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +14 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +38 -17
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +49 -31
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +7 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +8 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +8 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +1 -34
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +5 -53
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts +28 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js +148 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts +25 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js +78 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js +22 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{common → util}/assert.d.ts +0 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/assert.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{common → util}/assert.js +0 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/assert.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js +19 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +10 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +19 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +23 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +36 -21
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +19 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +5 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +168 -131
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +208 -206
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +74 -75
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +83 -98
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +16 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +17 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts +634 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js +709 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +9 -679
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +72 -797
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +11 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +11 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +34 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +35 -14
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DOMWorld.d.ts → IsolatedWorld.d.ts} +58 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DOMWorld.js → IsolatedWorld.js} +123 -150
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +40 -58
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +54 -77
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +24 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +17 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +8 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +395 -296
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +398 -313
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +14 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +38 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +49 -31
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +7 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +8 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +8 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +1 -34
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +3 -48
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts +28 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js +142 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts +25 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js +73 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.js +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{common → util}/assert.d.ts +0 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/assert.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{common → util}/assert.js +0 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/assert.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js +15 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +1069 -878
- package/front_end/third_party/puppeteer/package/package.json +32 -28
- package/front_end/third_party/puppeteer/package/typescript-if-required.js +1 -1
- package/front_end/third_party/puppeteer/puppeteer.ts +1 -1
- package/front_end/ui/components/text_prompt/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +1 -1
- package/package.json +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +0 -1
@@ -0,0 +1,634 @@
|
|
1
|
+
import { Protocol } from 'devtools-protocol';
|
2
|
+
import { CDPSession } from './Connection.js';
|
3
|
+
import { ElementHandle } from './ElementHandle.js';
|
4
|
+
import { ExecutionContext } from './ExecutionContext.js';
|
5
|
+
import { FrameManager } from './FrameManager.js';
|
6
|
+
import { HTTPResponse } from './HTTPResponse.js';
|
7
|
+
import { MouseButton } from './Input.js';
|
8
|
+
import { IsolatedWorldChart, WaitForSelectorOptions } from './IsolatedWorld.js';
|
9
|
+
import { PuppeteerLifeCycleEvent } from './LifecycleWatcher.js';
|
10
|
+
import { Page } from './Page.js';
|
11
|
+
import { EvaluateFunc, HandleFor, NodeFor } from './types.js';
|
12
|
+
/**
|
13
|
+
* @public
|
14
|
+
*/
|
15
|
+
export interface FrameWaitForFunctionOptions {
|
16
|
+
/**
|
17
|
+
* An interval at which the `pageFunction` is executed, defaults to `raf`. If
|
18
|
+
* `polling` is a number, then it is treated as an interval in milliseconds at
|
19
|
+
* which the function would be executed. If `polling` is a string, then it can
|
20
|
+
* be one of the following values:
|
21
|
+
*
|
22
|
+
* - `raf` - to constantly execute `pageFunction` in `requestAnimationFrame`
|
23
|
+
* callback. This is the tightest polling mode which is suitable to observe
|
24
|
+
* styling changes.
|
25
|
+
*
|
26
|
+
* - `mutation` - to execute `pageFunction` on every DOM mutation.
|
27
|
+
*/
|
28
|
+
polling?: string | number;
|
29
|
+
/**
|
30
|
+
* Maximum time to wait in milliseconds. Defaults to `30000` (30 seconds).
|
31
|
+
* Pass `0` to disable the timeout. Puppeteer's default timeout can be changed
|
32
|
+
* using {@link Page.setDefaultTimeout}.
|
33
|
+
*/
|
34
|
+
timeout?: number;
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* @public
|
38
|
+
*/
|
39
|
+
export interface FrameAddScriptTagOptions {
|
40
|
+
/**
|
41
|
+
* the URL of the script to be added.
|
42
|
+
*/
|
43
|
+
url?: string;
|
44
|
+
/**
|
45
|
+
* The path to a JavaScript file to be injected into the frame.
|
46
|
+
* @remarks
|
47
|
+
* If `path` is a relative path, it is resolved relative to the current
|
48
|
+
* working directory (`process.cwd()` in Node.js).
|
49
|
+
*/
|
50
|
+
path?: string;
|
51
|
+
/**
|
52
|
+
* Raw JavaScript content to be injected into the frame.
|
53
|
+
*/
|
54
|
+
content?: string;
|
55
|
+
/**
|
56
|
+
* Set the script's `type`. Use `module` in order to load an ES2015 module.
|
57
|
+
*/
|
58
|
+
type?: string;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* @public
|
62
|
+
*/
|
63
|
+
export interface FrameAddStyleTagOptions {
|
64
|
+
/**
|
65
|
+
* the URL of the CSS file to be added.
|
66
|
+
*/
|
67
|
+
url?: string;
|
68
|
+
/**
|
69
|
+
* The path to a CSS file to be injected into the frame.
|
70
|
+
* @remarks
|
71
|
+
* If `path` is a relative path, it is resolved relative to the current
|
72
|
+
* working directory (`process.cwd()` in Node.js).
|
73
|
+
*/
|
74
|
+
path?: string;
|
75
|
+
/**
|
76
|
+
* Raw CSS content to be injected into the frame.
|
77
|
+
*/
|
78
|
+
content?: string;
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
* Represents a DOM frame.
|
82
|
+
*
|
83
|
+
* To understand frames, you can think of frames as `<iframe>` elements. Just
|
84
|
+
* like iframes, frames can be nested, and when JavaScript is executed in a
|
85
|
+
* frame, the JavaScript does not effect frames inside the ambient frame the
|
86
|
+
* JavaScript executes in.
|
87
|
+
*
|
88
|
+
* @example
|
89
|
+
* At any point in time, {@link Page | pages} expose their current frame
|
90
|
+
* tree via the {@link Page.mainFrame} and {@link Frame.childFrames} methods.
|
91
|
+
*
|
92
|
+
* @example
|
93
|
+
* An example of dumping frame tree:
|
94
|
+
*
|
95
|
+
* ```ts
|
96
|
+
* const puppeteer = require('puppeteer');
|
97
|
+
*
|
98
|
+
* (async () => {
|
99
|
+
* const browser = await puppeteer.launch();
|
100
|
+
* const page = await browser.newPage();
|
101
|
+
* await page.goto('https://www.google.com/chrome/browser/canary.html');
|
102
|
+
* dumpFrameTree(page.mainFrame(), '');
|
103
|
+
* await browser.close();
|
104
|
+
*
|
105
|
+
* function dumpFrameTree(frame, indent) {
|
106
|
+
* console.log(indent + frame.url());
|
107
|
+
* for (const child of frame.childFrames()) {
|
108
|
+
* dumpFrameTree(child, indent + ' ');
|
109
|
+
* }
|
110
|
+
* }
|
111
|
+
* })();
|
112
|
+
* ```
|
113
|
+
*
|
114
|
+
* @example
|
115
|
+
* An example of getting text from an iframe element:
|
116
|
+
*
|
117
|
+
* ```ts
|
118
|
+
* const frame = page.frames().find(frame => frame.name() === 'myframe');
|
119
|
+
* const text = await frame.$eval('.selector', element => element.textContent);
|
120
|
+
* console.log(text);
|
121
|
+
* ```
|
122
|
+
*
|
123
|
+
* @remarks
|
124
|
+
* Frame lifecycles are controlled by three events that are all dispatched on
|
125
|
+
* the parent {@link Frame.page | page}:
|
126
|
+
*
|
127
|
+
* - {@link PageEmittedEvents.FrameAttached}
|
128
|
+
* - {@link PageEmittedEvents.FrameNavigated}
|
129
|
+
* - {@link PageEmittedEvents.FrameDetached}
|
130
|
+
*
|
131
|
+
* @public
|
132
|
+
*/
|
133
|
+
export declare class Frame {
|
134
|
+
#private;
|
135
|
+
/**
|
136
|
+
* @internal
|
137
|
+
*/
|
138
|
+
worlds: IsolatedWorldChart;
|
139
|
+
/**
|
140
|
+
* @internal
|
141
|
+
*/
|
142
|
+
_frameManager: FrameManager;
|
143
|
+
/**
|
144
|
+
* @internal
|
145
|
+
*/
|
146
|
+
_id: string;
|
147
|
+
/**
|
148
|
+
* @internal
|
149
|
+
*/
|
150
|
+
_loaderId: string;
|
151
|
+
/**
|
152
|
+
* @internal
|
153
|
+
*/
|
154
|
+
_name?: string;
|
155
|
+
/**
|
156
|
+
* @internal
|
157
|
+
*/
|
158
|
+
_hasStartedLoading: boolean;
|
159
|
+
/**
|
160
|
+
* @internal
|
161
|
+
*/
|
162
|
+
_lifecycleEvents: Set<string>;
|
163
|
+
/**
|
164
|
+
* @internal
|
165
|
+
*/
|
166
|
+
_childFrames: Set<Frame>;
|
167
|
+
/**
|
168
|
+
* @internal
|
169
|
+
*/
|
170
|
+
constructor(frameManager: FrameManager, parentFrame: Frame | null, frameId: string, client: CDPSession);
|
171
|
+
/**
|
172
|
+
* @internal
|
173
|
+
*/
|
174
|
+
updateClient(client: CDPSession): void;
|
175
|
+
/**
|
176
|
+
* @returns The page associated with the frame.
|
177
|
+
*/
|
178
|
+
page(): Page;
|
179
|
+
/**
|
180
|
+
* @returns `true` if the frame is an out-of-process (OOP) frame. Otherwise,
|
181
|
+
* `false`.
|
182
|
+
*/
|
183
|
+
isOOPFrame(): boolean;
|
184
|
+
/**
|
185
|
+
* Navigates a frame to the given url.
|
186
|
+
*
|
187
|
+
* @remarks
|
188
|
+
* Navigation to `about:blank` or navigation to the same URL with a different
|
189
|
+
* hash will succeed and return `null`.
|
190
|
+
*
|
191
|
+
* :::warning
|
192
|
+
*
|
193
|
+
* Headless mode doesn't support navigation to a PDF document. See the {@link
|
194
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=761295 | upstream
|
195
|
+
* issue}.
|
196
|
+
*
|
197
|
+
* :::
|
198
|
+
*
|
199
|
+
* @param url - the URL to navigate the frame to. This should include the
|
200
|
+
* scheme, e.g. `https://`.
|
201
|
+
* @param options - navigation options. `waitUntil` is useful to define when
|
202
|
+
* the navigation should be considered successful - see the docs for
|
203
|
+
* {@link PuppeteerLifeCycleEvent} for more details.
|
204
|
+
*
|
205
|
+
* @returns A promise which resolves to the main resource response. In case of
|
206
|
+
* multiple redirects, the navigation will resolve with the response of the
|
207
|
+
* last redirect.
|
208
|
+
* @throws This method will throw an error if:
|
209
|
+
*
|
210
|
+
* - there's an SSL error (e.g. in case of self-signed certificates).
|
211
|
+
* - target URL is invalid.
|
212
|
+
* - the `timeout` is exceeded during navigation.
|
213
|
+
* - the remote server does not respond or is unreachable.
|
214
|
+
* - the main resource failed to load.
|
215
|
+
*
|
216
|
+
* This method will not throw an error when any valid HTTP status code is
|
217
|
+
* returned by the remote server, including 404 "Not Found" and 500 "Internal
|
218
|
+
* Server Error". The status code for such responses can be retrieved by
|
219
|
+
* calling {@link HTTPResponse.status}.
|
220
|
+
*/
|
221
|
+
goto(url: string, options?: {
|
222
|
+
referer?: string;
|
223
|
+
timeout?: number;
|
224
|
+
waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
|
225
|
+
}): Promise<HTTPResponse | null>;
|
226
|
+
/**
|
227
|
+
* Waits for the frame to navigate. It is useful for when you run code which
|
228
|
+
* will indirectly cause the frame to navigate.
|
229
|
+
*
|
230
|
+
* Usage of the
|
231
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/API/History_API | History API}
|
232
|
+
* to change the URL is considered a navigation.
|
233
|
+
*
|
234
|
+
* @example
|
235
|
+
*
|
236
|
+
* ```ts
|
237
|
+
* const [response] = await Promise.all([
|
238
|
+
* // The navigation promise resolves after navigation has finished
|
239
|
+
* frame.waitForNavigation(),
|
240
|
+
* // Clicking the link will indirectly cause a navigation
|
241
|
+
* frame.click('a.my-link'),
|
242
|
+
* ]);
|
243
|
+
* ```
|
244
|
+
*
|
245
|
+
* @param options - options to configure when the navigation is consided
|
246
|
+
* finished.
|
247
|
+
* @returns a promise that resolves when the frame navigates to a new URL.
|
248
|
+
*/
|
249
|
+
waitForNavigation(options?: {
|
250
|
+
timeout?: number;
|
251
|
+
waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
|
252
|
+
}): Promise<HTTPResponse | null>;
|
253
|
+
/**
|
254
|
+
* @internal
|
255
|
+
*/
|
256
|
+
_client(): CDPSession;
|
257
|
+
/**
|
258
|
+
* @deprecated Do not use the execution context directly.
|
259
|
+
*
|
260
|
+
* @returns a promise that resolves to the frame's default execution context.
|
261
|
+
*/
|
262
|
+
executionContext(): Promise<ExecutionContext>;
|
263
|
+
/**
|
264
|
+
* Behaves identically to {@link Page.evaluateHandle} except it's run within
|
265
|
+
* the context of this frame.
|
266
|
+
*
|
267
|
+
* @see {@link Page.evaluateHandle} for details.
|
268
|
+
*/
|
269
|
+
evaluateHandle<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<HandleFor<Awaited<ReturnType<Func>>>>;
|
270
|
+
/**
|
271
|
+
* Behaves identically to {@link Page.evaluate} except it's run within the
|
272
|
+
* the context of this frame.
|
273
|
+
*
|
274
|
+
* @see {@link Page.evaluate} for details.
|
275
|
+
*/
|
276
|
+
evaluate<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>;
|
277
|
+
/**
|
278
|
+
* Queries the frame for an element matching the given selector.
|
279
|
+
*
|
280
|
+
* @param selector - The selector to query for.
|
281
|
+
* @returns A {@link ElementHandle | element handle} to the first element
|
282
|
+
* matching the given selector. Otherwise, `null`.
|
283
|
+
*/
|
284
|
+
$<Selector extends string>(selector: Selector): Promise<ElementHandle<NodeFor<Selector>> | null>;
|
285
|
+
/**
|
286
|
+
* Queries the frame for all elements matching the given selector.
|
287
|
+
*
|
288
|
+
* @param selector - The selector to query for.
|
289
|
+
* @returns An array of {@link ElementHandle | element handles} that point to
|
290
|
+
* elements matching the given selector.
|
291
|
+
*/
|
292
|
+
$$<Selector extends string>(selector: Selector): Promise<Array<ElementHandle<NodeFor<Selector>>>>;
|
293
|
+
/**
|
294
|
+
* Runs the given function on the first element matching the given selector in
|
295
|
+
* the frame.
|
296
|
+
*
|
297
|
+
* If the given function returns a promise, then this method will wait till
|
298
|
+
* the promise resolves.
|
299
|
+
*
|
300
|
+
* @example
|
301
|
+
*
|
302
|
+
* ```ts
|
303
|
+
* const searchValue = await frame.$eval('#search', el => el.value);
|
304
|
+
* ```
|
305
|
+
*
|
306
|
+
* @param selector - The selector to query for.
|
307
|
+
* @param pageFunction - The function to be evaluated in the frame's context.
|
308
|
+
* The first element matching the selector will be passed to the function as
|
309
|
+
* its first argument.
|
310
|
+
* @param args - Additional arguments to pass to `pageFunction`.
|
311
|
+
* @returns A promise to the result of the function.
|
312
|
+
*/
|
313
|
+
$eval<Selector extends string, Params extends unknown[], Func extends EvaluateFunc<[
|
314
|
+
ElementHandle<NodeFor<Selector>>,
|
315
|
+
...Params
|
316
|
+
]> = EvaluateFunc<[ElementHandle<NodeFor<Selector>>, ...Params]>>(selector: Selector, pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>;
|
317
|
+
/**
|
318
|
+
* Runs the given function on an array of elements matching the given selector
|
319
|
+
* in the frame.
|
320
|
+
*
|
321
|
+
* If the given function returns a promise, then this method will wait till
|
322
|
+
* the promise resolves.
|
323
|
+
*
|
324
|
+
* @example
|
325
|
+
*
|
326
|
+
* ```js
|
327
|
+
* const divsCounts = await frame.$$eval('div', divs => divs.length);
|
328
|
+
* ```
|
329
|
+
*
|
330
|
+
* @param selector - The selector to query for.
|
331
|
+
* @param pageFunction - The function to be evaluated in the frame's context.
|
332
|
+
* An array of elements matching the given selector will be passed to the
|
333
|
+
* function as its first argument.
|
334
|
+
* @param args - Additional arguments to pass to `pageFunction`.
|
335
|
+
* @returns A promise to the result of the function.
|
336
|
+
*/
|
337
|
+
$$eval<Selector extends string, Params extends unknown[], Func extends EvaluateFunc<[
|
338
|
+
Array<NodeFor<Selector>>,
|
339
|
+
...Params
|
340
|
+
]> = EvaluateFunc<[Array<NodeFor<Selector>>, ...Params]>>(selector: Selector, pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>;
|
341
|
+
/**
|
342
|
+
* @deprecated Use {@link Frame.$$} with the `xpath` prefix.
|
343
|
+
*
|
344
|
+
* This method evaluates the given XPath expression and returns the results.
|
345
|
+
* @param expression - the XPath expression to evaluate.
|
346
|
+
*/
|
347
|
+
$x(expression: string): Promise<Array<ElementHandle<Node>>>;
|
348
|
+
/**
|
349
|
+
* Waits for an element matching the given selector to appear in the frame.
|
350
|
+
*
|
351
|
+
* This method works across navigations.
|
352
|
+
*
|
353
|
+
* @example
|
354
|
+
*
|
355
|
+
* ```ts
|
356
|
+
* const puppeteer = require('puppeteer');
|
357
|
+
*
|
358
|
+
* (async () => {
|
359
|
+
* const browser = await puppeteer.launch();
|
360
|
+
* const page = await browser.newPage();
|
361
|
+
* let currentURL;
|
362
|
+
* page
|
363
|
+
* .mainFrame()
|
364
|
+
* .waitForSelector('img')
|
365
|
+
* .then(() => console.log('First URL with image: ' + currentURL));
|
366
|
+
*
|
367
|
+
* for (currentURL of [
|
368
|
+
* 'https://example.com',
|
369
|
+
* 'https://google.com',
|
370
|
+
* 'https://bbc.com',
|
371
|
+
* ]) {
|
372
|
+
* await page.goto(currentURL);
|
373
|
+
* }
|
374
|
+
* await browser.close();
|
375
|
+
* })();
|
376
|
+
* ```
|
377
|
+
*
|
378
|
+
* @param selector - The selector to query and wait for.
|
379
|
+
* @param options - Options for customizing waiting behavior.
|
380
|
+
* @returns An element matching the given selector.
|
381
|
+
* @throws Throws if an element matching the given selector doesn't appear.
|
382
|
+
*/
|
383
|
+
waitForSelector<Selector extends string>(selector: Selector, options?: WaitForSelectorOptions): Promise<ElementHandle<NodeFor<Selector>> | null>;
|
384
|
+
/**
|
385
|
+
* @deprecated Use {@link Frame.waitForSelector} with the `xpath` prefix.
|
386
|
+
*
|
387
|
+
* Wait for the `xpath` to appear in page. If at the moment of calling the
|
388
|
+
* method the `xpath` already exists, the method will return immediately. If
|
389
|
+
* the xpath doesn't appear after the `timeout` milliseconds of waiting, the
|
390
|
+
* function will throw.
|
391
|
+
*
|
392
|
+
* For a code example, see the example for {@link Frame.waitForSelector}. That
|
393
|
+
* function behaves identically other than taking a CSS selector rather than
|
394
|
+
* an XPath.
|
395
|
+
*
|
396
|
+
* @param xpath - the XPath expression to wait for.
|
397
|
+
* @param options - options to configure the visiblity of the element and how
|
398
|
+
* long to wait before timing out.
|
399
|
+
*/
|
400
|
+
waitForXPath(xpath: string, options?: WaitForSelectorOptions): Promise<ElementHandle<Node> | null>;
|
401
|
+
/**
|
402
|
+
* @example
|
403
|
+
* The `waitForFunction` can be used to observe viewport size change:
|
404
|
+
*
|
405
|
+
* ```ts
|
406
|
+
* const puppeteer = require('puppeteer');
|
407
|
+
*
|
408
|
+
* (async () => {
|
409
|
+
* . const browser = await puppeteer.launch();
|
410
|
+
* . const page = await browser.newPage();
|
411
|
+
* . const watchDog = page.mainFrame().waitForFunction('window.innerWidth < 100');
|
412
|
+
* . page.setViewport({width: 50, height: 50});
|
413
|
+
* . await watchDog;
|
414
|
+
* . await browser.close();
|
415
|
+
* })();
|
416
|
+
* ```
|
417
|
+
*
|
418
|
+
* To pass arguments from Node.js to the predicate of `page.waitForFunction` function:
|
419
|
+
*
|
420
|
+
* ```ts
|
421
|
+
* const selector = '.foo';
|
422
|
+
* await frame.waitForFunction(
|
423
|
+
* selector => !!document.querySelector(selector),
|
424
|
+
* {}, // empty options object
|
425
|
+
* selector
|
426
|
+
* );
|
427
|
+
* ```
|
428
|
+
*
|
429
|
+
* @param pageFunction - the function to evaluate in the frame context.
|
430
|
+
* @param options - options to configure the polling method and timeout.
|
431
|
+
* @param args - arguments to pass to the `pageFunction`.
|
432
|
+
* @returns the promise which resolve when the `pageFunction` returns a truthy value.
|
433
|
+
*/
|
434
|
+
waitForFunction<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, options?: FrameWaitForFunctionOptions, ...args: Params): Promise<HandleFor<Awaited<ReturnType<Func>>>>;
|
435
|
+
/**
|
436
|
+
* @returns The full HTML contents of the frame, including the DOCTYPE.
|
437
|
+
*/
|
438
|
+
content(): Promise<string>;
|
439
|
+
/**
|
440
|
+
* Set the content of the frame.
|
441
|
+
*
|
442
|
+
* @param html - HTML markup to assign to the page.
|
443
|
+
* @param options - Options to configure how long before timing out and at
|
444
|
+
* what point to consider the content setting successful.
|
445
|
+
*/
|
446
|
+
setContent(html: string, options?: {
|
447
|
+
timeout?: number;
|
448
|
+
waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
|
449
|
+
}): Promise<void>;
|
450
|
+
/**
|
451
|
+
* @returns The frame's `name` attribute as specified in the tag.
|
452
|
+
*
|
453
|
+
* @remarks
|
454
|
+
* If the name is empty, it returns the `id` attribute instead.
|
455
|
+
*
|
456
|
+
* @remarks
|
457
|
+
* This value is calculated once when the frame is created, and will not
|
458
|
+
* update if the attribute is changed later.
|
459
|
+
*/
|
460
|
+
name(): string;
|
461
|
+
/**
|
462
|
+
* @returns The frame's URL.
|
463
|
+
*/
|
464
|
+
url(): string;
|
465
|
+
/**
|
466
|
+
* @returns The parent frame, if any. Detached and main frames return `null`.
|
467
|
+
*/
|
468
|
+
parentFrame(): Frame | null;
|
469
|
+
/**
|
470
|
+
* @returns An array of child frames.
|
471
|
+
*/
|
472
|
+
childFrames(): Frame[];
|
473
|
+
/**
|
474
|
+
* @returns `true` if the frame has been detached. Otherwise, `false`.
|
475
|
+
*/
|
476
|
+
isDetached(): boolean;
|
477
|
+
/**
|
478
|
+
* Adds a `<script>` tag into the page with the desired url or content.
|
479
|
+
*
|
480
|
+
* @param options - Options for the script.
|
481
|
+
* @returns a promise that resolves to the added tag when the script's
|
482
|
+
* `onload` event fires or when the script content was injected into the
|
483
|
+
* frame.
|
484
|
+
*/
|
485
|
+
addScriptTag(options: FrameAddScriptTagOptions): Promise<ElementHandle<HTMLScriptElement>>;
|
486
|
+
/**
|
487
|
+
* Adds a `<link rel="stylesheet">` tag into the page with the desired url or
|
488
|
+
* a `<style type="text/css">` tag with the content.
|
489
|
+
*
|
490
|
+
* @param options - Options for the style link.
|
491
|
+
* @returns a promise that resolves to the added tag when the stylesheets's
|
492
|
+
* `onload` event fires or when the CSS content was injected into the
|
493
|
+
* frame.
|
494
|
+
*/
|
495
|
+
addStyleTag(options: FrameAddStyleTagOptions): Promise<ElementHandle<HTMLStyleElement | HTMLLinkElement>>;
|
496
|
+
/**
|
497
|
+
* Clicks the first element found that matches `selector`.
|
498
|
+
*
|
499
|
+
* @remarks
|
500
|
+
* If `click()` triggers a navigation event and there's a separate
|
501
|
+
* `page.waitForNavigation()` promise to be resolved, you may end up with a
|
502
|
+
* race condition that yields unexpected results. The correct pattern for
|
503
|
+
* click and wait for navigation is the following:
|
504
|
+
*
|
505
|
+
* ```ts
|
506
|
+
* const [response] = await Promise.all([
|
507
|
+
* page.waitForNavigation(waitOptions),
|
508
|
+
* frame.click(selector, clickOptions),
|
509
|
+
* ]);
|
510
|
+
* ```
|
511
|
+
*
|
512
|
+
* @param selector - The selector to query for.
|
513
|
+
*/
|
514
|
+
click(selector: string, options?: {
|
515
|
+
delay?: number;
|
516
|
+
button?: MouseButton;
|
517
|
+
clickCount?: number;
|
518
|
+
}): Promise<void>;
|
519
|
+
/**
|
520
|
+
* Focuses the first element that matches the `selector`.
|
521
|
+
*
|
522
|
+
* @param selector - The selector to query for.
|
523
|
+
* @throws Throws if there's no element matching `selector`.
|
524
|
+
*/
|
525
|
+
focus(selector: string): Promise<void>;
|
526
|
+
/**
|
527
|
+
* Hovers the pointer over the center of the first element that matches the
|
528
|
+
* `selector`.
|
529
|
+
*
|
530
|
+
* @param selector - The selector to query for.
|
531
|
+
* @throws Throws if there's no element matching `selector`.
|
532
|
+
*/
|
533
|
+
hover(selector: string): Promise<void>;
|
534
|
+
/**
|
535
|
+
* Selects a set of value on the first `<select>` element that matches the
|
536
|
+
* `selector`.
|
537
|
+
*
|
538
|
+
* @example
|
539
|
+
*
|
540
|
+
* ```ts
|
541
|
+
* frame.select('select#colors', 'blue'); // single selection
|
542
|
+
* frame.select('select#colors', 'red', 'green', 'blue'); // multiple selections
|
543
|
+
* ```
|
544
|
+
*
|
545
|
+
* @param selector - The selector to query for.
|
546
|
+
* @param values - The array of values to select. If the `<select>` has the
|
547
|
+
* `multiple` attribute, all values are considered, otherwise only the first
|
548
|
+
* one is taken into account.
|
549
|
+
* @returns the list of values that were successfully selected.
|
550
|
+
* @throws Throws if there's no `<select>` matching `selector`.
|
551
|
+
*/
|
552
|
+
select(selector: string, ...values: string[]): Promise<string[]>;
|
553
|
+
/**
|
554
|
+
* Taps the first element that matches the `selector`.
|
555
|
+
*
|
556
|
+
* @param selector - The selector to query for.
|
557
|
+
* @throws Throws if there's no element matching `selector`.
|
558
|
+
*/
|
559
|
+
tap(selector: string): Promise<void>;
|
560
|
+
/**
|
561
|
+
* Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character
|
562
|
+
* in the text.
|
563
|
+
*
|
564
|
+
* @remarks
|
565
|
+
* To press a special key, like `Control` or `ArrowDown`, use
|
566
|
+
* {@link Keyboard.press}.
|
567
|
+
*
|
568
|
+
* @example
|
569
|
+
*
|
570
|
+
* ```ts
|
571
|
+
* await frame.type('#mytextarea', 'Hello'); // Types instantly
|
572
|
+
* await frame.type('#mytextarea', 'World', {delay: 100}); // Types slower, like a user
|
573
|
+
* ```
|
574
|
+
*
|
575
|
+
* @param selector - the selector for the element to type into. If there are
|
576
|
+
* multiple the first will be used.
|
577
|
+
* @param text - text to type into the element
|
578
|
+
* @param options - takes one option, `delay`, which sets the time to wait
|
579
|
+
* between key presses in milliseconds. Defaults to `0`.
|
580
|
+
*/
|
581
|
+
type(selector: string, text: string, options?: {
|
582
|
+
delay: number;
|
583
|
+
}): Promise<void>;
|
584
|
+
/**
|
585
|
+
* @deprecated Use `new Promise(r => setTimeout(r, milliseconds));`.
|
586
|
+
*
|
587
|
+
* Causes your script to wait for the given number of milliseconds.
|
588
|
+
*
|
589
|
+
* @remarks
|
590
|
+
* It's generally recommended to not wait for a number of seconds, but instead
|
591
|
+
* use {@link Frame.waitForSelector}, {@link Frame.waitForXPath} or
|
592
|
+
* {@link Frame.waitForFunction} to wait for exactly the conditions you want.
|
593
|
+
*
|
594
|
+
* @example
|
595
|
+
*
|
596
|
+
* Wait for 1 second:
|
597
|
+
*
|
598
|
+
* ```ts
|
599
|
+
* await frame.waitForTimeout(1000);
|
600
|
+
* ```
|
601
|
+
*
|
602
|
+
* @param milliseconds - the number of milliseconds to wait.
|
603
|
+
*/
|
604
|
+
waitForTimeout(milliseconds: number): Promise<void>;
|
605
|
+
/**
|
606
|
+
* @returns the frame's title.
|
607
|
+
*/
|
608
|
+
title(): Promise<string>;
|
609
|
+
/**
|
610
|
+
* @internal
|
611
|
+
*/
|
612
|
+
_navigated(framePayload: Protocol.Page.Frame): void;
|
613
|
+
/**
|
614
|
+
* @internal
|
615
|
+
*/
|
616
|
+
_navigatedWithinDocument(url: string): void;
|
617
|
+
/**
|
618
|
+
* @internal
|
619
|
+
*/
|
620
|
+
_onLifecycleEvent(loaderId: string, name: string): void;
|
621
|
+
/**
|
622
|
+
* @internal
|
623
|
+
*/
|
624
|
+
_onLoadingStopped(): void;
|
625
|
+
/**
|
626
|
+
* @internal
|
627
|
+
*/
|
628
|
+
_onLoadingStarted(): void;
|
629
|
+
/**
|
630
|
+
* @internal
|
631
|
+
*/
|
632
|
+
_detach(): void;
|
633
|
+
}
|
634
|
+
//# sourceMappingURL=Frame.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../../src/common/Frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAA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