UNPKG

webdriver

Version:

A Node.js bindings implementation for the W3C WebDriver and WebDriver Bidi protocols

23 lines • 975 B
import { type Dispatcher } from 'undici'; import { WebDriverRequest } from './request.js'; import type { RequestOptions } from './types.js'; export declare const SESSION_DISPATCHERS: Map<string, Dispatcher>; /** * Node implementation of WebDriverRequest using undici fetch */ export declare class FetchRequest extends WebDriverRequest { fetch(url: URL, opts: RequestInit): Promise<Response>; makeRequest(options: RequestOptions, sessionId?: string): Promise<import("./types.js").WebDriverResponse<unknown>>; /** * regex should only target the delete session request, not other * delete requests, full list: https://www.w3.org/TR/webdriver2/#endpoints */ private getDeletedSessionId; private getDispatcher; private cleanupSessionDispatcher; createOptions(options: RequestOptions, sessionId?: string, isBrowser?: boolean): Promise<{ url: URL; requestOptions: RequestInit; }>; } //# sourceMappingURL=node.d.ts.map