目录

Test Kit

Change Type Old Version New Version d.ts File
API added NA

Class Name: global;

API declaration: declare enum WindowChangeType

Difference: declare enum WindowChangeType

api/@ohos.UiTest.d.ts
API added NA

Class Name: WindowChangeType;

API declaration: WINDOW_UNDEFINED = 0

Difference: WINDOW_UNDEFINED = 0

api/@ohos.UiTest.d.ts
API added NA

Class Name: WindowChangeType;

API declaration: WINDOW_ADDED = 1

Difference: WINDOW_ADDED = 1

api/@ohos.UiTest.d.ts
API added NA

Class Name: WindowChangeType;

API declaration: WINDOW_REMOVED = 2

Difference: WINDOW_REMOVED = 2

api/@ohos.UiTest.d.ts
API added NA

Class Name: WindowChangeType;

API declaration: WINDOW_BOUNDS_CHANGED = 3

Difference: WINDOW_BOUNDS_CHANGED = 3

api/@ohos.UiTest.d.ts
API added NA

Class Name: global;

API declaration: declare enum ComponentEventType

Difference: declare enum ComponentEventType

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventType;

API declaration: COMPONENT_UNDEFINED = 0

Difference: COMPONENT_UNDEFINED = 0

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventType;

API declaration: COMPONENT_CLICKED = 1

Difference: COMPONENT_CLICKED = 1

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventType;

API declaration: COMPONENT_LONG_CLICKED = 2

Difference: COMPONENT_LONG_CLICKED = 2

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventType;

API declaration: COMPONENT_SCROLL_START = 3

Difference: COMPONENT_SCROLL_START = 3

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventType;

API declaration: COMPONENT_SCROLL_END = 4

Difference: COMPONENT_SCROLL_END = 4

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventType;

API declaration: COMPONENT_TEXT_CHANGED = 5

Difference: COMPONENT_TEXT_CHANGED = 5

api/@ohos.UiTest.d.ts
API added NA

Class Name: global;

API declaration: declare interface WindowChangeOptions

Difference: declare interface WindowChangeOptions

api/@ohos.UiTest.d.ts
API added NA

Class Name: WindowChangeOptions;

API declaration: timeout?: number;

Difference: timeout?: number;

api/@ohos.UiTest.d.ts
API added NA

Class Name: WindowChangeOptions;

API declaration: bundleName?: string;

Difference: bundleName?: string;

api/@ohos.UiTest.d.ts
API added NA

Class Name: global;

API declaration: declare interface ComponentEventOptions

Difference: declare interface ComponentEventOptions

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventOptions;

API declaration: timeout?: number;

Difference: timeout?: number;

api/@ohos.UiTest.d.ts
API added NA

Class Name: ComponentEventOptions;

API declaration: on?: On;

Difference: on?: On;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIElementInfo;

API declaration: readonly windowChangeType?: WindowChangeType;

Difference: readonly windowChangeType?: WindowChangeType;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIElementInfo;

API declaration: readonly componentEventType?: ComponentEventType;

Difference: readonly componentEventType?: ComponentEventType;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIElementInfo;

API declaration: readonly windowId?: number;

Difference: readonly windowId?: number;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIElementInfo;

API declaration: readonly componentId?: string;

Difference: readonly componentId?: string;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIElementInfo;

API declaration: readonly componentRect?: Rect;

Difference: readonly componentRect?: Rect;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIEventObserver;

API declaration: once(type: 'windowChange', windowChangeType: WindowChangeType, options: WindowChangeOptions, callback: Callback<UIElementInfo>): void;

Difference: once(type: 'windowChange', windowChangeType: WindowChangeType, options: WindowChangeOptions, callback: Callback<UIElementInfo>): void;

api/@ohos.UiTest.d.ts
API added NA

Class Name: UIEventObserver;

API declaration: once(type: 'componentEventOccur', componentEventType: ComponentEventType, options: ComponentEventOptions, callback: Callback<UIElementInfo>): void;

Difference: once(type: 'componentEventOccur', componentEventType: ComponentEventType, options: ComponentEventOptions, callback: Callback<UIElementInfo>): void;

api/@ohos.UiTest.d.ts
API added NA

Class Name: Driver;

API declaration: isComponentPresentWhenLongClick(on: On, point: Point, duration?: number): Promise<boolean>;

Difference: isComponentPresentWhenLongClick(on: On, point: Point, duration?: number): Promise<boolean>;

api/@ohos.UiTest.d.ts
API added NA

Class Name: Driver;

API declaration: isComponentPresentWhenDrag(on: On, from: Point, to: Point, speed?: number, duration?: number): Promise<boolean>;

Difference: isComponentPresentWhenDrag(on: On, from: Point, to: Point, speed?: number, duration?: number): Promise<boolean>;

api/@ohos.UiTest.d.ts
API added NA

Class Name: Driver;

API declaration: isComponentPresentWhenSwipe(on: On, from: Point, to: Point, speed?: number): Promise<boolean>;

Difference: isComponentPresentWhenSwipe(on: On, from: Point, to: Point, speed?: number): Promise<boolean>;

api/@ohos.UiTest.d.ts
API added NA

Class Name: Driver;

API declaration: touchPadTwoFingersScroll(point: Point, direction: UiDirection, d: number, speed?: number): Promise<void>;

Difference: touchPadTwoFingersScroll(point: Point, direction: UiDirection, d: number, speed?: number): Promise<void>;

api/@ohos.UiTest.d.ts
API added NA

Class Name: Driver;

API declaration: knuckleKnock(pointers: Array<Point>, times: number): Promise<void>;

Difference: knuckleKnock(pointers: Array<Point>, times: number): Promise<void>;

api/@ohos.UiTest.d.ts
API added NA

Class Name: Driver;

API declaration: injectKnucklePointerAction(pointers: PointerMatrix, speed?: number): Promise<void>;

Difference: injectKnucklePointerAction(pointers: PointerMatrix, speed?: number): Promise<void>;

api/@ohos.UiTest.d.ts