import { ElementCore } from './element-core'; import { ElementList, FindOptions } from './types'; /** * ElementFind - 查找方法 mixin * * 包含:findOne、findFirst、find、findAll、children、child、nth、parent、next、prev、locator */ export declare function ElementFind ElementCore>(Base: T): { new (...args: any[]): { /** * 在当前元素下查找唯一匹配的子元素(匹配多个时报错) */ findOne(xpath: string, options?: FindOptions, ...propNames: string[]): Promise; /** * 在当前元素下查找第一个匹配的子元素(多个匹配也不报错) */ findFirst(xpath: string, options?: FindOptions, ...propNames: string[]): Promise; /** * 在当前元素下查找第一个匹配的子元素(findFirst 的别名) */ find(xpath: string, options?: FindOptions, ...propNames: string[]): Promise; /** * 在当前元素下查找所有匹配的子元素 */ findAll(xpath: string, options?: FindOptions, ...propNames: string[]): Promise; /** * 在当前元素下查找第 N 个匹配的子元素(1-based) */ nth(xpath: string, n: number, ...propNames: string[]): Promise; /** * 在当前元素下查找子元素(findOne 的别名,与 Playwright 命名一致) */ locator(xpath: string, ...propNames: string[]): Promise; /** * 获取当前元素的直接子元素列表 */ children(xpath?: string, ...propNames: string[]): Promise; /** * 获取当前元素的直接子元素数量 */ childCount(...propNames: string[]): Promise; /** * 获取当前元素的指定索引子控件 */ child(index: number, ...propNames: string[]): Promise; /** * 获取当前元素的祖先元素(向上 N 层) */ parent(levelOrPropNames?: number | string, ...restPropNames: string[]): Promise; /** * 获取下一个兄弟元素 */ next(...propNames: string[]): Promise; /** * 获取上一个兄弟元素 */ prev(...propNames: string[]): Promise; readonly windowSelector: string; readonly findSelector: string; _client: import("./client").HttpClient; _info: import("./types").ElementInfo; _autoWaitConfig: import("./types").AutoWaitConfig; _logger: import("./logger").OperationLogger; _cacheTime: any; readonly selector: string; readonly foundElementCount: number; name(): Promise; text(): Promise; isEnabled(): Promise; isVisible(): Promise; isOffscreen(): Promise; get attrs(): import("./types").ElementInfo; attr(name: string): Promise; bounds(): Promise; boundingBox(): Promise; isCheckable(): Promise; isChecked(): Promise; isClickable(): Promise; isScrollable(): Promise; isSelected(): Promise; _maybeAutoWait(phase: string): Promise; toJSON(): { selector: string; window: string; findSelector: string; info: import("./types").ElementInfo; }; }; } & T;