@grasplabs/grasp
Version:
TypeScript SDK for browser automation and secure command execution in highly available and scalable cloud browser environments
38 lines • 1.42 kB
TypeScript
import { ICDPConnection } from '../services/browser.service';
import { GraspSession } from './session';
export declare class GraspBrowser {
private connection;
private session;
private logger;
constructor(connection: ICDPConnection, session: GraspSession);
/**
* Gets or creates a default logger instance
* @returns Logger instance
*/
private getDefaultLogger;
getHost(): string;
getEndpoint(): string;
/**
* @experimental This method is experimental and may change or be removed in future versions.
* Use with caution in production environments.
*
* @param localPath Local path to save the video
*/
downloadReplayVideo(localPath: string): Promise<void>;
/**
* @experimental This method is experimental and may change or be removed in future versions.
* Use with caution in production environments.
*/
getCurrentPageTargetInfo(): Promise<any>;
/**
* @experimental This method is experimental and may change or be removed in future versions.
* Use with caution in production environments.
*/
getLiveviewStreamingUrl(): Promise<string | null>;
/**
* @experimental This method is experimental and may change or be removed in future versions.
* Use with caution in production environments.
*/
getLiveviewPageUrl(): Promise<string | null>;
}
//# sourceMappingURL=browser.d.ts.map