/// import AndroidHandler from './Handler'; import { ElementBounds } from '../types'; interface ElementOptions { device: AndroidHandler; bounds: ElementBounds; attributes: any; } export default class Element { device: AndroidHandler; bounds: ElementBounds; attributes: any; constructor(options: ElementOptions); /** * 获取元素边界 */ boundingBox(): Promise; /** * 获取元素属性 */ attribute(name: string): Promise; /** * 点击元素 */ tap(): Promise; /** * 输入文本 */ input(text: string, options?: { wait?: number; }): Promise; /** * 截图 */ screenshot(path?: string): Promise; } export {};