@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
17 lines • 675 B
TypeScript
import 'webdriverio';
import { RootLocator } from '@serenity-js/web';
/**
* WebdriverIO-specific implementation of [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/).
*
* @group Models
*/
export declare class WebdriverIORootLocator extends RootLocator<WebdriverIO.Element> {
private readonly browser;
constructor(browser: WebdriverIO.Browser);
isPresent(): Promise<boolean>;
nativeElement(): Promise<Pick<WebdriverIO.Browser, '$' | '$$'>>;
switchToFrame(frame: WebdriverIO.Element): Promise<void>;
switchToParentFrame(): Promise<void>;
switchToMainFrame(): Promise<void>;
}
//# sourceMappingURL=WebdriverIORootLocator.d.ts.map