UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

18 lines 864 B
import type { XCUITestDriver } from '../driver'; import type { SourceFormat } from './types'; /** * Retrieves the page source of the current application. * * @returns The page source as XML or HTML string */ export declare function getPageSource(this: XCUITestDriver): Promise<string>; /** * Retrieve the source tree of the current page in XML or JSON format. * * @param format - Page tree source representation format. * @param excludedAttributes - A comma-separated string of attribute names to exclude from the output. Only works if `format` is `xml`. * @privateRemarks Why isn't `excludedAttributes` an array? * @returns The source tree of the current page in the given format. */ export declare function mobileGetSource(this: XCUITestDriver, format?: SourceFormat, excludedAttributes?: string): Promise<string>; //# sourceMappingURL=source.d.ts.map