mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-12-04 05:32:31 +00:00
commit
db48f80a7a
84
api/@ohos.UiTest.d.ts
vendored
84
api/@ohos.UiTest.d.ts
vendored
@ -1059,6 +1059,15 @@ declare interface Point {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
/**
|
||||
* Represents the rectangle area on the device screen.
|
||||
*
|
||||
* @typedef Rect
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
declare interface Rect {
|
||||
/**
|
||||
* The x-coordinate of the top left corner of the rectangle.
|
||||
@ -1075,6 +1084,15 @@ declare interface Rect {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
/**
|
||||
* The x-coordinate of the top left corner of the rectangle.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
readonly left: number;
|
||||
/**
|
||||
* The y-coordinate of the top left corner of the rectangle.
|
||||
@ -1091,6 +1109,15 @@ declare interface Rect {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
/**
|
||||
* The y-coordinate of the top left corner of the rectangle.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
readonly top: number;
|
||||
/**
|
||||
* The x-coordinate at the bottom right corner of the rectangle.
|
||||
@ -1107,6 +1134,15 @@ declare interface Rect {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
/**
|
||||
* The x-coordinate at the bottom right corner of the rectangle.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
readonly right: number;
|
||||
/**
|
||||
* The y-coordinate at the bottom right corner of the rectangle.
|
||||
@ -1123,6 +1159,15 @@ declare interface Rect {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
/**
|
||||
* The y-coordinate at the bottom right corner of the rectangle.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
readonly bottom: number;
|
||||
}
|
||||
|
||||
@ -1516,6 +1561,14 @@ declare enum MouseButton {
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
/**
|
||||
* Describes the attribute requirements for the target Components.
|
||||
*
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
declare class On {
|
||||
/**
|
||||
* Specifies the text for the target Component.
|
||||
@ -2036,6 +2089,15 @@ declare class On {
|
||||
* @since 11
|
||||
* @test
|
||||
*/
|
||||
/**
|
||||
* Represents an Component of the ohos application,user can perform operations or query attributes on it.
|
||||
*
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @test
|
||||
*/
|
||||
declare class Component {
|
||||
/**
|
||||
* Click this {@link Component}.
|
||||
@ -2747,6 +2809,18 @@ declare class Component {
|
||||
* @since 11
|
||||
* @test
|
||||
*/
|
||||
/**
|
||||
* Get the bounds rect of this {@link Component}.
|
||||
*
|
||||
* @returns { Promise<Rect> } the bounds rect object.
|
||||
* @throws { BusinessError } 17000002 - if the async function was not called with await.
|
||||
* @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @test
|
||||
*/
|
||||
getBounds(): Promise<Rect>;
|
||||
|
||||
/**
|
||||
@ -2898,6 +2972,16 @@ declare class Component {
|
||||
* @since 11
|
||||
* @test
|
||||
*/
|
||||
/**
|
||||
* The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform
|
||||
* coordinates-based UI actions,capture screen and so on.
|
||||
*
|
||||
* @syscap SystemCapability.Test.UiTest
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @test
|
||||
*/
|
||||
declare class Driver {
|
||||
/**
|
||||
* Create an {@link Driver} object.
|
||||
|
Loading…
Reference in New Issue
Block a user