harmony(鸿蒙)JS API Changes of the Test Subsystem

  • 2022-10-28
  • 浏览 (538)

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

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)JS API Changes of the Ability Framework

harmony(鸿蒙)JS API Changes of the ArkUI Development Framework

harmony(鸿蒙)JS API Changes of the Power Management Subsystem

harmony(鸿蒙)JS API Changes of the Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the DFX Subsystem

harmony(鸿蒙)JS API Changes of the Distributed Data Management Subsystem

harmony(鸿蒙)JS API Changes of the Common Event and Notification Subsystem

harmony(鸿蒙)JS API Changes of the File Management Subsystem

0  赞