开源鸿蒙 JS API Changes of the Test Subsystem

  • 2022-08-09
  • 浏览 (395)

JS API Changes of the Test Subsystem

The table below lists the APIs changes of the test subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.

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

你可能感兴趣的文章

开源鸿蒙 JS API Changes of the Ability Framework

开源鸿蒙 JS API Changes of the ArkUI Development Framework

开源鸿蒙 JS API Changes of the Power Management Subsystem

开源鸿蒙 JS API Changes of the Bundle Management Framework

开源鸿蒙 JS API Changes of the Communication Subsystem

开源鸿蒙 JS API Changes of the DFX Subsystem

开源鸿蒙 JS API Changes of the Distributed Data Management Subsystem

开源鸿蒙 JS API Changes of the Distributed Scheduler Subsystem

开源鸿蒙 JS API Changes of the Common Event and Notification Subsystem

开源鸿蒙 JS API Changes of the File Management Subsystem

0  赞