@push.rocks/smartpuppeteer 2.4.0 → 2.5.0
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/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/smartpuppeteer.classes.livebrowsersession.d.ts +8 -1
- package/dist_ts/smartpuppeteer.classes.livebrowsersession.js +260 -48
- package/dist_ts/smartpuppeteer.interfaces.livebrowser.d.ts +8 -5
- package/package.json +1 -1
- package/readme.hints.md +1 -0
- package/readme.md +4 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/smartpuppeteer.classes.livebrowsersession.ts +331 -62
- package/ts/smartpuppeteer.interfaces.livebrowser.ts +9 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartpuppeteer',
|
|
6
|
-
version: '2.
|
|
6
|
+
version: '2.5.0',
|
|
7
7
|
description: 'Provides simplified access to Puppeteer for automation and testing purposes.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSw0QkFBNEI7SUFDbEMsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDhFQUE4RTtDQUM1RixDQUFBIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ILiveBrowserClickOptions, ILiveBrowserCreateTabOptions, ILiveBrowserEvaluateOptions, ILiveBrowserFillOptions, ILiveBrowserFrameAcknowledgement, ILiveBrowserFrameAcknowledgementRequest, ILiveBrowserInsertTextInput, ILiveBrowserKeyInput, ILiveBrowserMouseInput, ILiveBrowserNavigateOptions, ILiveBrowserNavigationOptions, ILiveBrowserObservation, ILiveBrowserObserveOptions, ILiveBrowserOperationOptions, ILiveBrowserPressOptions, ILiveBrowserProcessState, ILiveBrowserSessionOptions, ILiveBrowserSnapshot, ILiveBrowserSnapshotOptions, ILiveBrowserState, ILiveBrowserTabState, ILiveBrowserTerminationOptions, ILiveBrowserTerminationResult, ILiveBrowserViewport, ILiveBrowserWheelInput, TLiveBrowserEventListener, TLiveBrowserJsonValue } from './smartpuppeteer.interfaces.livebrowser.js';
|
|
1
|
+
import type { ILiveBrowserClickOptions, ILiveBrowserCreateTabOptions, ILiveBrowserEvaluateOptions, ILiveBrowserFillOptions, ILiveBrowserFrameAcknowledgement, ILiveBrowserFrameAcknowledgementRequest, ILiveBrowserFrameIdentity, ILiveBrowserInsertTextInput, ILiveBrowserKeyInput, ILiveBrowserMouseInput, ILiveBrowserNavigateOptions, ILiveBrowserNavigationOptions, ILiveBrowserObservation, ILiveBrowserObserveOptions, ILiveBrowserOperationOptions, ILiveBrowserPressOptions, ILiveBrowserProcessState, ILiveBrowserSessionOptions, ILiveBrowserSnapshot, ILiveBrowserSnapshotOptions, ILiveBrowserState, ILiveBrowserTabState, ILiveBrowserTerminationOptions, ILiveBrowserTerminationResult, ILiveBrowserViewport, ILiveBrowserWheelInput, TLiveBrowserEventListener, TLiveBrowserJsonValue } from './smartpuppeteer.interfaces.livebrowser.js';
|
|
2
2
|
export declare class LiveBrowserSession {
|
|
3
3
|
private readonly options;
|
|
4
4
|
private readonly eventListeners;
|
|
@@ -49,6 +49,7 @@ export declare class LiveBrowserSession {
|
|
|
49
49
|
start(operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
|
|
50
50
|
stop(): Promise<void>;
|
|
51
51
|
acknowledgeFrame(acknowledgement: ILiveBrowserFrameAcknowledgementRequest): Promise<ILiveBrowserFrameAcknowledgement>;
|
|
52
|
+
refreshScreencast(operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserFrameIdentity>;
|
|
52
53
|
createTab(optionsArg?: ILiveBrowserCreateTabOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserTabState>;
|
|
53
54
|
activateTab(tabId: string, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
|
|
54
55
|
closeTab(tabId: string, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
|
|
@@ -115,6 +116,12 @@ export declare class LiveBrowserSession {
|
|
|
115
116
|
private createPuppeteerNavigationOptions;
|
|
116
117
|
private refreshTab;
|
|
117
118
|
private startScreencast;
|
|
119
|
+
private canRestoreScreencast;
|
|
120
|
+
private createScreencastAuthority;
|
|
121
|
+
private assertScreencastAuthority;
|
|
122
|
+
private waitForScreencastAuthority;
|
|
123
|
+
private invalidateScreencast;
|
|
124
|
+
private waitForScreencastFrame;
|
|
118
125
|
private stopScreencast;
|
|
119
126
|
private handleScreencastFrame;
|
|
120
127
|
private acknowledgeCdpFrame;
|