@push.rocks/smartpuppeteer 2.5.0 → 2.7.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 +20 -2
- package/dist_ts/smartpuppeteer.classes.livebrowsersession.js +627 -170
- package/dist_ts/smartpuppeteer.interfaces.livebrowser.d.ts +2 -0
- package/package.json +2 -2
- package/readme.hints.md +4 -0
- package/readme.md +22 -5
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/smartpuppeteer.classes.livebrowsersession.ts +865 -174
- package/ts/smartpuppeteer.interfaces.livebrowser.ts +6 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartpuppeteer',
|
|
6
|
-
version: '2.
|
|
6
|
+
version: '2.7.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, 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';
|
|
1
|
+
import type { ILiveBrowserClickOptions, ILiveBrowserCreateTabOptions, ILiveBrowserEvaluateOptions, ILiveBrowserFillOptions, ILiveBrowserFrameAcknowledgement, ILiveBrowserFrameAcknowledgementRequest, ILiveBrowserFrameIdentity, ILiveBrowserInsertTextInput, ILiveBrowserKeyInput, ILiveBrowserMouseInput, ILiveBrowserNavigateOptions, ILiveBrowserNavigationOptions, ILiveBrowserObservation, ILiveBrowserObserveOptions, ILiveBrowserOperationOptions, ILiveBrowserPressOptions, ILiveBrowserProcessState, ILiveBrowserScreencastUpdateOptions, 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;
|
|
@@ -15,8 +15,14 @@ export declare class LiveBrowserSession {
|
|
|
15
15
|
private browserSecurityCdpSession?;
|
|
16
16
|
private browserSecurityConnection?;
|
|
17
17
|
private browserSecuritySessionAttachedListener?;
|
|
18
|
+
private browserSecurityOwnedSessionAttachedListener?;
|
|
18
19
|
private browserSecuritySessionDetachedListener?;
|
|
20
|
+
private browserSecurityWorkerLifecycleCdpSession?;
|
|
21
|
+
private browserSecurityWorkerVersionUpdatedListener?;
|
|
19
22
|
private readonly proxySecuritySessions;
|
|
23
|
+
private readonly ownedProxySecuritySessions;
|
|
24
|
+
private readonly browserSecurityParentOwnedSessions;
|
|
25
|
+
private readonly serviceWorkerTargetIdsByVersionId;
|
|
20
26
|
private readonly proxySecurityOperations;
|
|
21
27
|
private proxySecurityGeneration;
|
|
22
28
|
private proxySecurityStopping;
|
|
@@ -50,6 +56,9 @@ export declare class LiveBrowserSession {
|
|
|
50
56
|
stop(): Promise<void>;
|
|
51
57
|
acknowledgeFrame(acknowledgement: ILiveBrowserFrameAcknowledgementRequest): Promise<ILiveBrowserFrameAcknowledgement>;
|
|
52
58
|
refreshScreencast(operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserFrameIdentity>;
|
|
59
|
+
updateScreencastOptions(optionsArg: ILiveBrowserScreencastUpdateOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserFrameIdentity | null>;
|
|
60
|
+
private restartActiveScreencast;
|
|
61
|
+
private abandonScreencastRestart;
|
|
53
62
|
createTab(optionsArg?: ILiveBrowserCreateTabOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserTabState>;
|
|
54
63
|
activateTab(tabId: string, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
|
|
55
64
|
closeTab(tabId: string, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
|
|
@@ -62,6 +71,9 @@ export declare class LiveBrowserSession {
|
|
|
62
71
|
dispatchWheel(input: ILiveBrowserWheelInput): Promise<void>;
|
|
63
72
|
dispatchKey(input: ILiveBrowserKeyInput): Promise<void>;
|
|
64
73
|
insertText(input: ILiveBrowserInsertTextInput): Promise<void>;
|
|
74
|
+
private dispatchTabInput;
|
|
75
|
+
private pumpTabInput;
|
|
76
|
+
private performWheelDispatch;
|
|
65
77
|
captureSnapshot(optionsArg?: ILiveBrowserSnapshotOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserSnapshot>;
|
|
66
78
|
observe(optionsArg?: ILiveBrowserObserveOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserObservation>;
|
|
67
79
|
evaluate(expressionArg: string, optionsArg?: ILiveBrowserEvaluateOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<TLiveBrowserJsonValue>;
|
|
@@ -89,9 +101,16 @@ export declare class LiveBrowserSession {
|
|
|
89
101
|
private forceOwnedBrowserProcessGroup;
|
|
90
102
|
private stopInternal;
|
|
91
103
|
private configureBrowserSecurity;
|
|
104
|
+
private configureProxySecurityWorkerLifecycle;
|
|
92
105
|
private configureProxySecuritySession;
|
|
93
106
|
private verifyProxySecuritySessionDetached;
|
|
107
|
+
private waitForProxySecurityTargetCoverage;
|
|
94
108
|
private removeProxySecuritySession;
|
|
109
|
+
private detachOwnedProxySecuritySession;
|
|
110
|
+
private forgetOwnedProxySecuritySession;
|
|
111
|
+
private detachCdpSessionWithTimeout;
|
|
112
|
+
private retireOwnedProxySecuritySession;
|
|
113
|
+
private detachTrackedOwnedProxySecuritySession;
|
|
95
114
|
private allowOperationalCdpSessionDetach;
|
|
96
115
|
private trackProxySecurityOperation;
|
|
97
116
|
private handleProxySecurityFailure;
|
|
@@ -142,5 +161,4 @@ export declare class LiveBrowserSession {
|
|
|
142
161
|
private createEvaluationExpression;
|
|
143
162
|
private validateTimeout;
|
|
144
163
|
private validateWaitUntil;
|
|
145
|
-
private validateScreencastOptions;
|
|
146
164
|
}
|