UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

29 lines 2.34 kB
import type { Element } from '@appium/types'; import type { XCUITestDriver } from '../driver'; /** * Finds elements, delegating to web or native based on context. */ export declare function findElOrEls(this: XCUITestDriver, strategy: string, selector: string, mult: true, context?: any): Promise<Element[]>; export declare function findElOrEls(this: XCUITestDriver, strategy: string, selector: string, mult: false, context?: any): Promise<Element>; export declare function findElOrEls(this: XCUITestDriver, strategy: string, selector: string, mult: boolean, context?: any): Promise<Element | Element[]>; export declare function findElOrEls(this: XCUITestDriver, strategy: string, selector: string, mult: boolean, context?: any): Promise<Element | Element[]>; /** * Finds elements natively with strategy/selector rewriting for WDA. */ export declare function findNativeElementOrElements(this: XCUITestDriver, strategy: string, selector: string, mult: true, context?: any): Promise<Element[]>; export declare function findNativeElementOrElements(this: XCUITestDriver, strategy: string, selector: string, mult: false, context?: any): Promise<Element>; export declare function findNativeElementOrElements(this: XCUITestDriver, strategy: string, selector: string, mult: boolean, context?: any): Promise<Element | Element[]>; /** * Finds elements natively and returns either a single element or an array depending on `mult`. * * Returns an array when `mult` is true; otherwise returns a single element. */ export declare function doNativeFind(this: XCUITestDriver, strategy: string, selector: string, mult: true, context?: any): Promise<Element[]>; export declare function doNativeFind(this: XCUITestDriver, strategy: string, selector: string, mult: false, context?: any): Promise<Element>; export declare function doNativeFind(this: XCUITestDriver, strategy: string, selector: string, mult: boolean, context?: any): Promise<Element | Element[]>; export declare function doNativeFind(this: XCUITestDriver, strategy: string, selector: string, mult: boolean, context?: any): Promise<Element | Element[]>; /** * Finds the first visible child element inside a context. */ export declare function getFirstVisibleChild(this: XCUITestDriver, mult: boolean, context: Element | string | null): Promise<Element>; //# sourceMappingURL=find.d.ts.map