import { Element, SerializableOrElement, WaitForOptions, WindowRectangle } from '@utam/core'; import { Driver, DriverConfig, Locator, MobileContextType } from 'utam'; export declare class DriverWdioAdapter implements Driver { config: DriverConfig; browser: WebdriverIO.Browser; constructor(browser: WebdriverIO.Browser, config: DriverConfig); /** * transforms wdio element into adapter. should override for other adapters * @param element wdio element * @returns new element object */ protected __supplier__(element: WebdriverIO.Element): Element; executeScript(script: string | ((...args: unknown[]) => T), ...args: unknown[]): Promise; findElement(locator: Locator): Promise; findElements(locator: Locator): Promise; waitFor(condition: Promise | ((...args: SerializableOrElement[]) => T | Promise), options?: WaitForOptions, ...args: SerializableOrElement[]): Promise; /** * Retrieves the document URL. * * @returns A Promise that resolves to the URL. */ getUrl(): Promise; enterFrame(element: Element): Promise; exitToParentFrame(): Promise; exitFrame(): Promise; /** * Navigate backward in the current browsing context * @see https://www.w3.org/TR/webdriver2/#back * @see https://webdriver.io/docs/api/webdriver/#back */ back(): Promise; /** * Navigate forward in the current browsing context * @see https://www.w3.org/TR/webdriver2/#forward * @see https://webdriver.io/docs/api/webdriver/#forward */ forward(): Promise; /** * Retrieves the current window handle. * * @returns A Promise that resolves to the current window handle */ getWindowHandle(): Promise; /** * Retrieves all window handles. * * @returns A Promise that resolves to a Set of window handles */ getWindowHandles(): Promise>; /** * Switches to the specified window. * * @param windowHandle - The window handle of the target window * @returns A Promise that resolves when the window has been successfully switched to */ switchTo(windowHandle: string): Promise; /** * Retrieves the rectangle of the current window. * * @returns A Promise that resolves to a {@link WindowRectangle} object representing the current window's rectangle */ getRect(): Promise; /** * Sets the rectangle of the current window. * * @param rect - A {@link WindowRectangle} object representing the new window rectangle * @returns A Promise that resolves when the window's rectangle has been successfully updated */ setRect(rect: WindowRectangle): Promise; /** * Closes the current window. * * @returns A Promise that resolves when the window has been successfully closed */ close(): Promise; press(key: string, options?: { text?: string; }): Promise; setPageContextToNative(): Promise; setPageContextToWebView(title: string): Promise; isNativeContext(): Promise; getPageContext(): Promise; setPageContext(contextType: MobileContextType): Promise; }