js-apidiff-unitest.md 1.4 KB
Newer Older
W
wusongqing 已提交
1
# JS API Changes of the Test Subsystem
W
wusongqing 已提交
2

W
wusongqing 已提交
3
The table below lists the APIs changes of the test subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.
W
wusongqing 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

## API Changes

| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.uitest | UiDriver | drag(startx: number, starty: number, endx: number, endy: number): Promise\<void>; | Added|
| ohos.uitest | UiDriver | waitForComponent(by: By, time: number): Promise\<UiComponent>; | Added|
| ohos.uitest | UiComponent | dragTo(target: UiComponent): Promise\<void>; | Added|
| ohos.uitest | UiComponent | getBounds(): Promise\<Rect>; | Added|
| ohos.uitest | UiComponent | scrollToBottom(): Promise\<void>; | Added|
| ohos.uitest | UiComponent | scrollToTop(): Promise\<void>; | Added|
| ohos.uitest | UiComponent | clearText(): Promise\<void>; | Added|
| ohos.uitest | UiComponent | isCheckable(): Promise\<bool>; | Added|
| ohos.uitest | UiComponent | isChecked(): Promise\<bool>; | Added|
| ohos.uitest | UiComponent | isLongClickable(): Promise\<bool>; | Added|
| ohos.uitest | By | checkable(b?: bool): By; | Added|
| ohos.uitest | By | checked(b?: bool): By; | Added|
| ohos.uitest | By | longClickable(b?: bool): By; | Added|
| ohos.uitest | Rect | readonly  bottomY: number; | Added|
| ohos.uitest | Rect | readonly  rightX: number; | Added|
| ohos.uitest | Rect | readonly  topY: number; | Added|
| ohos.uitest | Rect | readonly  leftX: number; | Added|