UNPKG

@serenity-js/webdriverio

Version:

Adapter that integrates @serenity-js/web with the latest stable version of WebdriverIO, enabling Serenity/JS reporting and using the Screenplay Pattern to write web and mobile test scenarios

9 lines 577 B
import type { WebdriverProtocolErrorCode } from './WebdriverProtocolErrorCode.js'; export declare class WebdriverIOErrorHandler { private readonly handlers; constructor(handlers?: Map<WebdriverProtocolErrorCode, (error: Error) => Promise<void> | void>); executeIfHandled<T>(error: Error, action: () => Promise<T> | T): Promise<T>; setHandlerFor(errorType: WebdriverProtocolErrorCode, handler: (error: Error) => Promise<void> | void): void; unsetHandlerFor(errorType: WebdriverProtocolErrorCode): void; } //# sourceMappingURL=WebdriverIOErrorHandler.d.ts.map