UNPKG

@lidofinance/browser-service

Version:

This package provides the BrowserService class for initializing and managing a Playwright browser context, network configurations, and wallets (EOA or WalletConnect). It facilitates automated testing of interactions with Web3 wallets (e.g., Metamask) and

41 lines 1.18 kB
import { BrowserContext } from '@playwright/test'; export type BrowserOptions = { locale?: string; reducedMotion?: null | 'reduce' | 'no-preference'; headless?: boolean; slowMo?: number; args?: string[]; permissions?: string[]; httpCredentials?: { username: string; password: string; }; cookies?: ReadonlyArray<{ name: string; value: string; url?: string; domain?: string; path?: string; expires?: number; httpOnly?: boolean; secure?: boolean; }>; }; type OptionsBrowserContext = { contextDataDir: string; browserOptions?: BrowserOptions; }; export declare class BrowserContextService { walletExtensionStartPath: string; options: OptionsBrowserContext; browserContext: BrowserContext; defaultBrowserOptions: BrowserOptions; browserContextPaths: string[]; extensionId: string; private readonly logger; constructor(walletExtensionStartPath: string, options: OptionsBrowserContext); initBrowserContext(): Promise<void>; closePages(): Promise<void>; } export {}; //# sourceMappingURL=browser.context.service.d.ts.map