161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License,Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *   http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing,software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "ASIS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit TestKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport { Callback } from './@ohos.base';
2261847f8eSopenharmony_ci
2361847f8eSopenharmony_ci/**
2461847f8eSopenharmony_ci * Enumerates the string value match pattern.
2561847f8eSopenharmony_ci *
2661847f8eSopenharmony_ci * @enum {number}
2761847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
2861847f8eSopenharmony_ci * @since 8
2961847f8eSopenharmony_ci */
3061847f8eSopenharmony_ci/**
3161847f8eSopenharmony_ci * Enumerates the string value match pattern.
3261847f8eSopenharmony_ci *
3361847f8eSopenharmony_ci * @enum {number}
3461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
3561847f8eSopenharmony_ci * @crossplatform
3661847f8eSopenharmony_ci * @since 10
3761847f8eSopenharmony_ci */
3861847f8eSopenharmony_ci/**
3961847f8eSopenharmony_ci * Enumerates the string value match pattern.
4061847f8eSopenharmony_ci *
4161847f8eSopenharmony_ci * @enum {number}
4261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
4361847f8eSopenharmony_ci * @crossplatform
4461847f8eSopenharmony_ci * @atomicservice
4561847f8eSopenharmony_ci * @since 11
4661847f8eSopenharmony_ci */
4761847f8eSopenharmony_cideclare enum MatchPattern {
4861847f8eSopenharmony_ci  /**
4961847f8eSopenharmony_ci   * Equals to a string.
5061847f8eSopenharmony_ci   *
5161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
5261847f8eSopenharmony_ci   * @since 8
5361847f8eSopenharmony_ci   * @test
5461847f8eSopenharmony_ci   */
5561847f8eSopenharmony_ci  /**
5661847f8eSopenharmony_ci   * Equals to a string.
5761847f8eSopenharmony_ci   *
5861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
5961847f8eSopenharmony_ci   * @crossplatform
6061847f8eSopenharmony_ci   * @since 10
6161847f8eSopenharmony_ci   * @test
6261847f8eSopenharmony_ci   */
6361847f8eSopenharmony_ci  /**
6461847f8eSopenharmony_ci   * Equals to a string.
6561847f8eSopenharmony_ci   *
6661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
6761847f8eSopenharmony_ci   * @crossplatform
6861847f8eSopenharmony_ci   * @atomicservice
6961847f8eSopenharmony_ci   * @since 11
7061847f8eSopenharmony_ci   * @test
7161847f8eSopenharmony_ci   */
7261847f8eSopenharmony_ci  EQUALS = 0,
7361847f8eSopenharmony_ci  /**
7461847f8eSopenharmony_ci   * Contains a substring.
7561847f8eSopenharmony_ci   *
7661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
7761847f8eSopenharmony_ci   * @since 8
7861847f8eSopenharmony_ci   * @test
7961847f8eSopenharmony_ci   */
8061847f8eSopenharmony_ci  /**
8161847f8eSopenharmony_ci   * Contains a substring.
8261847f8eSopenharmony_ci   *
8361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
8461847f8eSopenharmony_ci   * @crossplatform
8561847f8eSopenharmony_ci   * @since 10
8661847f8eSopenharmony_ci   * @test
8761847f8eSopenharmony_ci   */
8861847f8eSopenharmony_ci  /**
8961847f8eSopenharmony_ci   * Contains a substring.
9061847f8eSopenharmony_ci   *
9161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
9261847f8eSopenharmony_ci   * @crossplatform
9361847f8eSopenharmony_ci   * @atomicservice
9461847f8eSopenharmony_ci   * @since 11
9561847f8eSopenharmony_ci   * @test
9661847f8eSopenharmony_ci   */
9761847f8eSopenharmony_ci  CONTAINS = 1,
9861847f8eSopenharmony_ci  /**
9961847f8eSopenharmony_ci   * StartsWith a substring.
10061847f8eSopenharmony_ci   *
10161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
10261847f8eSopenharmony_ci   * @since 8
10361847f8eSopenharmony_ci   * @test
10461847f8eSopenharmony_ci   */
10561847f8eSopenharmony_ci  /**
10661847f8eSopenharmony_ci   * StartsWith a substring.
10761847f8eSopenharmony_ci   *
10861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
10961847f8eSopenharmony_ci   * @crossplatform
11061847f8eSopenharmony_ci   * @since 10
11161847f8eSopenharmony_ci   * @test
11261847f8eSopenharmony_ci   */
11361847f8eSopenharmony_ci  /**
11461847f8eSopenharmony_ci   * StartsWith a substring.
11561847f8eSopenharmony_ci   *
11661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
11761847f8eSopenharmony_ci   * @crossplatform
11861847f8eSopenharmony_ci   * @atomicservice
11961847f8eSopenharmony_ci   * @since 11
12061847f8eSopenharmony_ci   * @test
12161847f8eSopenharmony_ci   */
12261847f8eSopenharmony_ci  STARTS_WITH = 2,
12361847f8eSopenharmony_ci  /**
12461847f8eSopenharmony_ci   * EndsWith a substring.
12561847f8eSopenharmony_ci   *
12661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
12761847f8eSopenharmony_ci   * @since 8
12861847f8eSopenharmony_ci   * @test
12961847f8eSopenharmony_ci   */
13061847f8eSopenharmony_ci  /**
13161847f8eSopenharmony_ci   * EndsWith a substring.
13261847f8eSopenharmony_ci   *
13361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
13461847f8eSopenharmony_ci   * @crossplatform
13561847f8eSopenharmony_ci   * @since 10
13661847f8eSopenharmony_ci   * @test
13761847f8eSopenharmony_ci   */
13861847f8eSopenharmony_ci  /**
13961847f8eSopenharmony_ci   * EndsWith a substring.
14061847f8eSopenharmony_ci   *
14161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
14261847f8eSopenharmony_ci   * @crossplatform
14361847f8eSopenharmony_ci   * @atomicservice
14461847f8eSopenharmony_ci   * @since 11
14561847f8eSopenharmony_ci   * @test
14661847f8eSopenharmony_ci   */
14761847f8eSopenharmony_ci  ENDS_WITH = 3
14861847f8eSopenharmony_ci}
14961847f8eSopenharmony_ci
15061847f8eSopenharmony_ci/**
15161847f8eSopenharmony_ci * Describes the attribute requirements for the target UiComponents.
15261847f8eSopenharmony_ci *
15361847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
15461847f8eSopenharmony_ci * @since 8
15561847f8eSopenharmony_ci * @deprecated since 9
15661847f8eSopenharmony_ci * @useinstead ohos.UiTest.On
15761847f8eSopenharmony_ci */
15861847f8eSopenharmony_cideclare class By {
15961847f8eSopenharmony_ci  /**
16061847f8eSopenharmony_ci   * Specifies the text for the target UiComponent.
16161847f8eSopenharmony_ci   *
16261847f8eSopenharmony_ci   * @param { string } txt The text value.
16361847f8eSopenharmony_ci   * @param { MatchPattern } pattern The {@link MatchPattern} of the text value,default to {@link MatchPattern.EQUALS}
16461847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
16561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
16661847f8eSopenharmony_ci   * @since 8
16761847f8eSopenharmony_ci   * @deprecated since 9
16861847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#text
16961847f8eSopenharmony_ci   * @test
17061847f8eSopenharmony_ci   */
17161847f8eSopenharmony_ci  text(txt: string, pattern?: MatchPattern): By;
17261847f8eSopenharmony_ci
17361847f8eSopenharmony_ci  /**
17461847f8eSopenharmony_ci   * Specifies the inspector key of the target UiComponent.
17561847f8eSopenharmony_ci   *
17661847f8eSopenharmony_ci   * @param { string } key The inspectorKey value.
17761847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
17861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
17961847f8eSopenharmony_ci   * @since 8
18061847f8eSopenharmony_ci   * @deprecated since 9
18161847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#id
18261847f8eSopenharmony_ci   * @test
18361847f8eSopenharmony_ci   */
18461847f8eSopenharmony_ci  key(key: string): By;
18561847f8eSopenharmony_ci
18661847f8eSopenharmony_ci  /**
18761847f8eSopenharmony_ci   * Specifies the id of the target UiComponent.
18861847f8eSopenharmony_ci   *
18961847f8eSopenharmony_ci   * @param { number } id The id value.
19061847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
19161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
19261847f8eSopenharmony_ci   * @since 8
19361847f8eSopenharmony_ci   * @deprecated since 9
19461847f8eSopenharmony_ci   * @test
19561847f8eSopenharmony_ci   */
19661847f8eSopenharmony_ci  id(id: number): By;
19761847f8eSopenharmony_ci
19861847f8eSopenharmony_ci  /**
19961847f8eSopenharmony_ci   * Specifies the type of the target UiComponent.
20061847f8eSopenharmony_ci   *
20161847f8eSopenharmony_ci   * @param { string } tp The type value.
20261847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
20361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
20461847f8eSopenharmony_ci   * @since 8
20561847f8eSopenharmony_ci   * @deprecated since 9
20661847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#type
20761847f8eSopenharmony_ci   * @test
20861847f8eSopenharmony_ci   */
20961847f8eSopenharmony_ci  type(tp: string): By;
21061847f8eSopenharmony_ci
21161847f8eSopenharmony_ci  /**
21261847f8eSopenharmony_ci   * Specifies the clickable status of the target UiComponent.
21361847f8eSopenharmony_ci   *
21461847f8eSopenharmony_ci   * @param { boolean } b The clickable status,default to true.
21561847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
21661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
21761847f8eSopenharmony_ci   * @since 8
21861847f8eSopenharmony_ci   * @deprecated since 9
21961847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#clickable
22061847f8eSopenharmony_ci   * @test
22161847f8eSopenharmony_ci   */
22261847f8eSopenharmony_ci  clickable(b?: boolean): By;
22361847f8eSopenharmony_ci
22461847f8eSopenharmony_ci  /**
22561847f8eSopenharmony_ci   * Specifies the scrollable status of the target UiComponent.
22661847f8eSopenharmony_ci   *
22761847f8eSopenharmony_ci   * @param { boolean } b The scrollable status,default to true.
22861847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
22961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
23061847f8eSopenharmony_ci   * @since 8
23161847f8eSopenharmony_ci   * @deprecated since 9
23261847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#scrollable
23361847f8eSopenharmony_ci   * @test
23461847f8eSopenharmony_ci   */
23561847f8eSopenharmony_ci  scrollable(b?: boolean): By;
23661847f8eSopenharmony_ci
23761847f8eSopenharmony_ci  /**
23861847f8eSopenharmony_ci   * Specifies the enabled status of the target UiComponent.
23961847f8eSopenharmony_ci   *
24061847f8eSopenharmony_ci   * @param { boolean } b The enabled status,default to true.
24161847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
24261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
24361847f8eSopenharmony_ci   * @since 8
24461847f8eSopenharmony_ci   * @deprecated since 9
24561847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#enabled
24661847f8eSopenharmony_ci   * @test
24761847f8eSopenharmony_ci   */
24861847f8eSopenharmony_ci  enabled(b?: boolean): By;
24961847f8eSopenharmony_ci
25061847f8eSopenharmony_ci  /**
25161847f8eSopenharmony_ci   * Specifies the focused status of the target UiComponent.
25261847f8eSopenharmony_ci   *
25361847f8eSopenharmony_ci   * @param { boolean } b The focused status,default to true.
25461847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
25561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
25661847f8eSopenharmony_ci   * @since 8
25761847f8eSopenharmony_ci   * @deprecated since 9
25861847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#focused
25961847f8eSopenharmony_ci   * @test
26061847f8eSopenharmony_ci   */
26161847f8eSopenharmony_ci  focused(b?: boolean): By;
26261847f8eSopenharmony_ci
26361847f8eSopenharmony_ci  /**
26461847f8eSopenharmony_ci   * Specifies the selected status of the target UiComponent.
26561847f8eSopenharmony_ci   *
26661847f8eSopenharmony_ci   * @param { boolean } b The selected status,default to true.
26761847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
26861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
26961847f8eSopenharmony_ci   * @since 8
27061847f8eSopenharmony_ci   * @deprecated since 9
27161847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#selected
27261847f8eSopenharmony_ci   * @test
27361847f8eSopenharmony_ci   */
27461847f8eSopenharmony_ci  selected(b?: boolean): By;
27561847f8eSopenharmony_ci
27661847f8eSopenharmony_ci  /**
27761847f8eSopenharmony_ci   * Requires the target UiComponent which is before another UiComponent that specified by the given {@link By}
27861847f8eSopenharmony_ci   * object,used to locate UiComponent relatively.
27961847f8eSopenharmony_ci   *
28061847f8eSopenharmony_ci   * @param { By } by Describes the attribute requirements of UiComponent which the target one is in front of.
28161847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
28261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
28361847f8eSopenharmony_ci   * @since 8
28461847f8eSopenharmony_ci   * @deprecated since 9
28561847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#isBefore
28661847f8eSopenharmony_ci   * @test
28761847f8eSopenharmony_ci   */
28861847f8eSopenharmony_ci  isBefore(by: By): By;
28961847f8eSopenharmony_ci
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * Requires the target UiComponent which is after another UiComponent that specified by the given {@link By}
29261847f8eSopenharmony_ci   * object,used to locate UiComponent relatively.
29361847f8eSopenharmony_ci   *
29461847f8eSopenharmony_ci   * @param { By } by Describes the attribute requirements of UiComponent which the target one is in back of.
29561847f8eSopenharmony_ci   * @returns { By } this {@link By} object.
29661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
29761847f8eSopenharmony_ci   * @since 8
29861847f8eSopenharmony_ci   * @deprecated since 9
29961847f8eSopenharmony_ci   * @useinstead ohos.UiTest.On#isAfter
30061847f8eSopenharmony_ci   * @test
30161847f8eSopenharmony_ci   */
30261847f8eSopenharmony_ci  isAfter(by: By): By;
30361847f8eSopenharmony_ci}
30461847f8eSopenharmony_ci
30561847f8eSopenharmony_ci/**
30661847f8eSopenharmony_ci * Represents a UiComponent of the ohos application,user can perform operations or query attributes on it.
30761847f8eSopenharmony_ci *
30861847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
30961847f8eSopenharmony_ci * @since 8
31061847f8eSopenharmony_ci * @deprecated since 9
31161847f8eSopenharmony_ci * @useinstead ohos.uitest.Component
31261847f8eSopenharmony_ci * @test
31361847f8eSopenharmony_ci */
31461847f8eSopenharmony_cideclare class UiComponent {
31561847f8eSopenharmony_ci  /**
31661847f8eSopenharmony_ci   * Click this {@link UiComponent}.
31761847f8eSopenharmony_ci   *
31861847f8eSopenharmony_ci   * @returns { Promise<void> }
31961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
32061847f8eSopenharmony_ci   * @since 8
32161847f8eSopenharmony_ci   * @deprecated since 9
32261847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#click
32361847f8eSopenharmony_ci   * @test
32461847f8eSopenharmony_ci   */
32561847f8eSopenharmony_ci  click(): Promise<void>;
32661847f8eSopenharmony_ci
32761847f8eSopenharmony_ci  /**
32861847f8eSopenharmony_ci   * Double click this {@link UiComponent}.
32961847f8eSopenharmony_ci   *
33061847f8eSopenharmony_ci   * @returns { Promise<void> }
33161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
33261847f8eSopenharmony_ci   * @since 8
33361847f8eSopenharmony_ci   * @deprecated since 9
33461847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#doubleClick
33561847f8eSopenharmony_ci   * @test
33661847f8eSopenharmony_ci   */
33761847f8eSopenharmony_ci  doubleClick(): Promise<void>;
33861847f8eSopenharmony_ci
33961847f8eSopenharmony_ci  /**
34061847f8eSopenharmony_ci   * Long click this {@link UiComponent}.
34161847f8eSopenharmony_ci   *
34261847f8eSopenharmony_ci   * @returns { Promise<void> }
34361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
34461847f8eSopenharmony_ci   * @since 8
34561847f8eSopenharmony_ci   * @deprecated since 9
34661847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#longClick
34761847f8eSopenharmony_ci   * @test
34861847f8eSopenharmony_ci   */
34961847f8eSopenharmony_ci  longClick(): Promise<void>;
35061847f8eSopenharmony_ci
35161847f8eSopenharmony_ci  /**
35261847f8eSopenharmony_ci   * Get the id attribute value.
35361847f8eSopenharmony_ci   *
35461847f8eSopenharmony_ci   * @returns { Promise<number> } the id value.
35561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
35661847f8eSopenharmony_ci   * @since 8
35761847f8eSopenharmony_ci   * @deprecated since 9
35861847f8eSopenharmony_ci   * @test
35961847f8eSopenharmony_ci   */
36061847f8eSopenharmony_ci  getId(): Promise<number>;
36161847f8eSopenharmony_ci
36261847f8eSopenharmony_ci  /**
36361847f8eSopenharmony_ci   * Get the inspectorKey attribute value.
36461847f8eSopenharmony_ci   *
36561847f8eSopenharmony_ci   * @returns { Promise<string> } the inspectorKey value.
36661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
36761847f8eSopenharmony_ci   * @since 8
36861847f8eSopenharmony_ci   * @deprecated since 9
36961847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#getId
37061847f8eSopenharmony_ci   * @test
37161847f8eSopenharmony_ci   */
37261847f8eSopenharmony_ci  getKey(): Promise<string>;
37361847f8eSopenharmony_ci
37461847f8eSopenharmony_ci  /**
37561847f8eSopenharmony_ci   * Get the text attribute value.
37661847f8eSopenharmony_ci   *
37761847f8eSopenharmony_ci   * @returns { Promise<string> } the text value.
37861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
37961847f8eSopenharmony_ci   * @since 8
38061847f8eSopenharmony_ci   * @deprecated since 9
38161847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#getText
38261847f8eSopenharmony_ci   * @test
38361847f8eSopenharmony_ci   */
38461847f8eSopenharmony_ci  getText(): Promise<string>;
38561847f8eSopenharmony_ci
38661847f8eSopenharmony_ci  /**
38761847f8eSopenharmony_ci   * Get the type name.
38861847f8eSopenharmony_ci   *
38961847f8eSopenharmony_ci   * @returns { Promise<string> } the type name.
39061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
39161847f8eSopenharmony_ci   * @since 8
39261847f8eSopenharmony_ci   * @deprecated since 9
39361847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#getType
39461847f8eSopenharmony_ci   * @test
39561847f8eSopenharmony_ci   */
39661847f8eSopenharmony_ci  getType(): Promise<string>;
39761847f8eSopenharmony_ci
39861847f8eSopenharmony_ci  /**
39961847f8eSopenharmony_ci   * Get the clickable status of this {@link UiComponent}.
40061847f8eSopenharmony_ci   *
40161847f8eSopenharmony_ci   * @returns { Promise<boolean> } the clickable status.
40261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
40361847f8eSopenharmony_ci   * @since 8
40461847f8eSopenharmony_ci   * @deprecated since 9
40561847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#isClickable
40661847f8eSopenharmony_ci   * @test
40761847f8eSopenharmony_ci   */
40861847f8eSopenharmony_ci  isClickable(): Promise<boolean>;
40961847f8eSopenharmony_ci
41061847f8eSopenharmony_ci  /**
41161847f8eSopenharmony_ci   * Get the scrollable status of this {@link UiComponent}.
41261847f8eSopenharmony_ci   *
41361847f8eSopenharmony_ci   * @returns { Promise<boolean> } the scrollable status.
41461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
41561847f8eSopenharmony_ci   * @since 8
41661847f8eSopenharmony_ci   * @deprecated since 9
41761847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#isScrollable
41861847f8eSopenharmony_ci   * @test
41961847f8eSopenharmony_ci   */
42061847f8eSopenharmony_ci  isScrollable(): Promise<boolean>;
42161847f8eSopenharmony_ci
42261847f8eSopenharmony_ci  /**
42361847f8eSopenharmony_ci   * Get the enabled status of this {@link UiComponent}.
42461847f8eSopenharmony_ci   *
42561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the enabled status.
42661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
42761847f8eSopenharmony_ci   * @since 8
42861847f8eSopenharmony_ci   * @deprecated since 9
42961847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#isEnabled
43061847f8eSopenharmony_ci   * @test
43161847f8eSopenharmony_ci   */
43261847f8eSopenharmony_ci  isEnabled(): Promise<boolean>;
43361847f8eSopenharmony_ci
43461847f8eSopenharmony_ci  /**
43561847f8eSopenharmony_ci   * Get the focused status of this {@link UiComponent}.
43661847f8eSopenharmony_ci   *
43761847f8eSopenharmony_ci   * @returns { Promise<boolean> } the focused status.
43861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
43961847f8eSopenharmony_ci   * @since 8
44061847f8eSopenharmony_ci   * @deprecated since 9
44161847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#isFocused
44261847f8eSopenharmony_ci   * @test
44361847f8eSopenharmony_ci   */
44461847f8eSopenharmony_ci  isFocused(): Promise<boolean>;
44561847f8eSopenharmony_ci
44661847f8eSopenharmony_ci  /**
44761847f8eSopenharmony_ci   * Get the selected status of this {@link UiComponent}.
44861847f8eSopenharmony_ci   *
44961847f8eSopenharmony_ci   * @returns { Promise<boolean> } the selected status.
45061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
45161847f8eSopenharmony_ci   * @since 8
45261847f8eSopenharmony_ci   * @deprecated since 9
45361847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#isSelected
45461847f8eSopenharmony_ci   * @test
45561847f8eSopenharmony_ci   */
45661847f8eSopenharmony_ci  isSelected(): Promise<boolean>;
45761847f8eSopenharmony_ci
45861847f8eSopenharmony_ci  /**
45961847f8eSopenharmony_ci   * Inject text to this {@link UiComponent},applicable to TextInput.
46061847f8eSopenharmony_ci   *
46161847f8eSopenharmony_ci   * @param { string } text The text to inject.
46261847f8eSopenharmony_ci   * @returns { Promise<void> }
46361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
46461847f8eSopenharmony_ci   * @since 8
46561847f8eSopenharmony_ci   * @deprecated since 9
46661847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#inputText
46761847f8eSopenharmony_ci   * @test
46861847f8eSopenharmony_ci   */
46961847f8eSopenharmony_ci  inputText(text: string): Promise<void>;
47061847f8eSopenharmony_ci
47161847f8eSopenharmony_ci  /**
47261847f8eSopenharmony_ci   * Scroll on this {@link UiComponent}to find matched {@link UiComponent},applicable to scrollable one.
47361847f8eSopenharmony_ci   *
47461847f8eSopenharmony_ci   * @param { By } by The attribute requirements of the target {@link UiComponent}.
47561847f8eSopenharmony_ci   * @returns { Promise<UiComponent> } the found result,or undefined if not found.
47661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
47761847f8eSopenharmony_ci   * @since 8
47861847f8eSopenharmony_ci   * @deprecated since 9
47961847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Component#scrollSearch
48061847f8eSopenharmony_ci   * @test
48161847f8eSopenharmony_ci   */
48261847f8eSopenharmony_ci  scrollSearch(by: By): Promise<UiComponent>;
48361847f8eSopenharmony_ci}
48461847f8eSopenharmony_ci
48561847f8eSopenharmony_ci/**
48661847f8eSopenharmony_ci * The unified facade of UiTest framework,can be used to find {@link UiComponent},trigger keyEvents,perform
48761847f8eSopenharmony_ci * coordinates-based UI actions,capture screen and so on.
48861847f8eSopenharmony_ci *
48961847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
49061847f8eSopenharmony_ci * @since 8
49161847f8eSopenharmony_ci * @deprecated since 9
49261847f8eSopenharmony_ci * @useinstead ohos.uitest.Driver
49361847f8eSopenharmony_ci * @test
49461847f8eSopenharmony_ci */
49561847f8eSopenharmony_cideclare class UiDriver {
49661847f8eSopenharmony_ci  /**
49761847f8eSopenharmony_ci   * Create an {@link UiDriver} object.
49861847f8eSopenharmony_ci   *
49961847f8eSopenharmony_ci   * @returns { UiDriver } the {@link UiDriver} object.
50061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
50161847f8eSopenharmony_ci   * @since 8
50261847f8eSopenharmony_ci   * @deprecated since 9
50361847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#create
50461847f8eSopenharmony_ci   * @test
50561847f8eSopenharmony_ci   */
50661847f8eSopenharmony_ci  static create(): UiDriver;
50761847f8eSopenharmony_ci
50861847f8eSopenharmony_ci  /**
50961847f8eSopenharmony_ci   * Delay with specified duration.
51061847f8eSopenharmony_ci   *
51161847f8eSopenharmony_ci   * @param { number } duration The delay duration in milliseconds.
51261847f8eSopenharmony_ci   * @returns { Promise<void> }
51361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
51461847f8eSopenharmony_ci   * @since 8
51561847f8eSopenharmony_ci   * @deprecated since 9
51661847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#delayMs
51761847f8eSopenharmony_ci   * @test
51861847f8eSopenharmony_ci   */
51961847f8eSopenharmony_ci  delayMs(duration: number): Promise<void>;
52061847f8eSopenharmony_ci
52161847f8eSopenharmony_ci  /**
52261847f8eSopenharmony_ci   * Find the first matched {@link UiComponent} on current UI.
52361847f8eSopenharmony_ci   *
52461847f8eSopenharmony_ci   * @param { By } by The attribute requirements of the target {@link UiComponent}.
52561847f8eSopenharmony_ci   * @returns { Promise<UiComponent> } the first matched {@link UiComponent} or undefined.
52661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
52761847f8eSopenharmony_ci   * @since 8
52861847f8eSopenharmony_ci   * @deprecated since 9
52961847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#findComponent
53061847f8eSopenharmony_ci   * @test
53161847f8eSopenharmony_ci   */
53261847f8eSopenharmony_ci  findComponent(by: By): Promise<UiComponent>;
53361847f8eSopenharmony_ci
53461847f8eSopenharmony_ci  /**
53561847f8eSopenharmony_ci   * Find all the matched {@link UiComponent}s on current UI.
53661847f8eSopenharmony_ci   *
53761847f8eSopenharmony_ci   * @param { By } by The attribute requirements of the target {@link UiComponent}.
53861847f8eSopenharmony_ci   * @returns { Promise<Array<UiComponent>> } the matched {@link UiComponent}s list.
53961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
54061847f8eSopenharmony_ci   * @since 8
54161847f8eSopenharmony_ci   * @deprecated since 9
54261847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#findComponents
54361847f8eSopenharmony_ci   * @test
54461847f8eSopenharmony_ci   */
54561847f8eSopenharmony_ci  findComponents(by: By): Promise<Array<UiComponent>>;
54661847f8eSopenharmony_ci
54761847f8eSopenharmony_ci  /**
54861847f8eSopenharmony_ci   * Assert the matched {@link UiComponent}s exists on current UI;if not,assertError will be raised.
54961847f8eSopenharmony_ci   *
55061847f8eSopenharmony_ci   * @param { By } by The attribute requirements of the target {@link UiComponent}.
55161847f8eSopenharmony_ci   * @returns { Promise<void> }
55261847f8eSopenharmony_ci   * @throws {BusinessError} 401 - if the input parameters are invalid.
55361847f8eSopenharmony_ci   * @throws {BusinessError} 17000002 - if the async function was not called with await.
55461847f8eSopenharmony_ci   * @throws {BusinessError} 17000003 - if the assertion failed.
55561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
55661847f8eSopenharmony_ci   * @since 8
55761847f8eSopenharmony_ci   * @deprecated since 9
55861847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#assertComponentExist
55961847f8eSopenharmony_ci   * @test
56061847f8eSopenharmony_ci   */
56161847f8eSopenharmony_ci  assertComponentExist(by: By): Promise<void>;
56261847f8eSopenharmony_ci
56361847f8eSopenharmony_ci  /**
56461847f8eSopenharmony_ci   * Press the BACK key.
56561847f8eSopenharmony_ci   *
56661847f8eSopenharmony_ci   * @returns { Promise<void> }
56761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
56861847f8eSopenharmony_ci   * @since 8
56961847f8eSopenharmony_ci   * @deprecated since 9
57061847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#pressBack
57161847f8eSopenharmony_ci   * @test
57261847f8eSopenharmony_ci   */
57361847f8eSopenharmony_ci  pressBack(): Promise<void>;
57461847f8eSopenharmony_ci
57561847f8eSopenharmony_ci  /**
57661847f8eSopenharmony_ci   * Press the specified key.
57761847f8eSopenharmony_ci   *
57861847f8eSopenharmony_ci   * @param { number } keyCode the target keyCode.
57961847f8eSopenharmony_ci   * @returns { Promise<void> }
58061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
58161847f8eSopenharmony_ci   * @since 8
58261847f8eSopenharmony_ci   * @deprecated since 9
58361847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#triggerKey
58461847f8eSopenharmony_ci   * @test
58561847f8eSopenharmony_ci   */
58661847f8eSopenharmony_ci  triggerKey(keyCode: number): Promise<void>;
58761847f8eSopenharmony_ci
58861847f8eSopenharmony_ci  /**
58961847f8eSopenharmony_ci   * Click on the specified location on the screen.
59061847f8eSopenharmony_ci   *
59161847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
59261847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
59361847f8eSopenharmony_ci   * @returns { Promise<void> }
59461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
59561847f8eSopenharmony_ci   * @since 8
59661847f8eSopenharmony_ci   * @deprecated since 9
59761847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#click
59861847f8eSopenharmony_ci   * @test
59961847f8eSopenharmony_ci   */
60061847f8eSopenharmony_ci  click(x: number, y: number): Promise<void>;
60161847f8eSopenharmony_ci
60261847f8eSopenharmony_ci  /**
60361847f8eSopenharmony_ci   * DoubleClick on the specified location on the screen.
60461847f8eSopenharmony_ci   *
60561847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
60661847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
60761847f8eSopenharmony_ci   * @returns { Promise<void> }
60861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
60961847f8eSopenharmony_ci   * @since 8
61061847f8eSopenharmony_ci   * @deprecated since 9
61161847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#doubleClick
61261847f8eSopenharmony_ci   * @test
61361847f8eSopenharmony_ci   */
61461847f8eSopenharmony_ci  doubleClick(x: number, y: number): Promise<void>;
61561847f8eSopenharmony_ci
61661847f8eSopenharmony_ci  /**
61761847f8eSopenharmony_ci   * LongClick on the specified location on the screen.
61861847f8eSopenharmony_ci   *
61961847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
62061847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
62161847f8eSopenharmony_ci   * @returns { Promise<void> }
62261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
62361847f8eSopenharmony_ci   * @since 8
62461847f8eSopenharmony_ci   * @deprecated since 9
62561847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#longClick
62661847f8eSopenharmony_ci   * @test
62761847f8eSopenharmony_ci   */
62861847f8eSopenharmony_ci  longClick(x: number, y: number): Promise<void>;
62961847f8eSopenharmony_ci
63061847f8eSopenharmony_ci  /**
63161847f8eSopenharmony_ci   * Swipe on the screen between the specified points.
63261847f8eSopenharmony_ci   *
63361847f8eSopenharmony_ci   * @param { number } startx The x-coordinate of the starting point.
63461847f8eSopenharmony_ci   * @param { number } starty The y-coordinate of the starting point.
63561847f8eSopenharmony_ci   * @param { number } endx The x-coordinate of the ending point.
63661847f8eSopenharmony_ci   * @param { number } endy The y-coordinate of the ending point.
63761847f8eSopenharmony_ci   * @returns { Promise<void> }
63861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
63961847f8eSopenharmony_ci   * @since 8
64061847f8eSopenharmony_ci   * @deprecated since 9
64161847f8eSopenharmony_ci   * @useinstead ohos.UiTest.Driver#swipe
64261847f8eSopenharmony_ci   * @test
64361847f8eSopenharmony_ci   */
64461847f8eSopenharmony_ci  swipe(startx: number, starty: number, endx: number, endy: number): Promise<void>;
64561847f8eSopenharmony_ci
64661847f8eSopenharmony_ci  /**
64761847f8eSopenharmony_ci   * Capture current screen and save as picture which PNG format.
64861847f8eSopenharmony_ci   *
64961847f8eSopenharmony_ci   * @param { string } savePath the path where to store the picture.
65061847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.
65161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
65261847f8eSopenharmony_ci   * @since 8
65361847f8eSopenharmony_ci   * @deprecated since 9
65461847f8eSopenharmony_ci   * @useinstead ohos.uitest.Driver#screenCap
65561847f8eSopenharmony_ci   * @test
65661847f8eSopenharmony_ci   */
65761847f8eSopenharmony_ci  screenCap(savePath: string): Promise<boolean>;
65861847f8eSopenharmony_ci}
65961847f8eSopenharmony_ci
66061847f8eSopenharmony_ci/**
66161847f8eSopenharmony_ci * Enumerates the window mode of the tested window.
66261847f8eSopenharmony_ci *
66361847f8eSopenharmony_ci * @enum { number }
66461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
66561847f8eSopenharmony_ci * @since 9
66661847f8eSopenharmony_ci */
66761847f8eSopenharmony_ci/**
66861847f8eSopenharmony_ci * Enumerates the window mode of the tested window.
66961847f8eSopenharmony_ci *
67061847f8eSopenharmony_ci * @enum { number }
67161847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
67261847f8eSopenharmony_ci * @atomicservice
67361847f8eSopenharmony_ci * @since 11
67461847f8eSopenharmony_ci */
67561847f8eSopenharmony_cideclare enum WindowMode {
67661847f8eSopenharmony_ci  /**
67761847f8eSopenharmony_ci   * The test window is a full screen window.
67861847f8eSopenharmony_ci   *
67961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
68061847f8eSopenharmony_ci   * @since 9
68161847f8eSopenharmony_ci   * @test
68261847f8eSopenharmony_ci   */
68361847f8eSopenharmony_ci  /**
68461847f8eSopenharmony_ci   * The test window is a full screen window.
68561847f8eSopenharmony_ci   *
68661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
68761847f8eSopenharmony_ci   * @atomicservice
68861847f8eSopenharmony_ci   * @since 11
68961847f8eSopenharmony_ci   * @test
69061847f8eSopenharmony_ci   */
69161847f8eSopenharmony_ci  FULLSCREEN = 0,
69261847f8eSopenharmony_ci  /**
69361847f8eSopenharmony_ci   * The test window is the first window in the split screen state.
69461847f8eSopenharmony_ci   *
69561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
69661847f8eSopenharmony_ci   * @since 9
69761847f8eSopenharmony_ci   * @test
69861847f8eSopenharmony_ci   */
69961847f8eSopenharmony_ci  /**
70061847f8eSopenharmony_ci   * The test window is the first window in the split screen state.
70161847f8eSopenharmony_ci   *
70261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
70361847f8eSopenharmony_ci   * @atomicservice
70461847f8eSopenharmony_ci   * @since 11
70561847f8eSopenharmony_ci   * @test
70661847f8eSopenharmony_ci   */
70761847f8eSopenharmony_ci  PRIMARY = 1,
70861847f8eSopenharmony_ci  /**
70961847f8eSopenharmony_ci   * The test window is the second window in the split screen state.
71061847f8eSopenharmony_ci   *
71161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
71261847f8eSopenharmony_ci   * @since 9
71361847f8eSopenharmony_ci   * @test
71461847f8eSopenharmony_ci   */
71561847f8eSopenharmony_ci  /**
71661847f8eSopenharmony_ci   * The test window is the second window in the split screen state.
71761847f8eSopenharmony_ci   *
71861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
71961847f8eSopenharmony_ci   * @atomicservice
72061847f8eSopenharmony_ci   * @since 11
72161847f8eSopenharmony_ci   * @test
72261847f8eSopenharmony_ci   */
72361847f8eSopenharmony_ci  SECONDARY = 2,
72461847f8eSopenharmony_ci  /**
72561847f8eSopenharmony_ci   * The test window is a floating window.
72661847f8eSopenharmony_ci   *
72761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
72861847f8eSopenharmony_ci   * @since 9
72961847f8eSopenharmony_ci   * @test
73061847f8eSopenharmony_ci   */
73161847f8eSopenharmony_ci  /**
73261847f8eSopenharmony_ci   * The test window is a floating window.
73361847f8eSopenharmony_ci   *
73461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
73561847f8eSopenharmony_ci   * @atomicservice
73661847f8eSopenharmony_ci   * @since 11
73761847f8eSopenharmony_ci   * @test
73861847f8eSopenharmony_ci   */
73961847f8eSopenharmony_ci  FLOATING = 3
74061847f8eSopenharmony_ci}
74161847f8eSopenharmony_ci
74261847f8eSopenharmony_ci/**
74361847f8eSopenharmony_ci * Enumerates the resize direction for the window.
74461847f8eSopenharmony_ci *
74561847f8eSopenharmony_ci * @enum { number }
74661847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
74761847f8eSopenharmony_ci * @since 9
74861847f8eSopenharmony_ci */
74961847f8eSopenharmony_ci/**
75061847f8eSopenharmony_ci * Enumerates the resize direction for the window.
75161847f8eSopenharmony_ci *
75261847f8eSopenharmony_ci * @enum { number }
75361847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
75461847f8eSopenharmony_ci * @atomicservice
75561847f8eSopenharmony_ci * @since 11
75661847f8eSopenharmony_ci */
75761847f8eSopenharmony_cideclare enum ResizeDirection {
75861847f8eSopenharmony_ci  /**
75961847f8eSopenharmony_ci   * Left.
76061847f8eSopenharmony_ci   *
76161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
76261847f8eSopenharmony_ci   * @since 9
76361847f8eSopenharmony_ci   * @test
76461847f8eSopenharmony_ci   */
76561847f8eSopenharmony_ci  /**
76661847f8eSopenharmony_ci   * Left.
76761847f8eSopenharmony_ci   *
76861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
76961847f8eSopenharmony_ci   * @atomicservice
77061847f8eSopenharmony_ci   * @since 11
77161847f8eSopenharmony_ci   * @test
77261847f8eSopenharmony_ci   */
77361847f8eSopenharmony_ci  LEFT = 0,
77461847f8eSopenharmony_ci  /**
77561847f8eSopenharmony_ci   * Right.
77661847f8eSopenharmony_ci   *
77761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
77861847f8eSopenharmony_ci   * @since 9
77961847f8eSopenharmony_ci   * @test
78061847f8eSopenharmony_ci   */
78161847f8eSopenharmony_ci  /**
78261847f8eSopenharmony_ci   * Right.
78361847f8eSopenharmony_ci   *
78461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
78561847f8eSopenharmony_ci   * @atomicservice
78661847f8eSopenharmony_ci   * @since 11
78761847f8eSopenharmony_ci   * @test
78861847f8eSopenharmony_ci   */
78961847f8eSopenharmony_ci  RIGHT = 1,
79061847f8eSopenharmony_ci  /**
79161847f8eSopenharmony_ci   * Up.
79261847f8eSopenharmony_ci   *
79361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
79461847f8eSopenharmony_ci   * @since 9
79561847f8eSopenharmony_ci   * @test
79661847f8eSopenharmony_ci   */
79761847f8eSopenharmony_ci  /**
79861847f8eSopenharmony_ci   * Up.
79961847f8eSopenharmony_ci   *
80061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
80161847f8eSopenharmony_ci   * @atomicservice
80261847f8eSopenharmony_ci   * @since 11
80361847f8eSopenharmony_ci   * @test
80461847f8eSopenharmony_ci   */
80561847f8eSopenharmony_ci  UP = 2,
80661847f8eSopenharmony_ci  /**
80761847f8eSopenharmony_ci   * Down.
80861847f8eSopenharmony_ci   *
80961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
81061847f8eSopenharmony_ci   * @since 9
81161847f8eSopenharmony_ci   * @test
81261847f8eSopenharmony_ci   */
81361847f8eSopenharmony_ci  /**
81461847f8eSopenharmony_ci   * Down.
81561847f8eSopenharmony_ci   *
81661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
81761847f8eSopenharmony_ci   * @atomicservice
81861847f8eSopenharmony_ci   * @since 11
81961847f8eSopenharmony_ci   * @test
82061847f8eSopenharmony_ci   */
82161847f8eSopenharmony_ci  DOWN = 3,
82261847f8eSopenharmony_ci  /**
82361847f8eSopenharmony_ci   * Upper left.
82461847f8eSopenharmony_ci   *
82561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
82661847f8eSopenharmony_ci   * @since 9
82761847f8eSopenharmony_ci   * @test
82861847f8eSopenharmony_ci   */
82961847f8eSopenharmony_ci  /**
83061847f8eSopenharmony_ci   * Upper left.
83161847f8eSopenharmony_ci   *
83261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
83361847f8eSopenharmony_ci   * @atomicservice
83461847f8eSopenharmony_ci   * @since 11
83561847f8eSopenharmony_ci   * @test
83661847f8eSopenharmony_ci   */
83761847f8eSopenharmony_ci  LEFT_UP = 4,
83861847f8eSopenharmony_ci  /**
83961847f8eSopenharmony_ci   * Lower left.
84061847f8eSopenharmony_ci   *
84161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
84261847f8eSopenharmony_ci   * @since 9
84361847f8eSopenharmony_ci   * @test
84461847f8eSopenharmony_ci   */
84561847f8eSopenharmony_ci  /**
84661847f8eSopenharmony_ci   * Lower left.
84761847f8eSopenharmony_ci   *
84861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
84961847f8eSopenharmony_ci   * @atomicservice
85061847f8eSopenharmony_ci   * @since 11
85161847f8eSopenharmony_ci   * @test
85261847f8eSopenharmony_ci   */
85361847f8eSopenharmony_ci  LEFT_DOWN = 5,
85461847f8eSopenharmony_ci  /**
85561847f8eSopenharmony_ci   * Upper right.
85661847f8eSopenharmony_ci   *
85761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
85861847f8eSopenharmony_ci   * @since 9
85961847f8eSopenharmony_ci   * @test
86061847f8eSopenharmony_ci   */
86161847f8eSopenharmony_ci  /**
86261847f8eSopenharmony_ci   * Upper right.
86361847f8eSopenharmony_ci   *
86461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
86561847f8eSopenharmony_ci   * @atomicservice
86661847f8eSopenharmony_ci   * @since 11
86761847f8eSopenharmony_ci   * @test
86861847f8eSopenharmony_ci   */
86961847f8eSopenharmony_ci  RIGHT_UP = 6,
87061847f8eSopenharmony_ci  /**
87161847f8eSopenharmony_ci   * Lower right.
87261847f8eSopenharmony_ci   *
87361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
87461847f8eSopenharmony_ci   * @since 9
87561847f8eSopenharmony_ci   * @test
87661847f8eSopenharmony_ci   */
87761847f8eSopenharmony_ci  /**
87861847f8eSopenharmony_ci   * Lower right.
87961847f8eSopenharmony_ci   *
88061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
88161847f8eSopenharmony_ci   * @atomicservice
88261847f8eSopenharmony_ci   * @since 11
88361847f8eSopenharmony_ci   * @test
88461847f8eSopenharmony_ci   */
88561847f8eSopenharmony_ci  RIGHT_DOWN = 7
88661847f8eSopenharmony_ci}
88761847f8eSopenharmony_ci
88861847f8eSopenharmony_ci/**
88961847f8eSopenharmony_ci * Enumerates the rotation of the device display.
89061847f8eSopenharmony_ci *
89161847f8eSopenharmony_ci * @enum { number }
89261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
89361847f8eSopenharmony_ci * @since 9
89461847f8eSopenharmony_ci */
89561847f8eSopenharmony_ci/**
89661847f8eSopenharmony_ci * Enumerates the rotation of the device display.
89761847f8eSopenharmony_ci *
89861847f8eSopenharmony_ci * @enum { number }
89961847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
90061847f8eSopenharmony_ci * @atomicservice
90161847f8eSopenharmony_ci * @since 11
90261847f8eSopenharmony_ci */
90361847f8eSopenharmony_cideclare enum DisplayRotation {
90461847f8eSopenharmony_ci  /**
90561847f8eSopenharmony_ci   * Device display does not rotate to display vertically.
90661847f8eSopenharmony_ci   *
90761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
90861847f8eSopenharmony_ci   * @since 9
90961847f8eSopenharmony_ci   * @test
91061847f8eSopenharmony_ci   */
91161847f8eSopenharmony_ci  /**
91261847f8eSopenharmony_ci   * Device display does not rotate to display vertically.
91361847f8eSopenharmony_ci   *
91461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
91561847f8eSopenharmony_ci   * @atomicservice
91661847f8eSopenharmony_ci   * @since 11
91761847f8eSopenharmony_ci   * @test
91861847f8eSopenharmony_ci   */
91961847f8eSopenharmony_ci  ROTATION_0 = 0,
92061847f8eSopenharmony_ci  /**
92161847f8eSopenharmony_ci   * Device display rotates 90 degrees clockwise to display horizontally.
92261847f8eSopenharmony_ci   *
92361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
92461847f8eSopenharmony_ci   * @since 9
92561847f8eSopenharmony_ci   * @test
92661847f8eSopenharmony_ci   */
92761847f8eSopenharmony_ci  /**
92861847f8eSopenharmony_ci   * Device display rotates 90 degrees clockwise to display horizontally.
92961847f8eSopenharmony_ci   *
93061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
93161847f8eSopenharmony_ci   * @atomicservice
93261847f8eSopenharmony_ci   * @since 11
93361847f8eSopenharmony_ci   * @test
93461847f8eSopenharmony_ci   */
93561847f8eSopenharmony_ci  ROTATION_90 = 1,
93661847f8eSopenharmony_ci  /**
93761847f8eSopenharmony_ci   * Device display rotates clockwise 180 degrees to display vertically in reverse.
93861847f8eSopenharmony_ci   *
93961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
94061847f8eSopenharmony_ci   * @since 9
94161847f8eSopenharmony_ci   * @test
94261847f8eSopenharmony_ci   */
94361847f8eSopenharmony_ci  /**
94461847f8eSopenharmony_ci   * Device display rotates clockwise 180 degrees to display vertically in reverse.
94561847f8eSopenharmony_ci   *
94661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
94761847f8eSopenharmony_ci   * @atomicservice
94861847f8eSopenharmony_ci   * @since 11
94961847f8eSopenharmony_ci   * @test
95061847f8eSopenharmony_ci   */
95161847f8eSopenharmony_ci  ROTATION_180 = 2,
95261847f8eSopenharmony_ci  /**
95361847f8eSopenharmony_ci   * Device display rotates 270 degrees clockwise to display horizontally in reverse.
95461847f8eSopenharmony_ci   *
95561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
95661847f8eSopenharmony_ci   * @since 9
95761847f8eSopenharmony_ci   * @test
95861847f8eSopenharmony_ci   */
95961847f8eSopenharmony_ci  /**
96061847f8eSopenharmony_ci   * Device display rotates 270 degrees clockwise to display horizontally in reverse.
96161847f8eSopenharmony_ci   *
96261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
96361847f8eSopenharmony_ci   * @atomicservice
96461847f8eSopenharmony_ci   * @since 11
96561847f8eSopenharmony_ci   * @test
96661847f8eSopenharmony_ci   */
96761847f8eSopenharmony_ci  ROTATION_270 = 3
96861847f8eSopenharmony_ci}
96961847f8eSopenharmony_ci
97061847f8eSopenharmony_ci/**
97161847f8eSopenharmony_ci * Represents the point on the device screen.
97261847f8eSopenharmony_ci *
97361847f8eSopenharmony_ci * @typedef Point
97461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
97561847f8eSopenharmony_ci * @since 9
97661847f8eSopenharmony_ci */
97761847f8eSopenharmony_ci/**
97861847f8eSopenharmony_ci * Represents the point on the device screen.
97961847f8eSopenharmony_ci *
98061847f8eSopenharmony_ci * @typedef Point
98161847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
98261847f8eSopenharmony_ci * @crossplatform
98361847f8eSopenharmony_ci * @since 10
98461847f8eSopenharmony_ci */
98561847f8eSopenharmony_ci/**
98661847f8eSopenharmony_ci * Represents the point on the device screen.
98761847f8eSopenharmony_ci *
98861847f8eSopenharmony_ci * @typedef Point
98961847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
99061847f8eSopenharmony_ci * @crossplatform
99161847f8eSopenharmony_ci * @atomicservice
99261847f8eSopenharmony_ci * @since 11
99361847f8eSopenharmony_ci */
99461847f8eSopenharmony_cideclare interface Point {
99561847f8eSopenharmony_ci  /**
99661847f8eSopenharmony_ci   * The x-coordinate of the coordinate point.
99761847f8eSopenharmony_ci   *
99861847f8eSopenharmony_ci   * @type { number }
99961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
100061847f8eSopenharmony_ci   * @since 9
100161847f8eSopenharmony_ci   */
100261847f8eSopenharmony_ci  /**
100361847f8eSopenharmony_ci   * The x-coordinate of the coordinate point.
100461847f8eSopenharmony_ci   *
100561847f8eSopenharmony_ci   * @type { number }
100661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
100761847f8eSopenharmony_ci   * @crossplatform
100861847f8eSopenharmony_ci   * @since 10
100961847f8eSopenharmony_ci   */
101061847f8eSopenharmony_ci  /**
101161847f8eSopenharmony_ci   * The x-coordinate of the coordinate point.
101261847f8eSopenharmony_ci   *
101361847f8eSopenharmony_ci   * @type { number }
101461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
101561847f8eSopenharmony_ci   * @crossplatform
101661847f8eSopenharmony_ci   * @atomicservice
101761847f8eSopenharmony_ci   * @since 11
101861847f8eSopenharmony_ci   */
101961847f8eSopenharmony_ci  readonly x: number;
102061847f8eSopenharmony_ci  /**
102161847f8eSopenharmony_ci   * The y-coordinate of the coordinate point.
102261847f8eSopenharmony_ci   *
102361847f8eSopenharmony_ci   * @type { number }
102461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
102561847f8eSopenharmony_ci   * @since 9
102661847f8eSopenharmony_ci   */
102761847f8eSopenharmony_ci  /**
102861847f8eSopenharmony_ci   * The y-coordinate of the coordinate point.
102961847f8eSopenharmony_ci   *
103061847f8eSopenharmony_ci   * @type { number }
103161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
103261847f8eSopenharmony_ci   * @crossplatform
103361847f8eSopenharmony_ci   * @since 10
103461847f8eSopenharmony_ci   */
103561847f8eSopenharmony_ci  /**
103661847f8eSopenharmony_ci   * The y-coordinate of the coordinate point.
103761847f8eSopenharmony_ci   *
103861847f8eSopenharmony_ci   * @type { number }
103961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
104061847f8eSopenharmony_ci   * @crossplatform
104161847f8eSopenharmony_ci   * @atomicservice
104261847f8eSopenharmony_ci   * @since 11
104361847f8eSopenharmony_ci   */
104461847f8eSopenharmony_ci  readonly y: number;
104561847f8eSopenharmony_ci}
104661847f8eSopenharmony_ci
104761847f8eSopenharmony_ci/**
104861847f8eSopenharmony_ci * Represents the rectangle area on the device screen.
104961847f8eSopenharmony_ci *
105061847f8eSopenharmony_ci * @typedef Rect 
105161847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
105261847f8eSopenharmony_ci * @since 9
105361847f8eSopenharmony_ci */
105461847f8eSopenharmony_ci/**
105561847f8eSopenharmony_ci * Represents the rectangle area on the device screen.
105661847f8eSopenharmony_ci *
105761847f8eSopenharmony_ci * @typedef Rect 
105861847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
105961847f8eSopenharmony_ci * @atomicservice
106061847f8eSopenharmony_ci * @since 11
106161847f8eSopenharmony_ci */
106261847f8eSopenharmony_ci/**
106361847f8eSopenharmony_ci * Represents the rectangle area on the device screen.
106461847f8eSopenharmony_ci *
106561847f8eSopenharmony_ci * @typedef Rect 
106661847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
106761847f8eSopenharmony_ci * @crossplatform
106861847f8eSopenharmony_ci * @atomicservice
106961847f8eSopenharmony_ci * @since 12
107061847f8eSopenharmony_ci */
107161847f8eSopenharmony_cideclare interface Rect {
107261847f8eSopenharmony_ci  /**
107361847f8eSopenharmony_ci   * The x-coordinate of the top left corner of the rectangle.
107461847f8eSopenharmony_ci   *
107561847f8eSopenharmony_ci   * @type { number }
107661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
107761847f8eSopenharmony_ci   * @since 9
107861847f8eSopenharmony_ci   */
107961847f8eSopenharmony_ci  /**
108061847f8eSopenharmony_ci   * The x-coordinate of the top left corner of the rectangle.
108161847f8eSopenharmony_ci   *
108261847f8eSopenharmony_ci   * @type { number }
108361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
108461847f8eSopenharmony_ci   * @atomicservice
108561847f8eSopenharmony_ci   * @since 11
108661847f8eSopenharmony_ci   */
108761847f8eSopenharmony_ci  /**
108861847f8eSopenharmony_ci   * The x-coordinate of the top left corner of the rectangle.
108961847f8eSopenharmony_ci   *
109061847f8eSopenharmony_ci   * @type { number }
109161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
109261847f8eSopenharmony_ci   * @crossplatform
109361847f8eSopenharmony_ci   * @atomicservice
109461847f8eSopenharmony_ci   * @since 12
109561847f8eSopenharmony_ci   */ 
109661847f8eSopenharmony_ci  readonly left: number;
109761847f8eSopenharmony_ci  /**
109861847f8eSopenharmony_ci   * The y-coordinate of the top left corner of the rectangle.
109961847f8eSopenharmony_ci   *
110061847f8eSopenharmony_ci   * @type { number }
110161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
110261847f8eSopenharmony_ci   * @since 9
110361847f8eSopenharmony_ci   */
110461847f8eSopenharmony_ci  /**
110561847f8eSopenharmony_ci   * The y-coordinate of the top left corner of the rectangle.
110661847f8eSopenharmony_ci   *
110761847f8eSopenharmony_ci   * @type { number }
110861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
110961847f8eSopenharmony_ci   * @atomicservice
111061847f8eSopenharmony_ci   * @since 11
111161847f8eSopenharmony_ci   */
111261847f8eSopenharmony_ci  /**
111361847f8eSopenharmony_ci   * The y-coordinate of the top left corner of the rectangle.
111461847f8eSopenharmony_ci   *
111561847f8eSopenharmony_ci   * @type { number }
111661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
111761847f8eSopenharmony_ci   * @crossplatform
111861847f8eSopenharmony_ci   * @atomicservice
111961847f8eSopenharmony_ci   * @since 12
112061847f8eSopenharmony_ci   */
112161847f8eSopenharmony_ci  readonly top: number;
112261847f8eSopenharmony_ci  /**
112361847f8eSopenharmony_ci   * The x-coordinate at the bottom right corner of the rectangle.
112461847f8eSopenharmony_ci   *
112561847f8eSopenharmony_ci   * @type { number }
112661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
112761847f8eSopenharmony_ci   * @since 9
112861847f8eSopenharmony_ci   */
112961847f8eSopenharmony_ci  /**
113061847f8eSopenharmony_ci   * The x-coordinate at the bottom right corner of the rectangle.
113161847f8eSopenharmony_ci   *
113261847f8eSopenharmony_ci   * @type { number }
113361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
113461847f8eSopenharmony_ci   * @atomicservice
113561847f8eSopenharmony_ci   * @since 11
113661847f8eSopenharmony_ci   */
113761847f8eSopenharmony_ci  /**
113861847f8eSopenharmony_ci   * The x-coordinate at the bottom right corner of the rectangle.
113961847f8eSopenharmony_ci   *
114061847f8eSopenharmony_ci   * @type { number }
114161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
114261847f8eSopenharmony_ci   * @crossplatform
114361847f8eSopenharmony_ci   * @atomicservice
114461847f8eSopenharmony_ci   * @since 12
114561847f8eSopenharmony_ci   */
114661847f8eSopenharmony_ci  readonly right: number;
114761847f8eSopenharmony_ci  /**
114861847f8eSopenharmony_ci   * The y-coordinate at the bottom right corner of the rectangle.
114961847f8eSopenharmony_ci   *
115061847f8eSopenharmony_ci   * @type { number }
115161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
115261847f8eSopenharmony_ci   * @since 9
115361847f8eSopenharmony_ci   */
115461847f8eSopenharmony_ci  /**
115561847f8eSopenharmony_ci   * The y-coordinate at the bottom right corner of the rectangle.
115661847f8eSopenharmony_ci   *
115761847f8eSopenharmony_ci   * @type { number }
115861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
115961847f8eSopenharmony_ci   * @atomicservice
116061847f8eSopenharmony_ci   * @since 11
116161847f8eSopenharmony_ci   */
116261847f8eSopenharmony_ci  /**
116361847f8eSopenharmony_ci   * The y-coordinate at the bottom right corner of the rectangle.
116461847f8eSopenharmony_ci   *
116561847f8eSopenharmony_ci   * @type { number }
116661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
116761847f8eSopenharmony_ci   * @crossplatform
116861847f8eSopenharmony_ci   * @atomicservice
116961847f8eSopenharmony_ci   * @since 12
117061847f8eSopenharmony_ci   */
117161847f8eSopenharmony_ci  readonly bottom: number;
117261847f8eSopenharmony_ci}
117361847f8eSopenharmony_ci
117461847f8eSopenharmony_ci/**
117561847f8eSopenharmony_ci * Represents filer condition to get the window .
117661847f8eSopenharmony_ci *
117761847f8eSopenharmony_ci * @typedef WindowFilter
117861847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
117961847f8eSopenharmony_ci * @since 9
118061847f8eSopenharmony_ci */
118161847f8eSopenharmony_ci/**
118261847f8eSopenharmony_ci * Represents filer condition to get the window .
118361847f8eSopenharmony_ci *
118461847f8eSopenharmony_ci * @typedef WindowFilter
118561847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
118661847f8eSopenharmony_ci * @atomicservice
118761847f8eSopenharmony_ci * @since 11
118861847f8eSopenharmony_ci */
118961847f8eSopenharmony_cideclare interface WindowFilter {
119061847f8eSopenharmony_ci  /**
119161847f8eSopenharmony_ci   * The package name of the application which the window belongs to.
119261847f8eSopenharmony_ci   *
119361847f8eSopenharmony_ci   * @type { ?string }
119461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
119561847f8eSopenharmony_ci   * @since 9
119661847f8eSopenharmony_ci   */
119761847f8eSopenharmony_ci  /**
119861847f8eSopenharmony_ci   * The package name of the application which the window belongs to.
119961847f8eSopenharmony_ci   *
120061847f8eSopenharmony_ci   * @type { ?string }
120161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
120261847f8eSopenharmony_ci   * @atomicservice
120361847f8eSopenharmony_ci   * @since 11
120461847f8eSopenharmony_ci   */
120561847f8eSopenharmony_ci  bundleName?: string;
120661847f8eSopenharmony_ci
120761847f8eSopenharmony_ci  /**
120861847f8eSopenharmony_ci   * The title of the window.
120961847f8eSopenharmony_ci   *
121061847f8eSopenharmony_ci   * @type { ?string }
121161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
121261847f8eSopenharmony_ci   * @since 9
121361847f8eSopenharmony_ci   */
121461847f8eSopenharmony_ci  /**
121561847f8eSopenharmony_ci   * The title of the window.
121661847f8eSopenharmony_ci   *
121761847f8eSopenharmony_ci   * @type { ?string }
121861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
121961847f8eSopenharmony_ci   * @atomicservice
122061847f8eSopenharmony_ci   * @since 11
122161847f8eSopenharmony_ci   */
122261847f8eSopenharmony_ci  title?: string;
122361847f8eSopenharmony_ci
122461847f8eSopenharmony_ci  /**
122561847f8eSopenharmony_ci   * The focal state of the window.
122661847f8eSopenharmony_ci   *
122761847f8eSopenharmony_ci   * @type { ?boolean }
122861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
122961847f8eSopenharmony_ci   * @since 9
123061847f8eSopenharmony_ci   */
123161847f8eSopenharmony_ci  /**
123261847f8eSopenharmony_ci   * The focal state of the window.
123361847f8eSopenharmony_ci   *
123461847f8eSopenharmony_ci   * @type { ?boolean }
123561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
123661847f8eSopenharmony_ci   * @atomicservice
123761847f8eSopenharmony_ci   * @since 11
123861847f8eSopenharmony_ci   */
123961847f8eSopenharmony_ci  focused?: boolean;
124061847f8eSopenharmony_ci
124161847f8eSopenharmony_ci  /**
124261847f8eSopenharmony_ci   * The active state of the window.
124361847f8eSopenharmony_ci   *
124461847f8eSopenharmony_ci   * @type { ?boolean }
124561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
124661847f8eSopenharmony_ci   * @since 9
124761847f8eSopenharmony_ci   */
124861847f8eSopenharmony_ci  /**
124961847f8eSopenharmony_ci   * The active state of the window.
125061847f8eSopenharmony_ci   *
125161847f8eSopenharmony_ci   * @type { ?boolean }
125261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
125361847f8eSopenharmony_ci   * @since 11
125461847f8eSopenharmony_ci   * @deprecated since 11
125561847f8eSopenharmony_ci   * @useinstead ohos.UiTest.WindowFilter#active
125661847f8eSopenharmony_ci   */
125761847f8eSopenharmony_ci  actived?: boolean;
125861847f8eSopenharmony_ci
125961847f8eSopenharmony_ci  /**
126061847f8eSopenharmony_ci   * The active state of the window.
126161847f8eSopenharmony_ci   *
126261847f8eSopenharmony_ci   * @type { ?boolean }
126361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
126461847f8eSopenharmony_ci   * @atomicservice
126561847f8eSopenharmony_ci   * @since 11
126661847f8eSopenharmony_ci   */
126761847f8eSopenharmony_ci  active?: boolean;
126861847f8eSopenharmony_ci}
126961847f8eSopenharmony_ci
127061847f8eSopenharmony_ci/**
127161847f8eSopenharmony_ci * Represents the information of an UI element, can be a component or window.
127261847f8eSopenharmony_ci * 
127361847f8eSopenharmony_ci * @typedef UIElementInfo
127461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
127561847f8eSopenharmony_ci * @since 10
127661847f8eSopenharmony_ci * @test
127761847f8eSopenharmony_ci */
127861847f8eSopenharmony_ci/**
127961847f8eSopenharmony_ci * Represents the information of an UI element, can be a component or window.
128061847f8eSopenharmony_ci * 
128161847f8eSopenharmony_ci * @typedef UIElementInfo
128261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
128361847f8eSopenharmony_ci * @atomicservice
128461847f8eSopenharmony_ci * @since 11
128561847f8eSopenharmony_ci * @test
128661847f8eSopenharmony_ci */
128761847f8eSopenharmony_cideclare interface UIElementInfo {
128861847f8eSopenharmony_ci  /**
128961847f8eSopenharmony_ci   * The bundle name of the host application.
129061847f8eSopenharmony_ci   * @type { string }
129161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
129261847f8eSopenharmony_ci   * @since 10
129361847f8eSopenharmony_ci   * @test
129461847f8eSopenharmony_ci   */
129561847f8eSopenharmony_ci  /**
129661847f8eSopenharmony_ci   * The bundle name of the host application.
129761847f8eSopenharmony_ci   * @type { string }
129861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
129961847f8eSopenharmony_ci   * @atomicservice
130061847f8eSopenharmony_ci   * @since 11
130161847f8eSopenharmony_ci   * @test
130261847f8eSopenharmony_ci   */
130361847f8eSopenharmony_ci  readonly bundleName: string;
130461847f8eSopenharmony_ci  /**
130561847f8eSopenharmony_ci   * The component type, set it as 'window' if it's a window.
130661847f8eSopenharmony_ci   * @type { string }
130761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
130861847f8eSopenharmony_ci   * @since 10
130961847f8eSopenharmony_ci   * @test
131061847f8eSopenharmony_ci   */
131161847f8eSopenharmony_ci  /**
131261847f8eSopenharmony_ci   * The component type, set it as 'window' if it's a window.
131361847f8eSopenharmony_ci   * @type { string }
131461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
131561847f8eSopenharmony_ci   * @atomicservice
131661847f8eSopenharmony_ci   * @since 11
131761847f8eSopenharmony_ci   * @test
131861847f8eSopenharmony_ci   */
131961847f8eSopenharmony_ci  readonly type: string;
132061847f8eSopenharmony_ci  /**
132161847f8eSopenharmony_ci   * The text of component, set it as window's title if it's a window.
132261847f8eSopenharmony_ci   * @type { string }
132361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
132461847f8eSopenharmony_ci   * @since 10
132561847f8eSopenharmony_ci   * @test
132661847f8eSopenharmony_ci   */
132761847f8eSopenharmony_ci  /**
132861847f8eSopenharmony_ci   * The text of component, set it as window's title if it's a window.
132961847f8eSopenharmony_ci   * @type { string }
133061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
133161847f8eSopenharmony_ci   * @atomicservice
133261847f8eSopenharmony_ci   * @since 11
133361847f8eSopenharmony_ci   * @test
133461847f8eSopenharmony_ci   */
133561847f8eSopenharmony_ci  readonly text: string;
133661847f8eSopenharmony_ci}
133761847f8eSopenharmony_ci
133861847f8eSopenharmony_ci/**
133961847f8eSopenharmony_ci * Observer to monitor UI events.
134061847f8eSopenharmony_ci * 
134161847f8eSopenharmony_ci * @typedef UIEventObserver
134261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
134361847f8eSopenharmony_ci * @since 10
134461847f8eSopenharmony_ci * @test
134561847f8eSopenharmony_ci */
134661847f8eSopenharmony_ci/**
134761847f8eSopenharmony_ci * Observer to monitor UI events.
134861847f8eSopenharmony_ci * 
134961847f8eSopenharmony_ci * @typedef UIEventObserver
135061847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
135161847f8eSopenharmony_ci * @atomicservice
135261847f8eSopenharmony_ci * @since 11
135361847f8eSopenharmony_ci * @test
135461847f8eSopenharmony_ci */
135561847f8eSopenharmony_cideclare interface UIEventObserver {
135661847f8eSopenharmony_ci  /**
135761847f8eSopenharmony_ci   * Listen for toast show once
135861847f8eSopenharmony_ci   * 
135961847f8eSopenharmony_ci   * @param { 'toastShow' } type 'toastShow'.
136061847f8eSopenharmony_ci   * @param { Callback<UIElementInfo> } callback function, returns the monitored UIElementInfo.
136161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
136261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
136361847f8eSopenharmony_ci   * @since 10
136461847f8eSopenharmony_ci   * @test
136561847f8eSopenharmony_ci   */
136661847f8eSopenharmony_ci  /**
136761847f8eSopenharmony_ci   * Listen for toast show once
136861847f8eSopenharmony_ci   * 
136961847f8eSopenharmony_ci   * @param { 'toastShow' } type -'toastShow'.
137061847f8eSopenharmony_ci   * @param { Callback<UIElementInfo> } callback - function, returns the monitored UIElementInfo.
137161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
137261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
137361847f8eSopenharmony_ci   * @atomicservice
137461847f8eSopenharmony_ci   * @since 11
137561847f8eSopenharmony_ci   * @test
137661847f8eSopenharmony_ci   */
137761847f8eSopenharmony_ci  once(type: 'toastShow', callback: Callback<UIElementInfo>): void;
137861847f8eSopenharmony_ci
137961847f8eSopenharmony_ci  /**
138061847f8eSopenharmony_ci   * Listen for dialog show once
138161847f8eSopenharmony_ci   * 
138261847f8eSopenharmony_ci   * @param { 'dialogShow' } type 'dialogShow'.
138361847f8eSopenharmony_ci   * @param { Callback<UIElementInfo> } callback function, returns the monitored UIElementInfo.
138461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
138561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
138661847f8eSopenharmony_ci   * @since 10
138761847f8eSopenharmony_ci   * @test
138861847f8eSopenharmony_ci   */
138961847f8eSopenharmony_ci  /**
139061847f8eSopenharmony_ci   * Listen for dialog show once
139161847f8eSopenharmony_ci   * 
139261847f8eSopenharmony_ci   * @param { 'dialogShow' } type - 'dialogShow'.
139361847f8eSopenharmony_ci   * @param { Callback<UIElementInfo> } callback - function, returns the monitored UIElementInfo.
139461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
139561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
139661847f8eSopenharmony_ci   * @atomicservice
139761847f8eSopenharmony_ci   * @since 11
139861847f8eSopenharmony_ci   * @test
139961847f8eSopenharmony_ci   */
140061847f8eSopenharmony_ci  once(type: 'dialogShow', callback: Callback<UIElementInfo>): void;
140161847f8eSopenharmony_ci}
140261847f8eSopenharmony_ci
140361847f8eSopenharmony_ci/**
140461847f8eSopenharmony_ci * Enumerates the direction for the UI operation .
140561847f8eSopenharmony_ci *
140661847f8eSopenharmony_ci * @enum { number }
140761847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
140861847f8eSopenharmony_ci * @since 10
140961847f8eSopenharmony_ci */
141061847f8eSopenharmony_ci/**
141161847f8eSopenharmony_ci * Enumerates the direction for the UI operation .
141261847f8eSopenharmony_ci *
141361847f8eSopenharmony_ci * @enum { number }
141461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
141561847f8eSopenharmony_ci * @atomicservice
141661847f8eSopenharmony_ci * @since 11
141761847f8eSopenharmony_ci */
141861847f8eSopenharmony_ci/**
141961847f8eSopenharmony_ci * Enumerates the direction for the UI operation .
142061847f8eSopenharmony_ci *
142161847f8eSopenharmony_ci * @enum { number }
142261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
142361847f8eSopenharmony_ci * @crossplatform
142461847f8eSopenharmony_ci * @atomicservice
142561847f8eSopenharmony_ci * @since 12
142661847f8eSopenharmony_ci */
142761847f8eSopenharmony_cideclare enum UiDirection {
142861847f8eSopenharmony_ci  /**
142961847f8eSopenharmony_ci   * Left.
143061847f8eSopenharmony_ci   *
143161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
143261847f8eSopenharmony_ci   * @since 10
143361847f8eSopenharmony_ci   * @test
143461847f8eSopenharmony_ci   */
143561847f8eSopenharmony_ci  /**
143661847f8eSopenharmony_ci   * Left.
143761847f8eSopenharmony_ci   *
143861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
143961847f8eSopenharmony_ci   * @atomicservice
144061847f8eSopenharmony_ci   * @since 11
144161847f8eSopenharmony_ci   * @test
144261847f8eSopenharmony_ci   */
144361847f8eSopenharmony_ci  /**
144461847f8eSopenharmony_ci   * Left.
144561847f8eSopenharmony_ci   *
144661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
144761847f8eSopenharmony_ci   * @crossplatform
144861847f8eSopenharmony_ci   * @atomicservice
144961847f8eSopenharmony_ci   * @since 12
145061847f8eSopenharmony_ci   * @test
145161847f8eSopenharmony_ci   */
145261847f8eSopenharmony_ci  LEFT = 0,
145361847f8eSopenharmony_ci  /**
145461847f8eSopenharmony_ci   * Right.
145561847f8eSopenharmony_ci   *
145661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
145761847f8eSopenharmony_ci   * @since 10
145861847f8eSopenharmony_ci   * @test
145961847f8eSopenharmony_ci   */
146061847f8eSopenharmony_ci  /**
146161847f8eSopenharmony_ci   * Right.
146261847f8eSopenharmony_ci   *
146361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
146461847f8eSopenharmony_ci   * @atomicservice
146561847f8eSopenharmony_ci   * @since 11
146661847f8eSopenharmony_ci   * @test
146761847f8eSopenharmony_ci   */
146861847f8eSopenharmony_ci  /**
146961847f8eSopenharmony_ci   * Right.
147061847f8eSopenharmony_ci   *
147161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
147261847f8eSopenharmony_ci   * @crossplatform
147361847f8eSopenharmony_ci   * @atomicservice
147461847f8eSopenharmony_ci   * @since 12
147561847f8eSopenharmony_ci   * @test
147661847f8eSopenharmony_ci   */
147761847f8eSopenharmony_ci  RIGHT = 1,
147861847f8eSopenharmony_ci  /**
147961847f8eSopenharmony_ci   * Up.
148061847f8eSopenharmony_ci   *
148161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
148261847f8eSopenharmony_ci   * @since 10
148361847f8eSopenharmony_ci   * @test
148461847f8eSopenharmony_ci   */
148561847f8eSopenharmony_ci  /**
148661847f8eSopenharmony_ci   * Up.
148761847f8eSopenharmony_ci   *
148861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
148961847f8eSopenharmony_ci   * @atomicservice
149061847f8eSopenharmony_ci   * @since 11
149161847f8eSopenharmony_ci   * @test
149261847f8eSopenharmony_ci   */
149361847f8eSopenharmony_ci  /**
149461847f8eSopenharmony_ci   * Up.
149561847f8eSopenharmony_ci   *
149661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
149761847f8eSopenharmony_ci   * @crossplatform
149861847f8eSopenharmony_ci   * @atomicservice
149961847f8eSopenharmony_ci   * @since 12
150061847f8eSopenharmony_ci   * @test
150161847f8eSopenharmony_ci   */
150261847f8eSopenharmony_ci  UP = 2,
150361847f8eSopenharmony_ci  /**
150461847f8eSopenharmony_ci   * Down.
150561847f8eSopenharmony_ci   *
150661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
150761847f8eSopenharmony_ci   * @since 10
150861847f8eSopenharmony_ci   * @test
150961847f8eSopenharmony_ci   */
151061847f8eSopenharmony_ci  /**
151161847f8eSopenharmony_ci   * Down.
151261847f8eSopenharmony_ci   *
151361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
151461847f8eSopenharmony_ci   * @atomicservice
151561847f8eSopenharmony_ci   * @since 11
151661847f8eSopenharmony_ci   * @test
151761847f8eSopenharmony_ci   */
151861847f8eSopenharmony_ci  /**
151961847f8eSopenharmony_ci   * Down.
152061847f8eSopenharmony_ci   *
152161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
152261847f8eSopenharmony_ci   * @crossplatform
152361847f8eSopenharmony_ci   * @atomicservice
152461847f8eSopenharmony_ci   * @since 12
152561847f8eSopenharmony_ci   * @test
152661847f8eSopenharmony_ci   */
152761847f8eSopenharmony_ci  DOWN = 3
152861847f8eSopenharmony_ci}
152961847f8eSopenharmony_ci
153061847f8eSopenharmony_ci/**
153161847f8eSopenharmony_ci * Enumerates the id of the button on the mouse.
153261847f8eSopenharmony_ci *
153361847f8eSopenharmony_ci * @enum { number }
153461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
153561847f8eSopenharmony_ci * @since 10
153661847f8eSopenharmony_ci */
153761847f8eSopenharmony_ci/**
153861847f8eSopenharmony_ci * Enumerates the id of the button on the mouse.
153961847f8eSopenharmony_ci *
154061847f8eSopenharmony_ci * @enum { number }
154161847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
154261847f8eSopenharmony_ci * @atomicservice
154361847f8eSopenharmony_ci * @since 11
154461847f8eSopenharmony_ci */
154561847f8eSopenharmony_cideclare enum MouseButton {
154661847f8eSopenharmony_ci  /**
154761847f8eSopenharmony_ci   * Left button of the mouse.
154861847f8eSopenharmony_ci   *
154961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
155061847f8eSopenharmony_ci   * @since 10
155161847f8eSopenharmony_ci   * @test
155261847f8eSopenharmony_ci   */
155361847f8eSopenharmony_ci  /**
155461847f8eSopenharmony_ci   * Left button of the mouse.
155561847f8eSopenharmony_ci   *
155661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
155761847f8eSopenharmony_ci   * @atomicservice
155861847f8eSopenharmony_ci   * @since 11
155961847f8eSopenharmony_ci   * @test
156061847f8eSopenharmony_ci   */
156161847f8eSopenharmony_ci  MOUSE_BUTTON_LEFT = 0,
156261847f8eSopenharmony_ci  /**
156361847f8eSopenharmony_ci   * Right button of the mouse..
156461847f8eSopenharmony_ci   *
156561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
156661847f8eSopenharmony_ci   * @since 10
156761847f8eSopenharmony_ci   * @test
156861847f8eSopenharmony_ci   */
156961847f8eSopenharmony_ci  /**
157061847f8eSopenharmony_ci   * Right button of the mouse..
157161847f8eSopenharmony_ci   *
157261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
157361847f8eSopenharmony_ci   * @atomicservice
157461847f8eSopenharmony_ci   * @since 11
157561847f8eSopenharmony_ci   * @test
157661847f8eSopenharmony_ci   */
157761847f8eSopenharmony_ci  MOUSE_BUTTON_RIGHT = 1,
157861847f8eSopenharmony_ci  /**
157961847f8eSopenharmony_ci   * MIDDLE button of the mouse.
158061847f8eSopenharmony_ci   *
158161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
158261847f8eSopenharmony_ci   * @since 10
158361847f8eSopenharmony_ci   * @test
158461847f8eSopenharmony_ci   */
158561847f8eSopenharmony_ci  /**
158661847f8eSopenharmony_ci   * MIDDLE button of the mouse.
158761847f8eSopenharmony_ci   *
158861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
158961847f8eSopenharmony_ci   * @atomicservice
159061847f8eSopenharmony_ci   * @since 11
159161847f8eSopenharmony_ci   * @test
159261847f8eSopenharmony_ci   */
159361847f8eSopenharmony_ci  MOUSE_BUTTON_MIDDLE = 2
159461847f8eSopenharmony_ci}
159561847f8eSopenharmony_ci
159661847f8eSopenharmony_ci/**
159761847f8eSopenharmony_ci * Describes the attribute requirements for the target Components.
159861847f8eSopenharmony_ci *
159961847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
160061847f8eSopenharmony_ci * @since 9
160161847f8eSopenharmony_ci */
160261847f8eSopenharmony_ci/**
160361847f8eSopenharmony_ci * Describes the attribute requirements for the target Components.
160461847f8eSopenharmony_ci *
160561847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
160661847f8eSopenharmony_ci * @atomicservice
160761847f8eSopenharmony_ci * @since 11
160861847f8eSopenharmony_ci */
160961847f8eSopenharmony_ci/**
161061847f8eSopenharmony_ci * Describes the attribute requirements for the target Components.
161161847f8eSopenharmony_ci *
161261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
161361847f8eSopenharmony_ci * @crossplatform
161461847f8eSopenharmony_ci * @atomicservice
161561847f8eSopenharmony_ci * @since 12
161661847f8eSopenharmony_ci */
161761847f8eSopenharmony_cideclare class On {
161861847f8eSopenharmony_ci  /**
161961847f8eSopenharmony_ci   * Specifies the text for the target Component.
162061847f8eSopenharmony_ci   *
162161847f8eSopenharmony_ci   * @param { string } txt The text value.
162261847f8eSopenharmony_ci   * @param { MatchPattern } pattern The {@link MatchPattern} of the text value, default to {@link MatchPattern.EQUALS}
162361847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
162461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
162561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
162661847f8eSopenharmony_ci   * @since 9
162761847f8eSopenharmony_ci   * @test
162861847f8eSopenharmony_ci   */
162961847f8eSopenharmony_ci  /**
163061847f8eSopenharmony_ci   * Specifies the text for the target Component.
163161847f8eSopenharmony_ci   *
163261847f8eSopenharmony_ci   * @param { string } txt The text value.
163361847f8eSopenharmony_ci   * @param { MatchPattern } pattern The {@link MatchPattern} of the text value, default to {@link MatchPattern.EQUALS}
163461847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
163561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
163661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
163761847f8eSopenharmony_ci   * @crossplatform
163861847f8eSopenharmony_ci   * @since 10
163961847f8eSopenharmony_ci   * @test
164061847f8eSopenharmony_ci   */
164161847f8eSopenharmony_ci  /**
164261847f8eSopenharmony_ci   * Specifies the text for the target Component.
164361847f8eSopenharmony_ci   *
164461847f8eSopenharmony_ci   * @param { string } txt - the text value.
164561847f8eSopenharmony_ci   * @param { MatchPattern } [pattern] - the {@link MatchPattern} of the text value,Set it default {@link MatchPattern.EQUALS} if null or undefined.
164661847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
164761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
164861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
164961847f8eSopenharmony_ci   * @crossplatform
165061847f8eSopenharmony_ci   * @atomicservice
165161847f8eSopenharmony_ci   * @since 11
165261847f8eSopenharmony_ci   * @test
165361847f8eSopenharmony_ci   */
165461847f8eSopenharmony_ci  text(txt: string, pattern?: MatchPattern): On;
165561847f8eSopenharmony_ci
165661847f8eSopenharmony_ci  /**
165761847f8eSopenharmony_ci   * Specifies the id of the target Component.
165861847f8eSopenharmony_ci   *
165961847f8eSopenharmony_ci   * @param { string } id The id value.
166061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
166161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
166261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
166361847f8eSopenharmony_ci   * @since 9
166461847f8eSopenharmony_ci   * @test
166561847f8eSopenharmony_ci   */
166661847f8eSopenharmony_ci  /**
166761847f8eSopenharmony_ci   * Specifies the id of the target Component.
166861847f8eSopenharmony_ci   *
166961847f8eSopenharmony_ci   * @param { string } id The id value.
167061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
167161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
167261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
167361847f8eSopenharmony_ci   * @crossplatform
167461847f8eSopenharmony_ci   * @since 10
167561847f8eSopenharmony_ci   * @test
167661847f8eSopenharmony_ci   */
167761847f8eSopenharmony_ci  /**
167861847f8eSopenharmony_ci   * Specifies the id of the target Component.
167961847f8eSopenharmony_ci   *
168061847f8eSopenharmony_ci   * @param { string } id - the id value.
168161847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
168261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
168361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
168461847f8eSopenharmony_ci   * @crossplatform
168561847f8eSopenharmony_ci   * @atomicservice
168661847f8eSopenharmony_ci   * @since 11
168761847f8eSopenharmony_ci   * @test
168861847f8eSopenharmony_ci   */
168961847f8eSopenharmony_ci  id(id: string): On;
169061847f8eSopenharmony_ci
169161847f8eSopenharmony_ci  /**
169261847f8eSopenharmony_ci   * Specifies the type of the target Component.
169361847f8eSopenharmony_ci   *
169461847f8eSopenharmony_ci   * @param { string } tp The type value.
169561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
169661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
169761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
169861847f8eSopenharmony_ci   * @since 9
169961847f8eSopenharmony_ci   * @test
170061847f8eSopenharmony_ci   */
170161847f8eSopenharmony_ci  /**
170261847f8eSopenharmony_ci   * Specifies the type of the target Component.
170361847f8eSopenharmony_ci   *
170461847f8eSopenharmony_ci   * @param { string } tp The type value.
170561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
170661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
170761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
170861847f8eSopenharmony_ci   * @crossplatform
170961847f8eSopenharmony_ci   * @since 10
171061847f8eSopenharmony_ci   * @test
171161847f8eSopenharmony_ci   */
171261847f8eSopenharmony_ci  /**
171361847f8eSopenharmony_ci   * Specifies the type of the target Component.
171461847f8eSopenharmony_ci   *
171561847f8eSopenharmony_ci   * @param { string } tp - The type value.
171661847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
171761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
171861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
171961847f8eSopenharmony_ci   * @crossplatform
172061847f8eSopenharmony_ci   * @atomicservice
172161847f8eSopenharmony_ci   * @since 11
172261847f8eSopenharmony_ci   * @test
172361847f8eSopenharmony_ci   */
172461847f8eSopenharmony_ci  type(tp: string): On;
172561847f8eSopenharmony_ci
172661847f8eSopenharmony_ci  /**
172761847f8eSopenharmony_ci   * Specifies the clickable status of the target Component.
172861847f8eSopenharmony_ci   *
172961847f8eSopenharmony_ci   * @param { boolean } b The clickable status,default to true.
173061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
173161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
173261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
173361847f8eSopenharmony_ci   * @since 9
173461847f8eSopenharmony_ci   * @test
173561847f8eSopenharmony_ci   */
173661847f8eSopenharmony_ci  /**
173761847f8eSopenharmony_ci   * Specifies the clickable status of the target Component.
173861847f8eSopenharmony_ci   *
173961847f8eSopenharmony_ci   * @param { boolean } b The clickable status,default to true.
174061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
174161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
174261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
174361847f8eSopenharmony_ci   * @crossplatform
174461847f8eSopenharmony_ci   * @since 10
174561847f8eSopenharmony_ci   * @test
174661847f8eSopenharmony_ci   */
174761847f8eSopenharmony_ci  /**
174861847f8eSopenharmony_ci   * Specifies the clickable status of the target Component.
174961847f8eSopenharmony_ci   *
175061847f8eSopenharmony_ci   * @param { boolean } [b] - the clickable status.Set it default true if null or undefined.
175161847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
175261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
175361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
175461847f8eSopenharmony_ci   * @crossplatform
175561847f8eSopenharmony_ci   * @atomicservice
175661847f8eSopenharmony_ci   * @since 11
175761847f8eSopenharmony_ci   * @test
175861847f8eSopenharmony_ci   */
175961847f8eSopenharmony_ci  clickable(b?: boolean): On;
176061847f8eSopenharmony_ci
176161847f8eSopenharmony_ci  /**
176261847f8eSopenharmony_ci   * Specifies the longClickable status of the target Component.
176361847f8eSopenharmony_ci   *
176461847f8eSopenharmony_ci   * @param { boolean } b The clickable status,default to true.
176561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
176661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
176761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
176861847f8eSopenharmony_ci   * @since 9
176961847f8eSopenharmony_ci   * @test
177061847f8eSopenharmony_ci   */
177161847f8eSopenharmony_ci  /**
177261847f8eSopenharmony_ci   * Specifies the longClickable status of the target Component.
177361847f8eSopenharmony_ci   *
177461847f8eSopenharmony_ci   * @param { boolean } b The clickable status,default to true.
177561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
177661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
177761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
177861847f8eSopenharmony_ci   * @crossplatform
177961847f8eSopenharmony_ci   * @since 10
178061847f8eSopenharmony_ci   * @test
178161847f8eSopenharmony_ci   */
178261847f8eSopenharmony_ci  /**
178361847f8eSopenharmony_ci   * Specifies the longClickable status of the target Component.
178461847f8eSopenharmony_ci   *
178561847f8eSopenharmony_ci   * @param { boolean } [b] - the longClickable status.Set it default true if null or undefined.
178661847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
178761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
178861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
178961847f8eSopenharmony_ci   * @crossplatform
179061847f8eSopenharmony_ci   * @atomicservice
179161847f8eSopenharmony_ci   * @since 11
179261847f8eSopenharmony_ci   * @test
179361847f8eSopenharmony_ci   */
179461847f8eSopenharmony_ci  longClickable(b?: boolean): On;
179561847f8eSopenharmony_ci
179661847f8eSopenharmony_ci  /**
179761847f8eSopenharmony_ci   * Specifies the scrollable status of the target Component.
179861847f8eSopenharmony_ci   *
179961847f8eSopenharmony_ci   * @param { boolean } b The scrollable status,default to true.
180061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
180161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
180261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
180361847f8eSopenharmony_ci   * @since 9
180461847f8eSopenharmony_ci   * @test
180561847f8eSopenharmony_ci   */
180661847f8eSopenharmony_ci  /**
180761847f8eSopenharmony_ci   * Specifies the scrollable status of the target Component.
180861847f8eSopenharmony_ci   *
180961847f8eSopenharmony_ci   * @param { boolean } b The scrollable status,default to true.
181061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
181161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
181261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
181361847f8eSopenharmony_ci   * @crossplatform
181461847f8eSopenharmony_ci   * @since 10
181561847f8eSopenharmony_ci   * @test
181661847f8eSopenharmony_ci   */
181761847f8eSopenharmony_ci  /**
181861847f8eSopenharmony_ci   * Specifies the scrollable status of the target Component.
181961847f8eSopenharmony_ci   *
182061847f8eSopenharmony_ci   * @param { boolean } [b] - the scrollable status.Set it default true if null or undefined.
182161847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
182261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
182361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
182461847f8eSopenharmony_ci   * @crossplatform
182561847f8eSopenharmony_ci   * @atomicservice
182661847f8eSopenharmony_ci   * @since 11
182761847f8eSopenharmony_ci   * @test
182861847f8eSopenharmony_ci   */
182961847f8eSopenharmony_ci  scrollable(b?: boolean): On;
183061847f8eSopenharmony_ci
183161847f8eSopenharmony_ci  /**
183261847f8eSopenharmony_ci   * Specifies the enabled status of the target Component.
183361847f8eSopenharmony_ci   *
183461847f8eSopenharmony_ci   * @param { boolean } b The enabled status,default to true.
183561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
183661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
183761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
183861847f8eSopenharmony_ci   * @since 9
183961847f8eSopenharmony_ci   * @test
184061847f8eSopenharmony_ci   */
184161847f8eSopenharmony_ci  /**
184261847f8eSopenharmony_ci   * Specifies the enabled status of the target Component.
184361847f8eSopenharmony_ci   *
184461847f8eSopenharmony_ci   * @param { boolean } b The enabled status,default to true.
184561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
184661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
184761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
184861847f8eSopenharmony_ci   * @crossplatform
184961847f8eSopenharmony_ci   * @since 10
185061847f8eSopenharmony_ci   * @test
185161847f8eSopenharmony_ci   */
185261847f8eSopenharmony_ci  /**
185361847f8eSopenharmony_ci   * Specifies the enabled status of the target Component.
185461847f8eSopenharmony_ci   *
185561847f8eSopenharmony_ci   * @param { boolean } [b] - the enabled status.Set it default true if null or undefined.
185661847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
185761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
185861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
185961847f8eSopenharmony_ci   * @crossplatform
186061847f8eSopenharmony_ci   * @atomicservice
186161847f8eSopenharmony_ci   * @since 11
186261847f8eSopenharmony_ci   * @test
186361847f8eSopenharmony_ci   */
186461847f8eSopenharmony_ci  enabled(b?: boolean): On;
186561847f8eSopenharmony_ci
186661847f8eSopenharmony_ci  /**
186761847f8eSopenharmony_ci   * Specifies the focused status of the target Component.
186861847f8eSopenharmony_ci   *
186961847f8eSopenharmony_ci   * @param { boolean } b The focused status,default to true.
187061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
187161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
187261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
187361847f8eSopenharmony_ci   * @since 9
187461847f8eSopenharmony_ci   * @test
187561847f8eSopenharmony_ci   */
187661847f8eSopenharmony_ci  /**
187761847f8eSopenharmony_ci   * Specifies the focused status of the target Component.
187861847f8eSopenharmony_ci   *
187961847f8eSopenharmony_ci   * @param { boolean } b The focused status,default to true.
188061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
188161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
188261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
188361847f8eSopenharmony_ci   * @crossplatform
188461847f8eSopenharmony_ci   * @since 10
188561847f8eSopenharmony_ci   * @test
188661847f8eSopenharmony_ci   */
188761847f8eSopenharmony_ci  /**
188861847f8eSopenharmony_ci   * Specifies the focused status of the target Component.
188961847f8eSopenharmony_ci   *
189061847f8eSopenharmony_ci   * @param { boolean } [b] - the focused status.Set it default true if null or undefined.
189161847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
189261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
189361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
189461847f8eSopenharmony_ci   * @crossplatform
189561847f8eSopenharmony_ci   * @atomicservice
189661847f8eSopenharmony_ci   * @since 11
189761847f8eSopenharmony_ci   * @test
189861847f8eSopenharmony_ci   */
189961847f8eSopenharmony_ci  focused(b?: boolean): On;
190061847f8eSopenharmony_ci
190161847f8eSopenharmony_ci  /**
190261847f8eSopenharmony_ci   * Specifies the selected status of the target Component.
190361847f8eSopenharmony_ci   *
190461847f8eSopenharmony_ci   * @param { boolean } b The selected status,default to true.
190561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
190661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
190761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
190861847f8eSopenharmony_ci   * @since 9
190961847f8eSopenharmony_ci   * @test
191061847f8eSopenharmony_ci   */
191161847f8eSopenharmony_ci  /**
191261847f8eSopenharmony_ci   * Specifies the selected status of the target Component.
191361847f8eSopenharmony_ci   *
191461847f8eSopenharmony_ci   * @param { boolean } b The selected status,default to true.
191561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
191661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
191761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
191861847f8eSopenharmony_ci   * @crossplatform
191961847f8eSopenharmony_ci   * @since 10
192061847f8eSopenharmony_ci   * @test
192161847f8eSopenharmony_ci   */
192261847f8eSopenharmony_ci  /**
192361847f8eSopenharmony_ci   * Specifies the selected status of the target Component.
192461847f8eSopenharmony_ci   *
192561847f8eSopenharmony_ci   * @param { boolean } [b] the - selected status.Set it default true if null or undefined.
192661847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
192761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
192861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
192961847f8eSopenharmony_ci   * @crossplatform
193061847f8eSopenharmony_ci   * @atomicservice
193161847f8eSopenharmony_ci   * @since 11
193261847f8eSopenharmony_ci   * @test
193361847f8eSopenharmony_ci   */
193461847f8eSopenharmony_ci  selected(b?: boolean): On;
193561847f8eSopenharmony_ci
193661847f8eSopenharmony_ci  /**
193761847f8eSopenharmony_ci   * Specifies the checked status of the target Component.
193861847f8eSopenharmony_ci   *
193961847f8eSopenharmony_ci   * @param { boolean } b The checked status,default to false.
194061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
194161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
194261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
194361847f8eSopenharmony_ci   * @since 9
194461847f8eSopenharmony_ci   * @test
194561847f8eSopenharmony_ci   */
194661847f8eSopenharmony_ci  /**
194761847f8eSopenharmony_ci   * Specifies the checked status of the target Component.
194861847f8eSopenharmony_ci   *
194961847f8eSopenharmony_ci   * @param { boolean } b The checked status,default to false.
195061847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
195161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
195261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
195361847f8eSopenharmony_ci   * @crossplatform
195461847f8eSopenharmony_ci   * @since 10
195561847f8eSopenharmony_ci   * @test
195661847f8eSopenharmony_ci   */
195761847f8eSopenharmony_ci  /**
195861847f8eSopenharmony_ci   * Specifies the checked status of the target Component.
195961847f8eSopenharmony_ci   *
196061847f8eSopenharmony_ci   * @param { boolean } [b] - the checked status.Set it default false if null or undefined.
196161847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
196261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
196361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
196461847f8eSopenharmony_ci   * @crossplatform
196561847f8eSopenharmony_ci   * @atomicservice
196661847f8eSopenharmony_ci   * @since 11
196761847f8eSopenharmony_ci   * @test
196861847f8eSopenharmony_ci   */
196961847f8eSopenharmony_ci  checked(b?: boolean): On;
197061847f8eSopenharmony_ci
197161847f8eSopenharmony_ci  /**
197261847f8eSopenharmony_ci   * Specifies the checkable status of the target Component.
197361847f8eSopenharmony_ci   *
197461847f8eSopenharmony_ci   * @param { boolean } b The checkable status,default to false.
197561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
197661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
197761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
197861847f8eSopenharmony_ci   * @since 9
197961847f8eSopenharmony_ci   * @test
198061847f8eSopenharmony_ci   */
198161847f8eSopenharmony_ci  /**
198261847f8eSopenharmony_ci   * Specifies the checkable status of the target Component.
198361847f8eSopenharmony_ci   *
198461847f8eSopenharmony_ci   * @param { boolean } b The checkable status,default to false.
198561847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
198661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
198761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
198861847f8eSopenharmony_ci   * @crossplatform
198961847f8eSopenharmony_ci   * @since 10
199061847f8eSopenharmony_ci   * @test
199161847f8eSopenharmony_ci   */
199261847f8eSopenharmony_ci  /**
199361847f8eSopenharmony_ci   * Specifies the checkable status of the target Component.
199461847f8eSopenharmony_ci   *
199561847f8eSopenharmony_ci   * @param { boolean } [b] - the checkable status.Set it default false if null or undefined.
199661847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
199761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. 1. Incorrect parameter types; 2. Parameter verification failed.
199861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
199961847f8eSopenharmony_ci   * @crossplatform
200061847f8eSopenharmony_ci   * @atomicservice
200161847f8eSopenharmony_ci   * @since 11
200261847f8eSopenharmony_ci   * @test
200361847f8eSopenharmony_ci   */
200461847f8eSopenharmony_ci  checkable(b?: boolean): On;
200561847f8eSopenharmony_ci
200661847f8eSopenharmony_ci  /**
200761847f8eSopenharmony_ci   * Requires that the target Component which is before another Component that specified by the given {@link On}
200861847f8eSopenharmony_ci   * object,used to locate Component relatively.
200961847f8eSopenharmony_ci   *
201061847f8eSopenharmony_ci   * @param { On } on Describes the attribute requirements of Component which the target one is in front of.
201161847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
201261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
201361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
201461847f8eSopenharmony_ci   * @since 9
201561847f8eSopenharmony_ci   * @test
201661847f8eSopenharmony_ci   */
201761847f8eSopenharmony_ci  /**
201861847f8eSopenharmony_ci   * Requires that the target Component which is before another Component that specified by the given {@link On}
201961847f8eSopenharmony_ci   * object,used to locate Component relatively.
202061847f8eSopenharmony_ci   *
202161847f8eSopenharmony_ci   * @param { On } on - describes the attribute requirements of Component which the target one is in front of.
202261847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
202361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
202461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
202561847f8eSopenharmony_ci   * @crossplatform
202661847f8eSopenharmony_ci   * @atomicservice
202761847f8eSopenharmony_ci   * @since 11
202861847f8eSopenharmony_ci   * @test
202961847f8eSopenharmony_ci   */
203061847f8eSopenharmony_ci  isBefore(on: On): On;
203161847f8eSopenharmony_ci
203261847f8eSopenharmony_ci  /**
203361847f8eSopenharmony_ci   * Requires that the target Component which is after another Component that specified by the given {@link On}
203461847f8eSopenharmony_ci   * object,used to locate Component relatively.
203561847f8eSopenharmony_ci   *
203661847f8eSopenharmony_ci   * @param { On } on Describes the attribute requirements of Component which the target one is in back of.
203761847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
203861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
203961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
204061847f8eSopenharmony_ci   * @since 9
204161847f8eSopenharmony_ci   * @test
204261847f8eSopenharmony_ci   */
204361847f8eSopenharmony_ci  /**
204461847f8eSopenharmony_ci   * Requires that the target Component which is after another Component that specified by the given {@link On}
204561847f8eSopenharmony_ci   * object,used to locate Component relatively.
204661847f8eSopenharmony_ci   *
204761847f8eSopenharmony_ci   * @param { On } on - describes the attribute requirements of Component which the target one is in back of.
204861847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
204961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
205061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
205161847f8eSopenharmony_ci   * @crossplatform
205261847f8eSopenharmony_ci   * @atomicservice
205361847f8eSopenharmony_ci   * @since 11
205461847f8eSopenharmony_ci   * @test
205561847f8eSopenharmony_ci   */
205661847f8eSopenharmony_ci  isAfter(on: On): On;
205761847f8eSopenharmony_ci
205861847f8eSopenharmony_ci  /**
205961847f8eSopenharmony_ci   * Requires that the target Component which is inside of another Component that specified by the given {@link On}
206061847f8eSopenharmony_ci   * object,used to locate Component relatively.
206161847f8eSopenharmony_ci   *
206261847f8eSopenharmony_ci   * @param { On } on Describes the attribute requirements of Component which the target one is inside of.
206361847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
206461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
206561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
206661847f8eSopenharmony_ci   * @since 10
206761847f8eSopenharmony_ci   * @test
206861847f8eSopenharmony_ci   */
206961847f8eSopenharmony_ci  /**
207061847f8eSopenharmony_ci   * Requires that the target Component which is inside of another Component that specified by the given {@link On}
207161847f8eSopenharmony_ci   * object,used to locate Component relatively.
207261847f8eSopenharmony_ci   *
207361847f8eSopenharmony_ci   * @param { On } on - describes the attribute requirements of Component which the target one is inside of.
207461847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
207561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
207661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
207761847f8eSopenharmony_ci   * @crossplatform
207861847f8eSopenharmony_ci   * @atomicservice
207961847f8eSopenharmony_ci   * @since 11
208061847f8eSopenharmony_ci   * @test
208161847f8eSopenharmony_ci   */
208261847f8eSopenharmony_ci  within(on: On): On;
208361847f8eSopenharmony_ci
208461847f8eSopenharmony_ci  /**
208561847f8eSopenharmony_ci   * Specifies the bundleName of the application which the window that the target Component is located belongs.
208661847f8eSopenharmony_ci   *
208761847f8eSopenharmony_ci   * @param { string } bundleName The bundleName of the specified window.
208861847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
208961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
209061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
209161847f8eSopenharmony_ci   * @since 10
209261847f8eSopenharmony_ci   * @test
209361847f8eSopenharmony_ci   */
209461847f8eSopenharmony_ci  /**
209561847f8eSopenharmony_ci   * Specifies the bundleName of the application which the window that the target Component is located belongs.
209661847f8eSopenharmony_ci   *
209761847f8eSopenharmony_ci   * @param { string } bundleName - the bundleName of the specified window.
209861847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
209961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
210061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
210161847f8eSopenharmony_ci   * @atomicservice
210261847f8eSopenharmony_ci   * @since 11
210361847f8eSopenharmony_ci   * @test
210461847f8eSopenharmony_ci   */
210561847f8eSopenharmony_ci  inWindow(bundleName: string): On;
210661847f8eSopenharmony_ci
210761847f8eSopenharmony_ci  /**
210861847f8eSopenharmony_ci   * Specifies the description for the target Component.
210961847f8eSopenharmony_ci   *
211061847f8eSopenharmony_ci   * @param { string } val - the description value.
211161847f8eSopenharmony_ci   * @param { MatchPattern } [pattern] - the {@link MatchPattern} of description value,set it default {@link MatchPattern.EQUALS} if null or undefined.
211261847f8eSopenharmony_ci   * @returns { On } this {@link On} object.
211361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
211461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
211561847f8eSopenharmony_ci   * @atomicservice
211661847f8eSopenharmony_ci   * @since 11
211761847f8eSopenharmony_ci   * @test
211861847f8eSopenharmony_ci   */
211961847f8eSopenharmony_ci  description(val: string, pattern?: MatchPattern): On;
212061847f8eSopenharmony_ci}
212161847f8eSopenharmony_ci
212261847f8eSopenharmony_ci/**
212361847f8eSopenharmony_ci * Represents an Component of the ohos application,user can perform operations or query attributes on it.
212461847f8eSopenharmony_ci *
212561847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
212661847f8eSopenharmony_ci * @since 9
212761847f8eSopenharmony_ci * @test
212861847f8eSopenharmony_ci */
212961847f8eSopenharmony_ci/**
213061847f8eSopenharmony_ci * Represents an Component of the ohos application,user can perform operations or query attributes on it.
213161847f8eSopenharmony_ci *
213261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
213361847f8eSopenharmony_ci * @atomicservice
213461847f8eSopenharmony_ci * @since 11
213561847f8eSopenharmony_ci * @test
213661847f8eSopenharmony_ci */
213761847f8eSopenharmony_ci/**
213861847f8eSopenharmony_ci * Represents an Component of the ohos application,user can perform operations or query attributes on it.
213961847f8eSopenharmony_ci *
214061847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
214161847f8eSopenharmony_ci * @crossplatform
214261847f8eSopenharmony_ci * @atomicservice
214361847f8eSopenharmony_ci * @since 12
214461847f8eSopenharmony_ci * @test
214561847f8eSopenharmony_ci */
214661847f8eSopenharmony_cideclare class Component {
214761847f8eSopenharmony_ci  /**
214861847f8eSopenharmony_ci   * Click this {@link Component}.
214961847f8eSopenharmony_ci   *
215061847f8eSopenharmony_ci   * @returns { Promise<void> }
215161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
215261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
215361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
215461847f8eSopenharmony_ci   * @since 9
215561847f8eSopenharmony_ci   * @test
215661847f8eSopenharmony_ci   */
215761847f8eSopenharmony_ci  /**
215861847f8eSopenharmony_ci   * Click this {@link Component}.
215961847f8eSopenharmony_ci   *
216061847f8eSopenharmony_ci   * @returns { Promise<void> }
216161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
216261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
216361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
216461847f8eSopenharmony_ci   * @crossplatform
216561847f8eSopenharmony_ci   * @since 10
216661847f8eSopenharmony_ci   * @test
216761847f8eSopenharmony_ci   */
216861847f8eSopenharmony_ci  /**
216961847f8eSopenharmony_ci   * Click this {@link Component}.
217061847f8eSopenharmony_ci   *
217161847f8eSopenharmony_ci   * @returns { Promise<void> }
217261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
217361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
217461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
217561847f8eSopenharmony_ci   * @crossplatform
217661847f8eSopenharmony_ci   * @atomicservice
217761847f8eSopenharmony_ci   * @since 11
217861847f8eSopenharmony_ci   * @test
217961847f8eSopenharmony_ci   */
218061847f8eSopenharmony_ci  click(): Promise<void>;
218161847f8eSopenharmony_ci
218261847f8eSopenharmony_ci  /**
218361847f8eSopenharmony_ci   * Double click this {@link Component}.
218461847f8eSopenharmony_ci   *
218561847f8eSopenharmony_ci   * @returns { Promise<void> }
218661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
218761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
218861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
218961847f8eSopenharmony_ci   * @since 9
219061847f8eSopenharmony_ci   * @test
219161847f8eSopenharmony_ci   */
219261847f8eSopenharmony_ci  /**
219361847f8eSopenharmony_ci   * Double click this {@link Component}.
219461847f8eSopenharmony_ci   *
219561847f8eSopenharmony_ci   * @returns { Promise<void> }
219661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
219761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
219861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
219961847f8eSopenharmony_ci   * @crossplatform
220061847f8eSopenharmony_ci   * @since 10
220161847f8eSopenharmony_ci   * @test
220261847f8eSopenharmony_ci   */
220361847f8eSopenharmony_ci  /**
220461847f8eSopenharmony_ci   * Double click this {@link Component}.
220561847f8eSopenharmony_ci   *
220661847f8eSopenharmony_ci   * @returns { Promise<void> }
220761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
220861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
220961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
221061847f8eSopenharmony_ci   * @crossplatform
221161847f8eSopenharmony_ci   * @atomicservice
221261847f8eSopenharmony_ci   * @since 11
221361847f8eSopenharmony_ci   * @test
221461847f8eSopenharmony_ci   */
221561847f8eSopenharmony_ci  doubleClick(): Promise<void>;
221661847f8eSopenharmony_ci
221761847f8eSopenharmony_ci  /**
221861847f8eSopenharmony_ci   * Long click this {@link Component}.
221961847f8eSopenharmony_ci   *
222061847f8eSopenharmony_ci   * @returns { Promise<void> }
222161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
222261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
222361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
222461847f8eSopenharmony_ci   * @since 9
222561847f8eSopenharmony_ci   * @test
222661847f8eSopenharmony_ci   */
222761847f8eSopenharmony_ci  /**
222861847f8eSopenharmony_ci   * Long click this {@link Component}.
222961847f8eSopenharmony_ci   *
223061847f8eSopenharmony_ci   * @returns { Promise<void> }
223161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
223261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
223361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
223461847f8eSopenharmony_ci   * @crossplatform
223561847f8eSopenharmony_ci   * @since 10
223661847f8eSopenharmony_ci   * @test
223761847f8eSopenharmony_ci   */
223861847f8eSopenharmony_ci  /**
223961847f8eSopenharmony_ci   * Long click this {@link Component}.
224061847f8eSopenharmony_ci   *
224161847f8eSopenharmony_ci   * @returns { Promise<void> }
224261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
224361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
224461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
224561847f8eSopenharmony_ci   * @crossplatform
224661847f8eSopenharmony_ci   * @atomicservice
224761847f8eSopenharmony_ci   * @since 11
224861847f8eSopenharmony_ci   * @test
224961847f8eSopenharmony_ci   */
225061847f8eSopenharmony_ci  longClick(): Promise<void>;
225161847f8eSopenharmony_ci
225261847f8eSopenharmony_ci  /**
225361847f8eSopenharmony_ci   * Get the id attribute value.
225461847f8eSopenharmony_ci   *
225561847f8eSopenharmony_ci   * @returns { Promise<string> } the id value.
225661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
225761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
225861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
225961847f8eSopenharmony_ci   * @since 9
226061847f8eSopenharmony_ci   * @test
226161847f8eSopenharmony_ci   */
226261847f8eSopenharmony_ci  /**
226361847f8eSopenharmony_ci   * Get the id attribute value.
226461847f8eSopenharmony_ci   *
226561847f8eSopenharmony_ci   * @returns { Promise<string> } the id value.
226661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
226761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
226861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
226961847f8eSopenharmony_ci   * @crossplatform
227061847f8eSopenharmony_ci   * @since 10
227161847f8eSopenharmony_ci   * @test
227261847f8eSopenharmony_ci   */
227361847f8eSopenharmony_ci  /**
227461847f8eSopenharmony_ci   * Get the id attribute value.
227561847f8eSopenharmony_ci   *
227661847f8eSopenharmony_ci   * @returns { Promise<string> } the id value.
227761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
227861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
227961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
228061847f8eSopenharmony_ci   * @crossplatform
228161847f8eSopenharmony_ci   * @atomicservice
228261847f8eSopenharmony_ci   * @since 11
228361847f8eSopenharmony_ci   * @test
228461847f8eSopenharmony_ci   */
228561847f8eSopenharmony_ci  getId(): Promise<string>;
228661847f8eSopenharmony_ci
228761847f8eSopenharmony_ci  /**
228861847f8eSopenharmony_ci   * Get the text attribute value.
228961847f8eSopenharmony_ci   *
229061847f8eSopenharmony_ci   * @returns { Promise<string> } the text value.
229161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
229261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
229361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
229461847f8eSopenharmony_ci   * @since 9
229561847f8eSopenharmony_ci   * @test
229661847f8eSopenharmony_ci   */
229761847f8eSopenharmony_ci  /**
229861847f8eSopenharmony_ci   * Get the text attribute value.
229961847f8eSopenharmony_ci   *
230061847f8eSopenharmony_ci   * @returns { Promise<string> } the text value.
230161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
230261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
230361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
230461847f8eSopenharmony_ci   * @crossplatform
230561847f8eSopenharmony_ci   * @since 10
230661847f8eSopenharmony_ci   * @test
230761847f8eSopenharmony_ci   */
230861847f8eSopenharmony_ci  /**
230961847f8eSopenharmony_ci   * Get the text attribute value.
231061847f8eSopenharmony_ci   *
231161847f8eSopenharmony_ci   * @returns { Promise<string> } the text value.
231261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
231361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
231461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
231561847f8eSopenharmony_ci   * @crossplatform
231661847f8eSopenharmony_ci   * @atomicservice
231761847f8eSopenharmony_ci   * @since 11
231861847f8eSopenharmony_ci   * @test
231961847f8eSopenharmony_ci   */
232061847f8eSopenharmony_ci  getText(): Promise<string>;
232161847f8eSopenharmony_ci
232261847f8eSopenharmony_ci  /**
232361847f8eSopenharmony_ci   * Get the type name.
232461847f8eSopenharmony_ci   *
232561847f8eSopenharmony_ci   * @returns { Promise<string> } the type name.
232661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
232761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
232861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
232961847f8eSopenharmony_ci   * @since 9
233061847f8eSopenharmony_ci   * @test
233161847f8eSopenharmony_ci   */
233261847f8eSopenharmony_ci  /**
233361847f8eSopenharmony_ci   * Get the type name.
233461847f8eSopenharmony_ci   *
233561847f8eSopenharmony_ci   * @returns { Promise<string> } the type name.
233661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
233761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
233861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
233961847f8eSopenharmony_ci   * @crossplatform
234061847f8eSopenharmony_ci   * @since 10
234161847f8eSopenharmony_ci   * @test
234261847f8eSopenharmony_ci   */
234361847f8eSopenharmony_ci  /**
234461847f8eSopenharmony_ci   * Get the type name.
234561847f8eSopenharmony_ci   *
234661847f8eSopenharmony_ci   * @returns { Promise<string> } the type name.
234761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
234861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
234961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
235061847f8eSopenharmony_ci   * @crossplatform
235161847f8eSopenharmony_ci   * @atomicservice
235261847f8eSopenharmony_ci   * @since 11
235361847f8eSopenharmony_ci   * @test
235461847f8eSopenharmony_ci   */
235561847f8eSopenharmony_ci  getType(): Promise<string>;
235661847f8eSopenharmony_ci
235761847f8eSopenharmony_ci  /**
235861847f8eSopenharmony_ci   * Get the clickable status of this {@link Component}.
235961847f8eSopenharmony_ci   *
236061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the clickable status.
236161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
236261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
236361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
236461847f8eSopenharmony_ci   * @since 9
236561847f8eSopenharmony_ci   * @test
236661847f8eSopenharmony_ci   */
236761847f8eSopenharmony_ci  /**
236861847f8eSopenharmony_ci   * Get the clickable status of this {@link Component}.
236961847f8eSopenharmony_ci   *
237061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the clickable status.
237161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
237261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
237361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
237461847f8eSopenharmony_ci   * @crossplatform
237561847f8eSopenharmony_ci   * @since 10
237661847f8eSopenharmony_ci   * @test
237761847f8eSopenharmony_ci   */
237861847f8eSopenharmony_ci  /**
237961847f8eSopenharmony_ci   * Get the clickable status of this {@link Component}.
238061847f8eSopenharmony_ci   *
238161847f8eSopenharmony_ci   * @returns { Promise<boolean> } the clickable status.
238261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
238361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
238461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
238561847f8eSopenharmony_ci   * @crossplatform
238661847f8eSopenharmony_ci   * @atomicservice
238761847f8eSopenharmony_ci   * @since 11
238861847f8eSopenharmony_ci   * @test
238961847f8eSopenharmony_ci   */
239061847f8eSopenharmony_ci  isClickable(): Promise<boolean>;
239161847f8eSopenharmony_ci
239261847f8eSopenharmony_ci  /**
239361847f8eSopenharmony_ci   * Get the longClickable status of this {@link Component}.
239461847f8eSopenharmony_ci   *
239561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the longClickable status.
239661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
239761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
239861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
239961847f8eSopenharmony_ci   * @since 9
240061847f8eSopenharmony_ci   * @test
240161847f8eSopenharmony_ci   */
240261847f8eSopenharmony_ci  /**
240361847f8eSopenharmony_ci   * Get the longClickable status of this {@link Component}.
240461847f8eSopenharmony_ci   *
240561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the longClickable status.
240661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
240761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
240861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
240961847f8eSopenharmony_ci   * @crossplatform
241061847f8eSopenharmony_ci   * @since 10
241161847f8eSopenharmony_ci   * @test
241261847f8eSopenharmony_ci   */
241361847f8eSopenharmony_ci  /**
241461847f8eSopenharmony_ci   * Get the clickable status of this {@link Component}.
241561847f8eSopenharmony_ci   *
241661847f8eSopenharmony_ci   * @returns { Promise<boolean> } the clickable status.
241761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
241861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
241961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
242061847f8eSopenharmony_ci   * @crossplatform
242161847f8eSopenharmony_ci   * @atomicservice
242261847f8eSopenharmony_ci   * @since 11
242361847f8eSopenharmony_ci   * @test
242461847f8eSopenharmony_ci   */
242561847f8eSopenharmony_ci  isLongClickable(): Promise<boolean>;
242661847f8eSopenharmony_ci
242761847f8eSopenharmony_ci  /**
242861847f8eSopenharmony_ci   * Get the scrollable status of this {@link Component}.
242961847f8eSopenharmony_ci   *
243061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the scrollable status.
243161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
243261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
243361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
243461847f8eSopenharmony_ci   * @since 9
243561847f8eSopenharmony_ci   * @test
243661847f8eSopenharmony_ci   */
243761847f8eSopenharmony_ci  /**
243861847f8eSopenharmony_ci   * Get the scrollable status of this {@link Component}.
243961847f8eSopenharmony_ci   *
244061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the scrollable status.
244161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
244261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
244361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
244461847f8eSopenharmony_ci   * @crossplatform
244561847f8eSopenharmony_ci   * @since 10
244661847f8eSopenharmony_ci   * @test
244761847f8eSopenharmony_ci   */
244861847f8eSopenharmony_ci  /**
244961847f8eSopenharmony_ci   * Get the scrollable status of this {@link Component}.
245061847f8eSopenharmony_ci   *
245161847f8eSopenharmony_ci   * @returns { Promise<boolean> } the scrollable status.
245261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
245361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
245461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
245561847f8eSopenharmony_ci   * @crossplatform
245661847f8eSopenharmony_ci   * @atomicservice
245761847f8eSopenharmony_ci   * @since 11
245861847f8eSopenharmony_ci   * @test
245961847f8eSopenharmony_ci   */
246061847f8eSopenharmony_ci  isScrollable(): Promise<boolean>;
246161847f8eSopenharmony_ci
246261847f8eSopenharmony_ci  /**
246361847f8eSopenharmony_ci   * Get the enabled status of this {@link Component}.
246461847f8eSopenharmony_ci   *
246561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the enabled status.
246661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
246761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
246861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
246961847f8eSopenharmony_ci   * @since 9
247061847f8eSopenharmony_ci   * @test
247161847f8eSopenharmony_ci   */
247261847f8eSopenharmony_ci  /**
247361847f8eSopenharmony_ci   * Get the enabled status of this {@link Component}.
247461847f8eSopenharmony_ci   *
247561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the enabled status.
247661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
247761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
247861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
247961847f8eSopenharmony_ci   * @crossplatform
248061847f8eSopenharmony_ci   * @since 10
248161847f8eSopenharmony_ci   * @test
248261847f8eSopenharmony_ci   */
248361847f8eSopenharmony_ci  /**
248461847f8eSopenharmony_ci   * Get the enabled status of this {@link Component}.
248561847f8eSopenharmony_ci   *
248661847f8eSopenharmony_ci   * @returns { Promise<boolean> } the enabled status.
248761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
248861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
248961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
249061847f8eSopenharmony_ci   * @crossplatform
249161847f8eSopenharmony_ci   * @atomicservice
249261847f8eSopenharmony_ci   * @since 11
249361847f8eSopenharmony_ci   * @test
249461847f8eSopenharmony_ci   */
249561847f8eSopenharmony_ci  isEnabled(): Promise<boolean>;
249661847f8eSopenharmony_ci
249761847f8eSopenharmony_ci  /**
249861847f8eSopenharmony_ci   * Get the focused status of this {@link Component}.
249961847f8eSopenharmony_ci   *
250061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the focused status.
250161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
250261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
250361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
250461847f8eSopenharmony_ci   * @since 9
250561847f8eSopenharmony_ci   * @test
250661847f8eSopenharmony_ci   */
250761847f8eSopenharmony_ci  /**
250861847f8eSopenharmony_ci   * Get the focused status of this {@link Component}.
250961847f8eSopenharmony_ci   *
251061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the focused status.
251161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
251261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
251361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
251461847f8eSopenharmony_ci   * @crossplatform
251561847f8eSopenharmony_ci   * @since 10
251661847f8eSopenharmony_ci   * @test
251761847f8eSopenharmony_ci   */
251861847f8eSopenharmony_ci  /**
251961847f8eSopenharmony_ci   * Get the focused status of this {@link Component}.
252061847f8eSopenharmony_ci   *
252161847f8eSopenharmony_ci   * @returns { Promise<boolean> } the focused status.
252261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
252361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
252461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
252561847f8eSopenharmony_ci   * @crossplatform
252661847f8eSopenharmony_ci   * @atomicservice
252761847f8eSopenharmony_ci   * @since 11
252861847f8eSopenharmony_ci   * @test
252961847f8eSopenharmony_ci   */
253061847f8eSopenharmony_ci  isFocused(): Promise<boolean>;
253161847f8eSopenharmony_ci
253261847f8eSopenharmony_ci  /**
253361847f8eSopenharmony_ci   * Get the selected status of this {@link Component}.
253461847f8eSopenharmony_ci   *
253561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the selected status.
253661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
253761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
253861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
253961847f8eSopenharmony_ci   * @since 9
254061847f8eSopenharmony_ci   * @test
254161847f8eSopenharmony_ci   */
254261847f8eSopenharmony_ci  /**
254361847f8eSopenharmony_ci   * Get the selected status of this {@link Component}.
254461847f8eSopenharmony_ci   *
254561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the selected status.
254661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
254761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
254861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
254961847f8eSopenharmony_ci   * @crossplatform
255061847f8eSopenharmony_ci   * @since 10
255161847f8eSopenharmony_ci   * @test
255261847f8eSopenharmony_ci   */
255361847f8eSopenharmony_ci  /**
255461847f8eSopenharmony_ci   * Get the selected status of this {@link Component}.
255561847f8eSopenharmony_ci   *
255661847f8eSopenharmony_ci   * @returns { Promise<boolean> } the selected status.
255761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
255861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
255961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
256061847f8eSopenharmony_ci   * @crossplatform
256161847f8eSopenharmony_ci   * @atomicservice
256261847f8eSopenharmony_ci   * @since 11
256361847f8eSopenharmony_ci   * @test
256461847f8eSopenharmony_ci   */
256561847f8eSopenharmony_ci  isSelected(): Promise<boolean>;
256661847f8eSopenharmony_ci
256761847f8eSopenharmony_ci  /**
256861847f8eSopenharmony_ci   * Get the checked status of this {@link Component}.
256961847f8eSopenharmony_ci   *
257061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the checked status.
257161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
257261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
257361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
257461847f8eSopenharmony_ci   * @since 9
257561847f8eSopenharmony_ci   * @test
257661847f8eSopenharmony_ci   */
257761847f8eSopenharmony_ci  /**
257861847f8eSopenharmony_ci   * Get the checked status of this {@link Component}.
257961847f8eSopenharmony_ci   *
258061847f8eSopenharmony_ci   * @returns { Promise<boolean> } the checked status.
258161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
258261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
258361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
258461847f8eSopenharmony_ci   * @crossplatform
258561847f8eSopenharmony_ci   * @since 10
258661847f8eSopenharmony_ci   * @test
258761847f8eSopenharmony_ci   */
258861847f8eSopenharmony_ci  /**
258961847f8eSopenharmony_ci   * Get the checked status of this {@link Component}.
259061847f8eSopenharmony_ci   *
259161847f8eSopenharmony_ci   * @returns { Promise<boolean> } the checked status.
259261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
259361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
259461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
259561847f8eSopenharmony_ci   * @crossplatform
259661847f8eSopenharmony_ci   * @atomicservice
259761847f8eSopenharmony_ci   * @since 11
259861847f8eSopenharmony_ci   * @test
259961847f8eSopenharmony_ci   */
260061847f8eSopenharmony_ci  isChecked(): Promise<boolean>;
260161847f8eSopenharmony_ci
260261847f8eSopenharmony_ci  /**
260361847f8eSopenharmony_ci   * Get the checkable status of this {@link Component}.
260461847f8eSopenharmony_ci   *
260561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the checkable status.
260661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
260761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
260861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
260961847f8eSopenharmony_ci   * @since 9
261061847f8eSopenharmony_ci   * @test
261161847f8eSopenharmony_ci   */
261261847f8eSopenharmony_ci  /**
261361847f8eSopenharmony_ci   * Get the checkable status of this {@link Component}.
261461847f8eSopenharmony_ci   *
261561847f8eSopenharmony_ci   * @returns { Promise<boolean> } the checkable status.
261661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
261761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
261861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
261961847f8eSopenharmony_ci   * @crossplatform
262061847f8eSopenharmony_ci   * @since 10
262161847f8eSopenharmony_ci   * @test
262261847f8eSopenharmony_ci   */
262361847f8eSopenharmony_ci  /**
262461847f8eSopenharmony_ci   * Get the checkable status of this {@link Component}.
262561847f8eSopenharmony_ci   *
262661847f8eSopenharmony_ci   * @returns { Promise<boolean> } the checkable status.
262761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
262861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
262961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
263061847f8eSopenharmony_ci   * @crossplatform
263161847f8eSopenharmony_ci   * @atomicservice
263261847f8eSopenharmony_ci   * @since 11
263361847f8eSopenharmony_ci   * @test
263461847f8eSopenharmony_ci   */
263561847f8eSopenharmony_ci  isCheckable(): Promise<boolean>;
263661847f8eSopenharmony_ci
263761847f8eSopenharmony_ci  /**
263861847f8eSopenharmony_ci   * Inject text to this {@link Component},applicable to TextInput.
263961847f8eSopenharmony_ci   *
264061847f8eSopenharmony_ci   * @param { string } text The text to inject.
264161847f8eSopenharmony_ci   * @returns { Promise<void> }
264261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
264361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
264461847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
264561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
264661847f8eSopenharmony_ci   * @since 9
264761847f8eSopenharmony_ci   * @test
264861847f8eSopenharmony_ci   */
264961847f8eSopenharmony_ci  /**
265061847f8eSopenharmony_ci   * Inject text to this {@link Component},applicable to TextInput.
265161847f8eSopenharmony_ci   *
265261847f8eSopenharmony_ci   * @param { string } text The text to inject.
265361847f8eSopenharmony_ci   * @returns { Promise<void> }
265461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
265561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
265661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
265761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
265861847f8eSopenharmony_ci   * @crossplatform
265961847f8eSopenharmony_ci   * @since 10
266061847f8eSopenharmony_ci   * @test
266161847f8eSopenharmony_ci   */
266261847f8eSopenharmony_ci  /**
266361847f8eSopenharmony_ci   * Inject text to this {@link Component},applicable to TextInput.
266461847f8eSopenharmony_ci   *
266561847f8eSopenharmony_ci   * @param { string } text - the text to inject.
266661847f8eSopenharmony_ci   * @returns { Promise<void> }
266761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
266861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
266961847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
267061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
267161847f8eSopenharmony_ci   * @crossplatform
267261847f8eSopenharmony_ci   * @atomicservice
267361847f8eSopenharmony_ci   * @since 11
267461847f8eSopenharmony_ci   * @test
267561847f8eSopenharmony_ci   */
267661847f8eSopenharmony_ci  inputText(text: string): Promise<void>;
267761847f8eSopenharmony_ci
267861847f8eSopenharmony_ci  /**
267961847f8eSopenharmony_ci   * Clear text of this {@link Component},applicable to TextInput.
268061847f8eSopenharmony_ci   *
268161847f8eSopenharmony_ci   * @returns { Promise<void> }
268261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
268361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
268461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
268561847f8eSopenharmony_ci   * @since 9
268661847f8eSopenharmony_ci   * @test
268761847f8eSopenharmony_ci   */
268861847f8eSopenharmony_ci  /**
268961847f8eSopenharmony_ci   * Clear text of this {@link Component},applicable to TextInput.
269061847f8eSopenharmony_ci   *
269161847f8eSopenharmony_ci   * @returns { Promise<void> }
269261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
269361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
269461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
269561847f8eSopenharmony_ci   * @crossplatform
269661847f8eSopenharmony_ci   * @since 10
269761847f8eSopenharmony_ci   * @test
269861847f8eSopenharmony_ci   */
269961847f8eSopenharmony_ci  /**
270061847f8eSopenharmony_ci   * Clear text of this {@link Component},applicable to TextInput.
270161847f8eSopenharmony_ci   *
270261847f8eSopenharmony_ci   * @returns { Promise<void> }
270361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
270461847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
270561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
270661847f8eSopenharmony_ci   * @crossplatform
270761847f8eSopenharmony_ci   * @atomicservice
270861847f8eSopenharmony_ci   * @since 11
270961847f8eSopenharmony_ci   * @test
271061847f8eSopenharmony_ci   */
271161847f8eSopenharmony_ci  clearText(): Promise<void>;
271261847f8eSopenharmony_ci
271361847f8eSopenharmony_ci  /**
271461847f8eSopenharmony_ci   * Scroll on this {@link Component} to the top,applicable to scrollable one.
271561847f8eSopenharmony_ci   *
271661847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
271761847f8eSopenharmony_ci   * @returns { Promise<void> }
271861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
271961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
272061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
272161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
272261847f8eSopenharmony_ci   * @since 9
272361847f8eSopenharmony_ci   * @test
272461847f8eSopenharmony_ci   */
272561847f8eSopenharmony_ci  /**
272661847f8eSopenharmony_ci   * Scroll on this {@link Component} to the top,applicable to scrollable one.
272761847f8eSopenharmony_ci   *
272861847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
272961847f8eSopenharmony_ci   * @returns { Promise<void> }
273061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
273161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
273261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
273361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
273461847f8eSopenharmony_ci   * @crossplatform
273561847f8eSopenharmony_ci   * @since 10
273661847f8eSopenharmony_ci   * @test
273761847f8eSopenharmony_ci   */
273861847f8eSopenharmony_ci  /**
273961847f8eSopenharmony_ci   * Scroll on this {@link Component} to the top,applicable to scrollable one.
274061847f8eSopenharmony_ci   *
274161847f8eSopenharmony_ci   * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000.Set it default 600 if out of range or null or undefined.
274261847f8eSopenharmony_ci   * @returns { Promise<void> }
274361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
274461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
274561847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
274661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
274761847f8eSopenharmony_ci   * @crossplatform
274861847f8eSopenharmony_ci   * @atomicservice
274961847f8eSopenharmony_ci   * @since 11
275061847f8eSopenharmony_ci   * @test
275161847f8eSopenharmony_ci   */
275261847f8eSopenharmony_ci  scrollToTop(speed?: number): Promise<void>;
275361847f8eSopenharmony_ci
275461847f8eSopenharmony_ci  /**
275561847f8eSopenharmony_ci   * Scroll on this {@link Component} to the bottom,applicable to scrollable one.
275661847f8eSopenharmony_ci   *
275761847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
275861847f8eSopenharmony_ci   * @returns { Promise<void> }
275961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
276061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
276161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
276261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
276361847f8eSopenharmony_ci   * @since 9
276461847f8eSopenharmony_ci   * @test
276561847f8eSopenharmony_ci   */
276661847f8eSopenharmony_ci  /**
276761847f8eSopenharmony_ci   * Scroll on this {@link Component} to the bottom,applicable to scrollable one.
276861847f8eSopenharmony_ci   *
276961847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
277061847f8eSopenharmony_ci   * @returns { Promise<void> }
277161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
277261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
277361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
277461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
277561847f8eSopenharmony_ci   * @crossplatform
277661847f8eSopenharmony_ci   * @since 10
277761847f8eSopenharmony_ci   * @test
277861847f8eSopenharmony_ci   */
277961847f8eSopenharmony_ci  /**
278061847f8eSopenharmony_ci   * Scroll on this {@link Component} to the bottom,applicable to scrollable one.
278161847f8eSopenharmony_ci   *
278261847f8eSopenharmony_ci   * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.
278361847f8eSopenharmony_ci   * @returns { Promise<void> }
278461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 2. Parameter verification failed.
278561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
278661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
278761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
278861847f8eSopenharmony_ci   * @crossplatform
278961847f8eSopenharmony_ci   * @atomicservice
279061847f8eSopenharmony_ci   * @since 11
279161847f8eSopenharmony_ci   * @test
279261847f8eSopenharmony_ci   */
279361847f8eSopenharmony_ci  scrollToBottom(speed?: number): Promise<void>;
279461847f8eSopenharmony_ci
279561847f8eSopenharmony_ci  /**
279661847f8eSopenharmony_ci   * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.
279761847f8eSopenharmony_ci   *
279861847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
279961847f8eSopenharmony_ci   * @returns { Promise<Component> } the found result,or undefined if not found.
280061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
280161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
280261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
280361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
280461847f8eSopenharmony_ci   * @since 9
280561847f8eSopenharmony_ci   * @test
280661847f8eSopenharmony_ci   */
280761847f8eSopenharmony_ci  /**
280861847f8eSopenharmony_ci   * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.
280961847f8eSopenharmony_ci   *
281061847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
281161847f8eSopenharmony_ci   * @returns { Promise<Component> } the found result,or undefined if not found.
281261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
281361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
281461847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
281561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
281661847f8eSopenharmony_ci   * @crossplatform
281761847f8eSopenharmony_ci   * @since 10
281861847f8eSopenharmony_ci   * @test
281961847f8eSopenharmony_ci   */
282061847f8eSopenharmony_ci  /**
282161847f8eSopenharmony_ci   * Scroll on this {@link Component}to find matched {@link Component},applicable to scrollable one.
282261847f8eSopenharmony_ci   *
282361847f8eSopenharmony_ci   * @param { On } on - the attribute requirements of the target {@link Component}.
282461847f8eSopenharmony_ci   * @returns { Promise<Component> } the found result,or undefined if not found.
282561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
282661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
282761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
282861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
282961847f8eSopenharmony_ci   * @crossplatform
283061847f8eSopenharmony_ci   * @atomicservice
283161847f8eSopenharmony_ci   * @since 11
283261847f8eSopenharmony_ci   * @test
283361847f8eSopenharmony_ci   */
283461847f8eSopenharmony_ci  scrollSearch(on: On): Promise<Component>;
283561847f8eSopenharmony_ci
283661847f8eSopenharmony_ci  /**
283761847f8eSopenharmony_ci   * Get the bounds rect of this {@link Component}.
283861847f8eSopenharmony_ci   *
283961847f8eSopenharmony_ci   * @returns { Promise<Rect> } the bounds rect object.
284061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
284161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
284261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
284361847f8eSopenharmony_ci   * @since 9
284461847f8eSopenharmony_ci   * @test
284561847f8eSopenharmony_ci   */
284661847f8eSopenharmony_ci  /**
284761847f8eSopenharmony_ci   * Get the bounds rect of this {@link Component}.
284861847f8eSopenharmony_ci   *
284961847f8eSopenharmony_ci   * @returns { Promise<Rect> } the bounds rect object.
285061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
285161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
285261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
285361847f8eSopenharmony_ci   * @atomicservice
285461847f8eSopenharmony_ci   * @since 11
285561847f8eSopenharmony_ci   * @test
285661847f8eSopenharmony_ci   */
285761847f8eSopenharmony_ci  /**
285861847f8eSopenharmony_ci   * Get the bounds rect of this {@link Component}.
285961847f8eSopenharmony_ci   *
286061847f8eSopenharmony_ci   * @returns { Promise<Rect> } the bounds rect object.
286161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
286261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
286361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
286461847f8eSopenharmony_ci   * @crossplatform
286561847f8eSopenharmony_ci   * @atomicservice
286661847f8eSopenharmony_ci   * @since 12
286761847f8eSopenharmony_ci   * @test
286861847f8eSopenharmony_ci   */ 
286961847f8eSopenharmony_ci  getBounds(): Promise<Rect>;
287061847f8eSopenharmony_ci
287161847f8eSopenharmony_ci  /**
287261847f8eSopenharmony_ci   * Get the boundsCenter of this {@link Component}.
287361847f8eSopenharmony_ci   *
287461847f8eSopenharmony_ci   * @returns { Promise<Point> } the boundsCenter object.
287561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
287661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
287761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
287861847f8eSopenharmony_ci   * @since 9
287961847f8eSopenharmony_ci   * @test
288061847f8eSopenharmony_ci   */
288161847f8eSopenharmony_ci  /**
288261847f8eSopenharmony_ci   * Get the boundsCenter of this {@link Component}.
288361847f8eSopenharmony_ci   *
288461847f8eSopenharmony_ci   * @returns { Promise<Point> } the boundsCenter object.
288561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
288661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
288761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
288861847f8eSopenharmony_ci   * @crossplatform
288961847f8eSopenharmony_ci   * @since 10
289061847f8eSopenharmony_ci   * @test
289161847f8eSopenharmony_ci   */
289261847f8eSopenharmony_ci  /**
289361847f8eSopenharmony_ci   * Get the boundsCenter of this {@link Component}.
289461847f8eSopenharmony_ci   *
289561847f8eSopenharmony_ci   * @returns { Promise<Point> } the boundsCenter object.
289661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
289761847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
289861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
289961847f8eSopenharmony_ci   * @crossplatform
290061847f8eSopenharmony_ci   * @atomicservice
290161847f8eSopenharmony_ci   * @since 11
290261847f8eSopenharmony_ci   * @test
290361847f8eSopenharmony_ci   */
290461847f8eSopenharmony_ci  getBoundsCenter(): Promise<Point>;
290561847f8eSopenharmony_ci
290661847f8eSopenharmony_ci  /**
290761847f8eSopenharmony_ci   * Drag this {@link Component} to the bounds rect of target Component.
290861847f8eSopenharmony_ci   *
290961847f8eSopenharmony_ci   * @param { Component } target The target {@link Component}.
291061847f8eSopenharmony_ci   * @returns { Promise<void> }
291161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
291261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
291361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
291461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
291561847f8eSopenharmony_ci   * @since 9
291661847f8eSopenharmony_ci   * @test
291761847f8eSopenharmony_ci   */
291861847f8eSopenharmony_ci  /**
291961847f8eSopenharmony_ci   * Drag this {@link Component} to the bounds rect of target Component.
292061847f8eSopenharmony_ci   *
292161847f8eSopenharmony_ci   * @param { Component } target - the target {@link Component}.
292261847f8eSopenharmony_ci   * @returns { Promise<void> }
292361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
292461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
292561847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
292661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
292761847f8eSopenharmony_ci   * @atomicservice
292861847f8eSopenharmony_ci   * @since 11
292961847f8eSopenharmony_ci   * @test
293061847f8eSopenharmony_ci   */
293161847f8eSopenharmony_ci  dragTo(target: Component): Promise<void>;
293261847f8eSopenharmony_ci
293361847f8eSopenharmony_ci  /**
293461847f8eSopenharmony_ci   * Pinch enlarge this {@link Component} to the target scale.
293561847f8eSopenharmony_ci   *
293661847f8eSopenharmony_ci   * @param { number } scale The scale of the pinch enlarge this {@link Component}'s size.
293761847f8eSopenharmony_ci   * @returns { Promise<void> }
293861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
293961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
294061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
294161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
294261847f8eSopenharmony_ci   * @since 9
294361847f8eSopenharmony_ci   * @test
294461847f8eSopenharmony_ci   */
294561847f8eSopenharmony_ci  /**
294661847f8eSopenharmony_ci   * Pinch enlarge this {@link Component} to the target scale.
294761847f8eSopenharmony_ci   *
294861847f8eSopenharmony_ci   * @param { number } scale - the scale of the pinch enlarge this {@link Component}'s size, ranges greater than 1.
294961847f8eSopenharmony_ci   * @returns { Promise<void> }
295061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
295161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
295261847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
295361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
295461847f8eSopenharmony_ci   * @crossplatform
295561847f8eSopenharmony_ci   * @atomicservice
295661847f8eSopenharmony_ci   * @since 11
295761847f8eSopenharmony_ci   * @test
295861847f8eSopenharmony_ci   */
295961847f8eSopenharmony_ci  pinchOut(scale: number): Promise<void>;
296061847f8eSopenharmony_ci
296161847f8eSopenharmony_ci  /**
296261847f8eSopenharmony_ci   * Pinch shrink this {@link Component} to the target scale.
296361847f8eSopenharmony_ci   *
296461847f8eSopenharmony_ci   * @param { number } scale The scale of the pinch shrink this {@link Component}'s size.
296561847f8eSopenharmony_ci   * @returns { Promise<void> }
296661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
296761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
296861847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the component is invisible or destroyed.
296961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
297061847f8eSopenharmony_ci   * @since 9
297161847f8eSopenharmony_ci   * @test
297261847f8eSopenharmony_ci   */
297361847f8eSopenharmony_ci  /**
297461847f8eSopenharmony_ci   * Pinch shrink this {@link Component} to the target scale.
297561847f8eSopenharmony_ci   *
297661847f8eSopenharmony_ci   * @param { number } scale - the scale of the pinch shrink this {@link Component}'s size, ranges from 0 to 1.
297761847f8eSopenharmony_ci   * @returns { Promise<void> }
297861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
297961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
298061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
298161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
298261847f8eSopenharmony_ci   * @crossplatform
298361847f8eSopenharmony_ci   * @atomicservice
298461847f8eSopenharmony_ci   * @since 11
298561847f8eSopenharmony_ci   * @test
298661847f8eSopenharmony_ci   */
298761847f8eSopenharmony_ci  pinchIn(scale: number): Promise<void>;
298861847f8eSopenharmony_ci
298961847f8eSopenharmony_ci  /**
299061847f8eSopenharmony_ci   * Get the description attribute value.
299161847f8eSopenharmony_ci   *
299261847f8eSopenharmony_ci   * @returns { Promise<string> } the description value.
299361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
299461847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
299561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
299661847f8eSopenharmony_ci   * @atomicservice
299761847f8eSopenharmony_ci   * @since 11
299861847f8eSopenharmony_ci   * @test
299961847f8eSopenharmony_ci   */
300061847f8eSopenharmony_ci  getDescription(): Promise<string>;
300161847f8eSopenharmony_ci}
300261847f8eSopenharmony_ci
300361847f8eSopenharmony_ci/**
300461847f8eSopenharmony_ci * The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform
300561847f8eSopenharmony_ci * coordinates-based UI actions,capture screen and so on.
300661847f8eSopenharmony_ci *
300761847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
300861847f8eSopenharmony_ci * @since 9
300961847f8eSopenharmony_ci * @test
301061847f8eSopenharmony_ci */
301161847f8eSopenharmony_ci/**
301261847f8eSopenharmony_ci * The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform
301361847f8eSopenharmony_ci * coordinates-based UI actions,capture screen and so on.
301461847f8eSopenharmony_ci *
301561847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
301661847f8eSopenharmony_ci * @atomicservice
301761847f8eSopenharmony_ci * @since 11
301861847f8eSopenharmony_ci * @test
301961847f8eSopenharmony_ci */
302061847f8eSopenharmony_ci/**
302161847f8eSopenharmony_ci * The unified facade of UiTest framework,can be used to find {@link Component},trigger keyEvents,perform
302261847f8eSopenharmony_ci * coordinates-based UI actions,capture screen and so on.
302361847f8eSopenharmony_ci *
302461847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
302561847f8eSopenharmony_ci * @crossplatform
302661847f8eSopenharmony_ci * @atomicservice
302761847f8eSopenharmony_ci * @since 12
302861847f8eSopenharmony_ci * @test
302961847f8eSopenharmony_ci */
303061847f8eSopenharmony_cideclare class Driver {
303161847f8eSopenharmony_ci  /**
303261847f8eSopenharmony_ci   * Create an {@link Driver} object.
303361847f8eSopenharmony_ci   *
303461847f8eSopenharmony_ci   * @returns { Driver } the {@link Driver} object.
303561847f8eSopenharmony_ci   * @throws { BusinessError } 17000001 - if the test framework failed to initialize.
303661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
303761847f8eSopenharmony_ci   * @since 9
303861847f8eSopenharmony_ci   * @test
303961847f8eSopenharmony_ci   */
304061847f8eSopenharmony_ci  /**
304161847f8eSopenharmony_ci   * Create an {@link Driver} object.
304261847f8eSopenharmony_ci   *
304361847f8eSopenharmony_ci   * @returns { Driver } the {@link Driver} object.
304461847f8eSopenharmony_ci   * @throws { BusinessError } 17000001 - if the test framework failed to initialize.
304561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
304661847f8eSopenharmony_ci   * @crossplatform
304761847f8eSopenharmony_ci   * @since 10
304861847f8eSopenharmony_ci   * @test
304961847f8eSopenharmony_ci   */
305061847f8eSopenharmony_ci  /**
305161847f8eSopenharmony_ci   * Create an {@link Driver} object.
305261847f8eSopenharmony_ci   *
305361847f8eSopenharmony_ci   * @returns { Driver } the {@link Driver} object.
305461847f8eSopenharmony_ci   * @throws { BusinessError } 17000001 - Initialization failed.
305561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
305661847f8eSopenharmony_ci   * @crossplatform
305761847f8eSopenharmony_ci   * @atomicservice
305861847f8eSopenharmony_ci   * @since 11
305961847f8eSopenharmony_ci   * @test
306061847f8eSopenharmony_ci   */
306161847f8eSopenharmony_ci  static create(): Driver;
306261847f8eSopenharmony_ci
306361847f8eSopenharmony_ci  /**
306461847f8eSopenharmony_ci   * Delay with specified duration.
306561847f8eSopenharmony_ci   *
306661847f8eSopenharmony_ci   * @param { number } duration The delay duration in milliseconds.
306761847f8eSopenharmony_ci   * @returns { Promise<void> }
306861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
306961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
307061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
307161847f8eSopenharmony_ci   * @since 9
307261847f8eSopenharmony_ci   * @test
307361847f8eSopenharmony_ci   */
307461847f8eSopenharmony_ci  /**
307561847f8eSopenharmony_ci   * Delay with specified duration.
307661847f8eSopenharmony_ci   *
307761847f8eSopenharmony_ci   * @param { number } duration The delay duration in milliseconds.
307861847f8eSopenharmony_ci   * @returns { Promise<void> }
307961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
308061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
308161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
308261847f8eSopenharmony_ci   * @crossplatform
308361847f8eSopenharmony_ci   * @since 10
308461847f8eSopenharmony_ci   * @test
308561847f8eSopenharmony_ci   */
308661847f8eSopenharmony_ci  /**
308761847f8eSopenharmony_ci   * Delay with specified duration.
308861847f8eSopenharmony_ci   *
308961847f8eSopenharmony_ci   * @param { number } duration - the delay duration in milliseconds, not less than 0.
309061847f8eSopenharmony_ci   * @returns { Promise<void> }
309161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
309261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
309361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
309461847f8eSopenharmony_ci   * @crossplatform
309561847f8eSopenharmony_ci   * @atomicservice
309661847f8eSopenharmony_ci   * @since 11
309761847f8eSopenharmony_ci   * @test
309861847f8eSopenharmony_ci   */
309961847f8eSopenharmony_ci  delayMs(duration: number): Promise<void>;
310061847f8eSopenharmony_ci
310161847f8eSopenharmony_ci  /**
310261847f8eSopenharmony_ci   * Find the first matched {@link Component} on current UI.
310361847f8eSopenharmony_ci   *
310461847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
310561847f8eSopenharmony_ci   * @returns { Promise<Component> } the first matched {@link Component} or undefined.
310661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
310761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
310861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
310961847f8eSopenharmony_ci   * @since 9
311061847f8eSopenharmony_ci   * @test
311161847f8eSopenharmony_ci   */
311261847f8eSopenharmony_ci  /**
311361847f8eSopenharmony_ci   * Find the first matched {@link Component} on current UI.
311461847f8eSopenharmony_ci   *
311561847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
311661847f8eSopenharmony_ci   * @returns { Promise<Component> } the first matched {@link Component} or undefined.
311761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
311861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
311961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
312061847f8eSopenharmony_ci   * @crossplatform
312161847f8eSopenharmony_ci   * @since 10
312261847f8eSopenharmony_ci   * @test
312361847f8eSopenharmony_ci   */
312461847f8eSopenharmony_ci  /**
312561847f8eSopenharmony_ci   * Find the first matched {@link Component} on current UI.
312661847f8eSopenharmony_ci   *
312761847f8eSopenharmony_ci   * @param { On } on - the attribute requirements of the target {@link Component}.
312861847f8eSopenharmony_ci   * @returns { Promise<Component> } the first matched {@link Component} or undefined.
312961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
313061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
313161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
313261847f8eSopenharmony_ci   * @crossplatform
313361847f8eSopenharmony_ci   * @atomicservice
313461847f8eSopenharmony_ci   * @since 11
313561847f8eSopenharmony_ci   * @test
313661847f8eSopenharmony_ci   */
313761847f8eSopenharmony_ci  findComponent(on: On): Promise<Component>;
313861847f8eSopenharmony_ci
313961847f8eSopenharmony_ci  /**
314061847f8eSopenharmony_ci   * Find the first matched {@link UiWindow} window.
314161847f8eSopenharmony_ci   *
314261847f8eSopenharmony_ci   * @param { WindowFilter } filter The filer condition of the target {@link UiWindow}.
314361847f8eSopenharmony_ci   * @returns { Promise<UiWindow> } the first matched {@link UiWindow} or undefined.
314461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
314561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
314661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
314761847f8eSopenharmony_ci   * @since 9
314861847f8eSopenharmony_ci   * @test
314961847f8eSopenharmony_ci   */
315061847f8eSopenharmony_ci  /**
315161847f8eSopenharmony_ci   * Find the first matched {@link UiWindow} window.
315261847f8eSopenharmony_ci   *
315361847f8eSopenharmony_ci   * @param { WindowFilter } filter - the filer condition of the target {@link UiWindow}.
315461847f8eSopenharmony_ci   * @returns { Promise<UiWindow> } the first matched {@link UiWindow} or undefined.
315561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
315661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
315761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
315861847f8eSopenharmony_ci   * @atomicservice
315961847f8eSopenharmony_ci   * @since 11
316061847f8eSopenharmony_ci   * @test
316161847f8eSopenharmony_ci   */
316261847f8eSopenharmony_ci  findWindow(filter: WindowFilter): Promise<UiWindow>;
316361847f8eSopenharmony_ci
316461847f8eSopenharmony_ci  /**
316561847f8eSopenharmony_ci   * Find the first matched {@link Component} on current UI during the time given.
316661847f8eSopenharmony_ci   *
316761847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
316861847f8eSopenharmony_ci   * @param { number } time Duration of finding in milliseconds
316961847f8eSopenharmony_ci   * @returns { Promise<Component> } the first matched {@link Component} or undefined.
317061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
317161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
317261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
317361847f8eSopenharmony_ci   * @since 9
317461847f8eSopenharmony_ci   * @test
317561847f8eSopenharmony_ci   */
317661847f8eSopenharmony_ci  /**
317761847f8eSopenharmony_ci   * Find the first matched {@link Component} on current UI during the time given.
317861847f8eSopenharmony_ci   *
317961847f8eSopenharmony_ci   * @param { On } on - the attribute requirements of the target {@link Component}.
318061847f8eSopenharmony_ci   * @param { number } time - duration of finding in milliseconds, not less than 0.
318161847f8eSopenharmony_ci   * @returns { Promise<Component> } the first matched {@link Component} or undefined.
318261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
318361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
318461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
318561847f8eSopenharmony_ci   * @atomicservice
318661847f8eSopenharmony_ci   * @since 11
318761847f8eSopenharmony_ci   * @test
318861847f8eSopenharmony_ci   */
318961847f8eSopenharmony_ci  waitForComponent(on: On, time: number): Promise<Component>;
319061847f8eSopenharmony_ci
319161847f8eSopenharmony_ci  /**
319261847f8eSopenharmony_ci   * Find all the matched {@link Component}s on current UI.
319361847f8eSopenharmony_ci   *
319461847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
319561847f8eSopenharmony_ci   * @returns { Promise<Array<Component>> } the matched {@link Component}s list.
319661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
319761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
319861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
319961847f8eSopenharmony_ci   * @since 9
320061847f8eSopenharmony_ci   * @test
320161847f8eSopenharmony_ci   */
320261847f8eSopenharmony_ci  /**
320361847f8eSopenharmony_ci   * Find all the matched {@link Component}s on current UI.
320461847f8eSopenharmony_ci   *
320561847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
320661847f8eSopenharmony_ci   * @returns { Promise<Array<Component>> } the matched {@link Component}s list.
320761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
320861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
320961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
321061847f8eSopenharmony_ci   * @crossplatform
321161847f8eSopenharmony_ci   * @since 10
321261847f8eSopenharmony_ci   * @test
321361847f8eSopenharmony_ci   */
321461847f8eSopenharmony_ci  /**
321561847f8eSopenharmony_ci   * Find all the matched {@link Component}s on current UI.
321661847f8eSopenharmony_ci   *
321761847f8eSopenharmony_ci   * @param { On } on - the attribute requirements of the target {@link Component}.
321861847f8eSopenharmony_ci   * @returns { Promise<Array<Component>> } the matched {@link Component}s list.
321961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
322061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
322161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
322261847f8eSopenharmony_ci   * @crossplatform
322361847f8eSopenharmony_ci   * @atomicservice
322461847f8eSopenharmony_ci   * @since 11
322561847f8eSopenharmony_ci   * @test
322661847f8eSopenharmony_ci   */
322761847f8eSopenharmony_ci  findComponents(on: On): Promise<Array<Component>>;
322861847f8eSopenharmony_ci
322961847f8eSopenharmony_ci  /**
323061847f8eSopenharmony_ci   * Assert t the matched {@link Component}s exists on current UI;if not,assertError will be raised.
323161847f8eSopenharmony_ci   *
323261847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
323361847f8eSopenharmony_ci   * @returns { Promise<void> }
323461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
323561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
323661847f8eSopenharmony_ci   * @throws { BusinessError } 17000003 - if the assertion failed.
323761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
323861847f8eSopenharmony_ci   * @since 9
323961847f8eSopenharmony_ci   * @test
324061847f8eSopenharmony_ci   */
324161847f8eSopenharmony_ci  /**
324261847f8eSopenharmony_ci   * Assert t the matched {@link Component}s exists on current UI;if not,assertError will be raised.
324361847f8eSopenharmony_ci   *
324461847f8eSopenharmony_ci   * @param { On } on The attribute requirements of the target {@link Component}.
324561847f8eSopenharmony_ci   * @returns { Promise<void> }
324661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
324761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
324861847f8eSopenharmony_ci   * @throws { BusinessError } 17000003 - if the assertion failed.
324961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
325061847f8eSopenharmony_ci   * @crossplatform
325161847f8eSopenharmony_ci   * @since 10
325261847f8eSopenharmony_ci   * @test
325361847f8eSopenharmony_ci   */
325461847f8eSopenharmony_ci  /**
325561847f8eSopenharmony_ci   * Assert t the matched {@link Component}s exists on current UI;if not,assertError will be raised.
325661847f8eSopenharmony_ci   *
325761847f8eSopenharmony_ci   * @param { On } on - the attribute requirements of the target {@link Component}.
325861847f8eSopenharmony_ci   * @returns { Promise<void> }
325961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
326061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
326161847f8eSopenharmony_ci   * @throws { BusinessError } 17000003 - Assertion failed.
326261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
326361847f8eSopenharmony_ci   * @crossplatform
326461847f8eSopenharmony_ci   * @atomicservice
326561847f8eSopenharmony_ci   * @since 11
326661847f8eSopenharmony_ci   * @test
326761847f8eSopenharmony_ci   */
326861847f8eSopenharmony_ci  assertComponentExist(on: On): Promise<void>;
326961847f8eSopenharmony_ci
327061847f8eSopenharmony_ci  /**
327161847f8eSopenharmony_ci   * Press the BACK key.
327261847f8eSopenharmony_ci   *
327361847f8eSopenharmony_ci   * @returns { Promise<void> }
327461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
327561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
327661847f8eSopenharmony_ci   * @since 9
327761847f8eSopenharmony_ci   * @test
327861847f8eSopenharmony_ci   */
327961847f8eSopenharmony_ci  /**
328061847f8eSopenharmony_ci   * Press the BACK key.
328161847f8eSopenharmony_ci   *
328261847f8eSopenharmony_ci   * @returns { Promise<void> }
328361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
328461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
328561847f8eSopenharmony_ci   * @crossplatform
328661847f8eSopenharmony_ci   * @since 10
328761847f8eSopenharmony_ci   * @test
328861847f8eSopenharmony_ci   */
328961847f8eSopenharmony_ci  /**
329061847f8eSopenharmony_ci   * Press the BACK key.
329161847f8eSopenharmony_ci   *
329261847f8eSopenharmony_ci   * @returns { Promise<void> }
329361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
329461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
329561847f8eSopenharmony_ci   * @crossplatform
329661847f8eSopenharmony_ci   * @atomicservice
329761847f8eSopenharmony_ci   * @since 11
329861847f8eSopenharmony_ci   * @test
329961847f8eSopenharmony_ci   */
330061847f8eSopenharmony_ci  pressBack(): Promise<void>;
330161847f8eSopenharmony_ci
330261847f8eSopenharmony_ci  /**
330361847f8eSopenharmony_ci   * Press the specified key.
330461847f8eSopenharmony_ci   *
330561847f8eSopenharmony_ci   * @param { number } keyCode the target keyCode.
330661847f8eSopenharmony_ci   * @returns { Promise<void> }
330761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
330861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
330961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
331061847f8eSopenharmony_ci   * @since 9
331161847f8eSopenharmony_ci   * @test
331261847f8eSopenharmony_ci   */
331361847f8eSopenharmony_ci  /**
331461847f8eSopenharmony_ci   * Press the specified key.
331561847f8eSopenharmony_ci   *
331661847f8eSopenharmony_ci   * @param { number } keyCode - the target keyCode.
331761847f8eSopenharmony_ci   * @returns { Promise<void> }
331861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
331961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
332061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
332161847f8eSopenharmony_ci   * @crossplatform
332261847f8eSopenharmony_ci   * @atomicservice
332361847f8eSopenharmony_ci   * @since 11
332461847f8eSopenharmony_ci   * @test
332561847f8eSopenharmony_ci   */
332661847f8eSopenharmony_ci  triggerKey(keyCode: number): Promise<void>;
332761847f8eSopenharmony_ci
332861847f8eSopenharmony_ci  /**
332961847f8eSopenharmony_ci   * Press two or three key combinations
333061847f8eSopenharmony_ci   *
333161847f8eSopenharmony_ci   * @param { number } key0 the first keyCode.
333261847f8eSopenharmony_ci   * @param { number } key1 the second keyCode.
333361847f8eSopenharmony_ci   * @param { number } key2 the third keyCode.
333461847f8eSopenharmony_ci   * @returns { Promise<void> }
333561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
333661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
333761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
333861847f8eSopenharmony_ci   * @since 9
333961847f8eSopenharmony_ci   * @test
334061847f8eSopenharmony_ci   */
334161847f8eSopenharmony_ci  /**
334261847f8eSopenharmony_ci   * Press two or three key combinations
334361847f8eSopenharmony_ci   *
334461847f8eSopenharmony_ci   * @param { number } key0 - the first keyCode.
334561847f8eSopenharmony_ci   * @param { number } key1 - the second keyCode.
334661847f8eSopenharmony_ci   * @param { number } [key2] - the third keyCode,set it default 0 if null or undefined.
334761847f8eSopenharmony_ci   * @returns { Promise<void> }
334861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
334961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
335061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
335161847f8eSopenharmony_ci   * @crossplatform
335261847f8eSopenharmony_ci   * @atomicservice
335361847f8eSopenharmony_ci   * @since 11
335461847f8eSopenharmony_ci   * @test
335561847f8eSopenharmony_ci   */
335661847f8eSopenharmony_ci  triggerCombineKeys(key0: number, key1: number, key2?: number): Promise<void>;
335761847f8eSopenharmony_ci
335861847f8eSopenharmony_ci  /**
335961847f8eSopenharmony_ci   * Click on the specified location on the screen.
336061847f8eSopenharmony_ci   *
336161847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
336261847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
336361847f8eSopenharmony_ci   * @returns { Promise<void> }
336461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
336561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
336661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
336761847f8eSopenharmony_ci   * @since 9
336861847f8eSopenharmony_ci   * @test
336961847f8eSopenharmony_ci   */
337061847f8eSopenharmony_ci  /**
337161847f8eSopenharmony_ci   * Click on the specified location on the screen.
337261847f8eSopenharmony_ci   *
337361847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
337461847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
337561847f8eSopenharmony_ci   * @returns { Promise<void> }
337661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
337761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
337861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
337961847f8eSopenharmony_ci   * @crossplatform
338061847f8eSopenharmony_ci   * @since 10
338161847f8eSopenharmony_ci   * @test
338261847f8eSopenharmony_ci   */
338361847f8eSopenharmony_ci  /**
338461847f8eSopenharmony_ci   * Click on the specified location on the screen.
338561847f8eSopenharmony_ci   *
338661847f8eSopenharmony_ci   * @param { number } x - the x-coordinate, not less than 0.
338761847f8eSopenharmony_ci   * @param { number } y - the y-coordinate, not less than 0.
338861847f8eSopenharmony_ci   * @returns { Promise<void> }
338961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
339061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
339161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
339261847f8eSopenharmony_ci   * @crossplatform
339361847f8eSopenharmony_ci   * @atomicservice
339461847f8eSopenharmony_ci   * @since 11
339561847f8eSopenharmony_ci   * @test
339661847f8eSopenharmony_ci   */
339761847f8eSopenharmony_ci  click(x: number, y: number): Promise<void>;
339861847f8eSopenharmony_ci
339961847f8eSopenharmony_ci  /**
340061847f8eSopenharmony_ci   * DoubleClick on the specified location on the screen.
340161847f8eSopenharmony_ci   *
340261847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
340361847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
340461847f8eSopenharmony_ci   * @returns { Promise<void> }
340561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
340661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
340761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
340861847f8eSopenharmony_ci   * @since 9
340961847f8eSopenharmony_ci   * @test
341061847f8eSopenharmony_ci   */
341161847f8eSopenharmony_ci  /**
341261847f8eSopenharmony_ci   * DoubleClick on the specified location on the screen.
341361847f8eSopenharmony_ci   *
341461847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
341561847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
341661847f8eSopenharmony_ci   * @returns { Promise<void> }
341761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
341861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
341961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
342061847f8eSopenharmony_ci   * @crossplatform
342161847f8eSopenharmony_ci   * @since 10
342261847f8eSopenharmony_ci   * @test
342361847f8eSopenharmony_ci   */
342461847f8eSopenharmony_ci  /**
342561847f8eSopenharmony_ci   * DoubleClick on the specified location on the screen.
342661847f8eSopenharmony_ci   *
342761847f8eSopenharmony_ci   * @param { number } x - the x-coordinate, not less than 0.
342861847f8eSopenharmony_ci   * @param { number } y - the y-coordinate, not less than 0.
342961847f8eSopenharmony_ci   * @returns { Promise<void> }
343061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
343161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
343261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
343361847f8eSopenharmony_ci   * @crossplatform
343461847f8eSopenharmony_ci   * @atomicservice
343561847f8eSopenharmony_ci   * @since 11
343661847f8eSopenharmony_ci   * @test
343761847f8eSopenharmony_ci   */
343861847f8eSopenharmony_ci  doubleClick(x: number, y: number): Promise<void>;
343961847f8eSopenharmony_ci
344061847f8eSopenharmony_ci  /**
344161847f8eSopenharmony_ci   * LongClick on the specified location on the screen.
344261847f8eSopenharmony_ci   *
344361847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
344461847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
344561847f8eSopenharmony_ci   * @returns { Promise<void> }
344661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
344761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
344861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
344961847f8eSopenharmony_ci   * @since 9
345061847f8eSopenharmony_ci   * @test
345161847f8eSopenharmony_ci   */
345261847f8eSopenharmony_ci  /**
345361847f8eSopenharmony_ci   * LongClick on the specified location on the screen.
345461847f8eSopenharmony_ci   *
345561847f8eSopenharmony_ci   * @param { number } x The x-coordinate.
345661847f8eSopenharmony_ci   * @param { number } y The y-coordinate.
345761847f8eSopenharmony_ci   * @returns { Promise<void> }
345861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
345961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
346061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
346161847f8eSopenharmony_ci   * @crossplatform
346261847f8eSopenharmony_ci   * @since 10
346361847f8eSopenharmony_ci   * @test
346461847f8eSopenharmony_ci   */
346561847f8eSopenharmony_ci  /**
346661847f8eSopenharmony_ci   * LongClick on the specified location on the screen.
346761847f8eSopenharmony_ci   *
346861847f8eSopenharmony_ci   * @param { number } x - the x-coordinate, not less than 0.
346961847f8eSopenharmony_ci   * @param { number } y - the y-coordinate, not less than 0.
347061847f8eSopenharmony_ci   * @returns { Promise<void> }
347161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
347261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
347361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
347461847f8eSopenharmony_ci   * @crossplatform
347561847f8eSopenharmony_ci   * @atomicservice
347661847f8eSopenharmony_ci   * @since 11
347761847f8eSopenharmony_ci   * @test
347861847f8eSopenharmony_ci   */
347961847f8eSopenharmony_ci  longClick(x: number, y: number): Promise<void>;
348061847f8eSopenharmony_ci
348161847f8eSopenharmony_ci  /**
348261847f8eSopenharmony_ci   * Swipe on the screen between the specified points.
348361847f8eSopenharmony_ci   *
348461847f8eSopenharmony_ci   * @param { number } startx The x-coordinate of the starting point.
348561847f8eSopenharmony_ci   * @param { number } starty The y-coordinate of the starting point.
348661847f8eSopenharmony_ci   * @param { number } endx The x-coordinate of the ending point.
348761847f8eSopenharmony_ci   * @param { number } endy The y-coordinate of the ending point.
348861847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
348961847f8eSopenharmony_ci   * @returns { Promise<void> }
349061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
349161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
349261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
349361847f8eSopenharmony_ci   * @since 9
349461847f8eSopenharmony_ci   * @test
349561847f8eSopenharmony_ci   */
349661847f8eSopenharmony_ci  /**
349761847f8eSopenharmony_ci   * Swipe on the screen between the specified points.
349861847f8eSopenharmony_ci   *
349961847f8eSopenharmony_ci   * @param { number } startx The x-coordinate of the starting point.
350061847f8eSopenharmony_ci   * @param { number } starty The y-coordinate of the starting point.
350161847f8eSopenharmony_ci   * @param { number } endx The x-coordinate of the ending point.
350261847f8eSopenharmony_ci   * @param { number } endy The y-coordinate of the ending point.
350361847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
350461847f8eSopenharmony_ci   * @returns { Promise<void> }
350561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
350661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
350761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
350861847f8eSopenharmony_ci   * @crossplatform
350961847f8eSopenharmony_ci   * @since 10
351061847f8eSopenharmony_ci   * @test
351161847f8eSopenharmony_ci   */
351261847f8eSopenharmony_ci  /**
351361847f8eSopenharmony_ci   * Swipe on the screen between the specified points.
351461847f8eSopenharmony_ci   *
351561847f8eSopenharmony_ci   * @param { number } startx - the x-coordinate of the starting point, not less than 0.
351661847f8eSopenharmony_ci   * @param { number } starty - the y-coordinate of the starting point, not less than 0.
351761847f8eSopenharmony_ci   * @param { number } endx - the x-coordinate of the ending point, not less than 0.
351861847f8eSopenharmony_ci   * @param { number } endy - the y-coordinate of the ending point, not less than 0.
351961847f8eSopenharmony_ci   * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.
352061847f8eSopenharmony_ci   * @returns { Promise<void> }
352161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
352261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
352361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
352461847f8eSopenharmony_ci   * @crossplatform
352561847f8eSopenharmony_ci   * @atomicservice
352661847f8eSopenharmony_ci   * @since 11
352761847f8eSopenharmony_ci   * @test
352861847f8eSopenharmony_ci   */
352961847f8eSopenharmony_ci  swipe(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise<void>;
353061847f8eSopenharmony_ci
353161847f8eSopenharmony_ci  /**
353261847f8eSopenharmony_ci   * Drag on the screen between the specified points.
353361847f8eSopenharmony_ci   *
353461847f8eSopenharmony_ci   * @param { number } startx The x-coordinate of the starting point.
353561847f8eSopenharmony_ci   * @param { number } starty The y-coordinate of the starting point.
353661847f8eSopenharmony_ci   * @param { number } endx The x-coordinate of the ending point.
353761847f8eSopenharmony_ci   * @param { number } endy The y-coordinate of the ending point.
353861847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
353961847f8eSopenharmony_ci   * @returns { Promise<void> }
354061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
354161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
354261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
354361847f8eSopenharmony_ci   * @since 9
354461847f8eSopenharmony_ci   * @test
354561847f8eSopenharmony_ci   */
354661847f8eSopenharmony_ci  /**
354761847f8eSopenharmony_ci   * Drag on the screen between the specified points.
354861847f8eSopenharmony_ci   *
354961847f8eSopenharmony_ci   * @param { number } startx - the x-coordinate of the starting point, not less than 0.
355061847f8eSopenharmony_ci   * @param { number } starty - the y-coordinate of the starting point, not less than 0.
355161847f8eSopenharmony_ci   * @param { number } endx - the x-coordinate of the ending point, not less than 0.
355261847f8eSopenharmony_ci   * @param { number } endy - the y-coordinate of the ending point, not less than 0.
355361847f8eSopenharmony_ci   * @param { number } [speed] the speed of drag(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.
355461847f8eSopenharmony_ci   * @returns { Promise<void> }
355561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
355661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
355761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
355861847f8eSopenharmony_ci   * @atomicservice
355961847f8eSopenharmony_ci   * @since 11
356061847f8eSopenharmony_ci   * @test
356161847f8eSopenharmony_ci   */
356261847f8eSopenharmony_ci  drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise<void>;
356361847f8eSopenharmony_ci
356461847f8eSopenharmony_ci  /**
356561847f8eSopenharmony_ci   * Capture current screen and save as picture which PNG format.
356661847f8eSopenharmony_ci   *
356761847f8eSopenharmony_ci   * @param { string } savePath the path where to store the picture.
356861847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.
356961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
357061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
357161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
357261847f8eSopenharmony_ci   * @since 9
357361847f8eSopenharmony_ci   * @test
357461847f8eSopenharmony_ci   */
357561847f8eSopenharmony_ci  /**
357661847f8eSopenharmony_ci   * Capture current screen and save as picture which PNG format.
357761847f8eSopenharmony_ci   *
357861847f8eSopenharmony_ci   * @param { string } savePath - the path where to store the picture, must be in the application sandbox directory.
357961847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.
358061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
358161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
358261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
358361847f8eSopenharmony_ci   * @atomicservice
358461847f8eSopenharmony_ci   * @since 11
358561847f8eSopenharmony_ci   * @test
358661847f8eSopenharmony_ci   */
358761847f8eSopenharmony_ci  screenCap(savePath: string): Promise<boolean>;
358861847f8eSopenharmony_ci
358961847f8eSopenharmony_ci  /**
359061847f8eSopenharmony_ci   * Set the rotation of the device display.
359161847f8eSopenharmony_ci   *
359261847f8eSopenharmony_ci   * @param { DisplayRotation } rotation The target rotation to set.
359361847f8eSopenharmony_ci   * @returns { Promise<void> }
359461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
359561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
359661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
359761847f8eSopenharmony_ci   * @since 9
359861847f8eSopenharmony_ci   * @test
359961847f8eSopenharmony_ci   */
360061847f8eSopenharmony_ci  /**
360161847f8eSopenharmony_ci   * Set the rotation of the device display.
360261847f8eSopenharmony_ci   *
360361847f8eSopenharmony_ci   * @param { DisplayRotation } rotation - the target rotation to set.
360461847f8eSopenharmony_ci   * @returns { Promise<void> }
360561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
360661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
360761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
360861847f8eSopenharmony_ci   * @atomicservice
360961847f8eSopenharmony_ci   * @since 11
361061847f8eSopenharmony_ci   * @test
361161847f8eSopenharmony_ci   */
361261847f8eSopenharmony_ci  setDisplayRotation(rotation: DisplayRotation): Promise<void>;
361361847f8eSopenharmony_ci
361461847f8eSopenharmony_ci  /**
361561847f8eSopenharmony_ci   * Get the rotation of the device display.
361661847f8eSopenharmony_ci   *
361761847f8eSopenharmony_ci   * @returns { Promise<DisplayRotation> } the current display rotation.
361861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
361961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
362061847f8eSopenharmony_ci   * @since 9
362161847f8eSopenharmony_ci   * @test
362261847f8eSopenharmony_ci   */
362361847f8eSopenharmony_ci  /**
362461847f8eSopenharmony_ci   * Get the rotation of the device display.
362561847f8eSopenharmony_ci   *
362661847f8eSopenharmony_ci   * @returns { Promise<DisplayRotation> } the current display rotation.
362761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
362861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
362961847f8eSopenharmony_ci   * @atomicservice
363061847f8eSopenharmony_ci   * @since 11
363161847f8eSopenharmony_ci   * @test
363261847f8eSopenharmony_ci   */
363361847f8eSopenharmony_ci  getDisplayRotation(): Promise<DisplayRotation>;
363461847f8eSopenharmony_ci
363561847f8eSopenharmony_ci  /**
363661847f8eSopenharmony_ci   * Enable/disable the rotation of device display.
363761847f8eSopenharmony_ci   *
363861847f8eSopenharmony_ci   * @param { boolean } enabled Enable the rotation or not.
363961847f8eSopenharmony_ci   * @returns { Promise<void> }
364061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
364161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
364261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
364361847f8eSopenharmony_ci   * @since 9
364461847f8eSopenharmony_ci   * @test
364561847f8eSopenharmony_ci   */
364661847f8eSopenharmony_ci  /**
364761847f8eSopenharmony_ci   * Enable/disable the rotation of device display.
364861847f8eSopenharmony_ci   *
364961847f8eSopenharmony_ci   * @param { boolean } enabled - enable the rotation or not.
365061847f8eSopenharmony_ci   * @returns { Promise<void> }
365161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
365261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
365361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
365461847f8eSopenharmony_ci   * @atomicservice
365561847f8eSopenharmony_ci   * @since 11
365661847f8eSopenharmony_ci   * @test
365761847f8eSopenharmony_ci   */
365861847f8eSopenharmony_ci  setDisplayRotationEnabled(enabled: boolean): Promise<void>;
365961847f8eSopenharmony_ci
366061847f8eSopenharmony_ci  /**
366161847f8eSopenharmony_ci   * Get the size of the device display.
366261847f8eSopenharmony_ci   *
366361847f8eSopenharmony_ci   * @returns { Promise<Point> } the size of the device display.
366461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
366561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
366661847f8eSopenharmony_ci   * @since 9
366761847f8eSopenharmony_ci   * @test
366861847f8eSopenharmony_ci   */
366961847f8eSopenharmony_ci  /**
367061847f8eSopenharmony_ci   * Get the size of the device display.
367161847f8eSopenharmony_ci   *
367261847f8eSopenharmony_ci   * @returns { Promise<Point> } the size of the device display.
367361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
367461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
367561847f8eSopenharmony_ci   * @atomicservice
367661847f8eSopenharmony_ci   * @since 11
367761847f8eSopenharmony_ci   * @test
367861847f8eSopenharmony_ci   */
367961847f8eSopenharmony_ci  getDisplaySize(): Promise<Point>;
368061847f8eSopenharmony_ci
368161847f8eSopenharmony_ci  /**
368261847f8eSopenharmony_ci   * Get the density of the device display.
368361847f8eSopenharmony_ci   *
368461847f8eSopenharmony_ci   * @returns { Promise<Point> } the density of the device display.
368561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
368661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
368761847f8eSopenharmony_ci   * @since 9
368861847f8eSopenharmony_ci   * @test
368961847f8eSopenharmony_ci   */
369061847f8eSopenharmony_ci  /**
369161847f8eSopenharmony_ci   * Get the density of the device display.
369261847f8eSopenharmony_ci   *
369361847f8eSopenharmony_ci   * @returns { Promise<Point> } the density of the device display.
369461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
369561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
369661847f8eSopenharmony_ci   * @atomicservice
369761847f8eSopenharmony_ci   * @since 11
369861847f8eSopenharmony_ci   * @test
369961847f8eSopenharmony_ci   */
370061847f8eSopenharmony_ci  getDisplayDensity(): Promise<Point>;
370161847f8eSopenharmony_ci
370261847f8eSopenharmony_ci  /**
370361847f8eSopenharmony_ci   * Wake up the device display.
370461847f8eSopenharmony_ci   *
370561847f8eSopenharmony_ci   * @returns { Promise<void> }
370661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
370761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
370861847f8eSopenharmony_ci   * @since 9
370961847f8eSopenharmony_ci   * @test
371061847f8eSopenharmony_ci   */
371161847f8eSopenharmony_ci  /**
371261847f8eSopenharmony_ci   * Wake up the device display.
371361847f8eSopenharmony_ci   *
371461847f8eSopenharmony_ci   * @returns { Promise<void> }
371561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
371661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
371761847f8eSopenharmony_ci   * @atomicservice
371861847f8eSopenharmony_ci   * @since 11
371961847f8eSopenharmony_ci   * @test
372061847f8eSopenharmony_ci   */
372161847f8eSopenharmony_ci  wakeUpDisplay(): Promise<void>;
372261847f8eSopenharmony_ci
372361847f8eSopenharmony_ci  /**
372461847f8eSopenharmony_ci   * Press the home key.
372561847f8eSopenharmony_ci   *
372661847f8eSopenharmony_ci   * @returns { Promise<void> }
372761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
372861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
372961847f8eSopenharmony_ci   * @since 9
373061847f8eSopenharmony_ci   * @test
373161847f8eSopenharmony_ci   */
373261847f8eSopenharmony_ci  /**
373361847f8eSopenharmony_ci   * Press the home key.
373461847f8eSopenharmony_ci   *
373561847f8eSopenharmony_ci   * @returns { Promise<void> }
373661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
373761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
373861847f8eSopenharmony_ci   * @atomicservice
373961847f8eSopenharmony_ci   * @since 11
374061847f8eSopenharmony_ci   * @test
374161847f8eSopenharmony_ci   */
374261847f8eSopenharmony_ci  pressHome(): Promise<void>;
374361847f8eSopenharmony_ci
374461847f8eSopenharmony_ci  /**
374561847f8eSopenharmony_ci   * Wait for the UI become idle.
374661847f8eSopenharmony_ci   *
374761847f8eSopenharmony_ci   * @param { number } idleTime the threshold of UI idle time, in millisecond.
374861847f8eSopenharmony_ci   * @param { number } timeout The maximum time to wait for idle, in millisecond.
374961847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if wait for idle succeed in the timeout, false otherwise.
375061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
375161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
375261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
375361847f8eSopenharmony_ci   * @since 9
375461847f8eSopenharmony_ci   * @test
375561847f8eSopenharmony_ci   */
375661847f8eSopenharmony_ci  /**
375761847f8eSopenharmony_ci   * Wait for the UI become idle.
375861847f8eSopenharmony_ci   *
375961847f8eSopenharmony_ci   * @param { number } idleTime - the threshold of UI idle time, in millisecond, not less than 0.
376061847f8eSopenharmony_ci   * @param { number } timeout - the maximum time to wait for idle, in millisecond, not less than 0.
376161847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if wait for idle succeed in the timeout, false otherwise.
376261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
376361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
376461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
376561847f8eSopenharmony_ci   * @atomicservice
376661847f8eSopenharmony_ci   * @since 11
376761847f8eSopenharmony_ci   * @test
376861847f8eSopenharmony_ci   */
376961847f8eSopenharmony_ci  waitForIdle(idleTime: number, timeout: number): Promise<boolean>;
377061847f8eSopenharmony_ci
377161847f8eSopenharmony_ci  /**
377261847f8eSopenharmony_ci   * Inject fling on the device display.
377361847f8eSopenharmony_ci   *
377461847f8eSopenharmony_ci   * @param { Point } from The coordinate point where the finger touches the screen.
377561847f8eSopenharmony_ci   * @param { Point } to The coordinate point where the finger leaves the screen.
377661847f8eSopenharmony_ci   * @param { number } stepLen the length of each step, in pixels.
377761847f8eSopenharmony_ci   * @param { number } speed The speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
377861847f8eSopenharmony_ci   * @returns { Promise<void> }
377961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
378061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
378161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
378261847f8eSopenharmony_ci   * @since 9
378361847f8eSopenharmony_ci   * @test
378461847f8eSopenharmony_ci   */
378561847f8eSopenharmony_ci  /**
378661847f8eSopenharmony_ci   * Inject fling on the device display.
378761847f8eSopenharmony_ci   *
378861847f8eSopenharmony_ci   * @param { Point } from The coordinate point where the finger touches the screen.
378961847f8eSopenharmony_ci   * @param { Point } to The coordinate point where the finger leaves the screen.
379061847f8eSopenharmony_ci   * @param { number } stepLen the length of each step, in pixels.
379161847f8eSopenharmony_ci   * @param { number } speed The speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
379261847f8eSopenharmony_ci   * @returns { Promise<void> }
379361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
379461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
379561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
379661847f8eSopenharmony_ci   * @crossplatform
379761847f8eSopenharmony_ci   * @since 10
379861847f8eSopenharmony_ci   * @test
379961847f8eSopenharmony_ci   */
380061847f8eSopenharmony_ci  /**
380161847f8eSopenharmony_ci   * Inject fling on the device display.
380261847f8eSopenharmony_ci   *
380361847f8eSopenharmony_ci   * @param { Point } from - the coordinate point where the finger touches the screen.
380461847f8eSopenharmony_ci   * @param { Point } to - the coordinate point where the finger leaves the screen.
380561847f8eSopenharmony_ci   * @param { number } stepLen - the length of each step, in pixels.
380661847f8eSopenharmony_ci   * @param { number } [speed] - the speed of fling(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.
380761847f8eSopenharmony_ci   * @returns { Promise<void> }
380861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
380961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
381061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
381161847f8eSopenharmony_ci   * @crossplatform
381261847f8eSopenharmony_ci   * @atomicservice
381361847f8eSopenharmony_ci   * @since 11
381461847f8eSopenharmony_ci   * @test
381561847f8eSopenharmony_ci   */
381661847f8eSopenharmony_ci  fling(from: Point, to: Point, stepLen: number, speed: number): Promise<void>;
381761847f8eSopenharmony_ci
381861847f8eSopenharmony_ci  /**
381961847f8eSopenharmony_ci   * Inject multi-pointer action on the device display.
382061847f8eSopenharmony_ci   *
382161847f8eSopenharmony_ci   * @param { PointerMatrix } pointers The two-dimensional array of pointers to inject.
382261847f8eSopenharmony_ci   * @param { number } speed The speed of swipe (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
382361847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if the operation finished, false
382461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
382561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
382661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
382761847f8eSopenharmony_ci   * @since 9
382861847f8eSopenharmony_ci   * @test
382961847f8eSopenharmony_ci   */
383061847f8eSopenharmony_ci  /**
383161847f8eSopenharmony_ci   * Inject multi-pointer action on the device display.
383261847f8eSopenharmony_ci   *
383361847f8eSopenharmony_ci   * @param { PointerMatrix } pointers - the two-dimensional array of pointers to inject.
383461847f8eSopenharmony_ci   * @param { number } [speed] - the speed of swipe(pixels per second),ranges from 200 to 40000. Set it default 600 if out of range or null or undefined.
383561847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if the operation finished, false
383661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
383761847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
383861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
383961847f8eSopenharmony_ci   * @crossplatform
384061847f8eSopenharmony_ci   * @atomicservice
384161847f8eSopenharmony_ci   * @since 11
384261847f8eSopenharmony_ci   * @test
384361847f8eSopenharmony_ci   */
384461847f8eSopenharmony_ci  injectMultiPointerAction(pointers: PointerMatrix, speed?: number): Promise<boolean>;
384561847f8eSopenharmony_ci
384661847f8eSopenharmony_ci  /**
384761847f8eSopenharmony_ci   * Inject fling on the device display.
384861847f8eSopenharmony_ci   *
384961847f8eSopenharmony_ci   * @param { UiDirection } direction The direction of this action.
385061847f8eSopenharmony_ci   * @param { number } speed The speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
385161847f8eSopenharmony_ci   * @returns { Promise<void> }
385261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
385361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
385461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
385561847f8eSopenharmony_ci   * @since 10
385661847f8eSopenharmony_ci   * @test
385761847f8eSopenharmony_ci   */
385861847f8eSopenharmony_ci  /**
385961847f8eSopenharmony_ci   * Inject fling on the device display.
386061847f8eSopenharmony_ci   *
386161847f8eSopenharmony_ci   * @param { UiDirection } direction - the direction of this action.
386261847f8eSopenharmony_ci   * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
386361847f8eSopenharmony_ci   * @returns { Promise<void> }
386461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
386561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
386661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
386761847f8eSopenharmony_ci   * @atomicservice
386861847f8eSopenharmony_ci   * @since 11
386961847f8eSopenharmony_ci   * @test
387061847f8eSopenharmony_ci   */
387161847f8eSopenharmony_ci  /**
387261847f8eSopenharmony_ci   * Inject fling on the device display.
387361847f8eSopenharmony_ci   *
387461847f8eSopenharmony_ci   * @param { UiDirection } direction - the direction of this action.
387561847f8eSopenharmony_ci   * @param { number } speed - the speed of fling (pixels per second),default is 600,the value ranges from 200 to 40000,set it 600 if out of range.
387661847f8eSopenharmony_ci   * @returns { Promise<void> }
387761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
387861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
387961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
388061847f8eSopenharmony_ci   * @crossplatform
388161847f8eSopenharmony_ci   * @atomicservice
388261847f8eSopenharmony_ci   * @since 12
388361847f8eSopenharmony_ci   * @test
388461847f8eSopenharmony_ci   */
388561847f8eSopenharmony_ci  fling(direction: UiDirection, speed: number): Promise<void>;
388661847f8eSopenharmony_ci
388761847f8eSopenharmony_ci  /**
388861847f8eSopenharmony_ci   * Click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.
388961847f8eSopenharmony_ci   *
389061847f8eSopenharmony_ci   * @param { Point } p The coordinate of the specified location.
389161847f8eSopenharmony_ci   * @param { MouseButton } btnId The button of Mouse.
389261847f8eSopenharmony_ci   * @param { number } key1 the first keyCode.
389361847f8eSopenharmony_ci   * @param { number } key2 the second keyCode.
389461847f8eSopenharmony_ci   * @returns { Promise<void> }
389561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
389661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
389761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
389861847f8eSopenharmony_ci   * @since 10
389961847f8eSopenharmony_ci   * @test
390061847f8eSopenharmony_ci   */
390161847f8eSopenharmony_ci  /**
390261847f8eSopenharmony_ci   * Click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.
390361847f8eSopenharmony_ci   *
390461847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
390561847f8eSopenharmony_ci   * @param { MouseButton } btnId - the button of Mouse.
390661847f8eSopenharmony_ci   * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.
390761847f8eSopenharmony_ci   * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.
390861847f8eSopenharmony_ci   * @returns { Promise<void> }
390961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
391061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
391161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
391261847f8eSopenharmony_ci   * @atomicservice
391361847f8eSopenharmony_ci   * @since 11
391461847f8eSopenharmony_ci   * @test
391561847f8eSopenharmony_ci   */
391661847f8eSopenharmony_ci  mouseClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise<void>;
391761847f8eSopenharmony_ci
391861847f8eSopenharmony_ci  /**
391961847f8eSopenharmony_ci   * Move the mouse cursor to the specified location.
392061847f8eSopenharmony_ci   *
392161847f8eSopenharmony_ci   * @param { Point } p The coordinate of the specified location.
392261847f8eSopenharmony_ci   * @returns { Promise<void> }
392361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
392461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
392561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
392661847f8eSopenharmony_ci   * @since 10
392761847f8eSopenharmony_ci   * @test
392861847f8eSopenharmony_ci   */
392961847f8eSopenharmony_ci  /**
393061847f8eSopenharmony_ci   * Move the mouse cursor to the specified location.
393161847f8eSopenharmony_ci   *
393261847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
393361847f8eSopenharmony_ci   * @returns { Promise<void> }
393461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
393561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
393661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
393761847f8eSopenharmony_ci   * @atomicservice
393861847f8eSopenharmony_ci   * @since 11
393961847f8eSopenharmony_ci   * @test
394061847f8eSopenharmony_ci   */
394161847f8eSopenharmony_ci  mouseMoveTo(p: Point): Promise<void>;
394261847f8eSopenharmony_ci
394361847f8eSopenharmony_ci  /**
394461847f8eSopenharmony_ci   * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary.
394561847f8eSopenharmony_ci   *
394661847f8eSopenharmony_ci   * @param { Point } p The coordinate of the specified location.
394761847f8eSopenharmony_ci   * @param { boolean } down Whether the mouse wheel rolls down.
394861847f8eSopenharmony_ci   * @param { number } d The number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels.
394961847f8eSopenharmony_ci   * @param { number } key1 the first keyCode.
395061847f8eSopenharmony_ci   * @param { number } key2 the second keyCode.
395161847f8eSopenharmony_ci   * @returns { Promise<void> }
395261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
395361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
395461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
395561847f8eSopenharmony_ci   * @since 10
395661847f8eSopenharmony_ci   * @test
395761847f8eSopenharmony_ci   */
395861847f8eSopenharmony_ci  /**
395961847f8eSopenharmony_ci   * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary.
396061847f8eSopenharmony_ci   *
396161847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
396261847f8eSopenharmony_ci   * @param { boolean } down - whether the mouse wheel rolls down.
396361847f8eSopenharmony_ci   * @param { number } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels.
396461847f8eSopenharmony_ci   * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.
396561847f8eSopenharmony_ci   * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.
396661847f8eSopenharmony_ci   * @returns { Promise<void> }
396761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
396861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
396961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
397061847f8eSopenharmony_ci   * @atomicservice
397161847f8eSopenharmony_ci   * @since 11
397261847f8eSopenharmony_ci   * @test
397361847f8eSopenharmony_ci   */
397461847f8eSopenharmony_ci  mouseScroll(p: Point, down: boolean, d: number, key1?: number, key2?: number): Promise<void>;
397561847f8eSopenharmony_ci  /**
397661847f8eSopenharmony_ci   * The mouse wheel scrolls the specified cell at the specified position, and press the specified key simultaneously if necessary.
397761847f8eSopenharmony_ci   *
397861847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
397961847f8eSopenharmony_ci   * @param { boolean } down - whether the mouse wheel rolls down.
398061847f8eSopenharmony_ci   * @param { number } d - the number of cells that the mouse wheel scrolls, each cell will make the target point shift 120 pixels.
398161847f8eSopenharmony_ci   * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.
398261847f8eSopenharmony_ci   * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.
398361847f8eSopenharmony_ci   * @param { number } [speed] - The Speed of mouse wheel rolls(cells per second),ranges from 1 to 500.Set it default 20 if out of range or null or undefined.
398461847f8eSopenharmony_ci   * @returns { Promise<void> }
398561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
398661847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
398761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
398861847f8eSopenharmony_ci   * @atomicservice
398961847f8eSopenharmony_ci   * @since 11
399061847f8eSopenharmony_ci   * @test
399161847f8eSopenharmony_ci   */
399261847f8eSopenharmony_ci  mouseScroll(p: Point, down: boolean, d: number, key1?: number, key2?: number, speed?: number): Promise<void>;
399361847f8eSopenharmony_ci
399461847f8eSopenharmony_ci  /**
399561847f8eSopenharmony_ci   * Capture the specified area of current screen and save as picture which PNG format.
399661847f8eSopenharmony_ci   *
399761847f8eSopenharmony_ci   * @param { string } savePath the path where to store the picture.
399861847f8eSopenharmony_ci   * @param { Rect } rect The specified area of current screen, default to full screen.
399961847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.
400061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
400161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
400261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
400361847f8eSopenharmony_ci   * @since 10
400461847f8eSopenharmony_ci   * @test
400561847f8eSopenharmony_ci   */
400661847f8eSopenharmony_ci  /**
400761847f8eSopenharmony_ci   * Capture the specified area of current screen and save as picture which PNG format.
400861847f8eSopenharmony_ci   *
400961847f8eSopenharmony_ci   * @param { string } savePath - the path where to store the picture, must be in the application sandbox directory.
401061847f8eSopenharmony_ci   * @param { Rect } [rect] - the specified area of current screen, default to full screen.Set it default if null or undefined.
401161847f8eSopenharmony_ci   * @returns { Promise<boolean> } true if screen-capturing and file-storing are completed successfully,false otherwise.
401261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
401361847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
401461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
401561847f8eSopenharmony_ci   * @atomicservice
401661847f8eSopenharmony_ci   * @since 11
401761847f8eSopenharmony_ci   * @test
401861847f8eSopenharmony_ci   */
401961847f8eSopenharmony_ci  screenCapture(savePath: string, rect?: Rect): Promise<boolean>;
402061847f8eSopenharmony_ci
402161847f8eSopenharmony_ci  /**
402261847f8eSopenharmony_ci   * Create an {@link UIEventObserver} object.
402361847f8eSopenharmony_ci   *
402461847f8eSopenharmony_ci   * @returns { UIEventObserver } the {@link UIEventObserver} object.
402561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
402661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
402761847f8eSopenharmony_ci   * @since 10
402861847f8eSopenharmony_ci   * @test
402961847f8eSopenharmony_ci   */
403061847f8eSopenharmony_ci  /**
403161847f8eSopenharmony_ci   * Create an {@link UIEventObserver} object.
403261847f8eSopenharmony_ci   *
403361847f8eSopenharmony_ci   * @returns { UIEventObserver } the {@link UIEventObserver} object.
403461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
403561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
403661847f8eSopenharmony_ci   * @atomicservice
403761847f8eSopenharmony_ci   * @since 11
403861847f8eSopenharmony_ci   * @test
403961847f8eSopenharmony_ci   */
404061847f8eSopenharmony_ci  createUIEventObserver(): UIEventObserver;
404161847f8eSopenharmony_ci
404261847f8eSopenharmony_ci  /**
404361847f8eSopenharmony_ci   * Double click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.
404461847f8eSopenharmony_ci   *
404561847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
404661847f8eSopenharmony_ci   * @param { MouseButton } btnId - the button of Mouse.
404761847f8eSopenharmony_ci   * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.
404861847f8eSopenharmony_ci   * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.
404961847f8eSopenharmony_ci   * @returns { Promise<void> }
405061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
405161847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
405261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
405361847f8eSopenharmony_ci   * @atomicservice
405461847f8eSopenharmony_ci   * @since 11
405561847f8eSopenharmony_ci   * @test
405661847f8eSopenharmony_ci   */
405761847f8eSopenharmony_ci  mouseDoubleClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise<void>;
405861847f8eSopenharmony_ci
405961847f8eSopenharmony_ci  /**
406061847f8eSopenharmony_ci   * Long click on the specified location on the screen with the specified mouse button, and press the specified key simultaneously if necessary.
406161847f8eSopenharmony_ci   *
406261847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
406361847f8eSopenharmony_ci   * @param { MouseButton } btnId - the button of Mouse.
406461847f8eSopenharmony_ci   * @param { number } [key1] - the first keyCode,set it default 0 if null or undefined.
406561847f8eSopenharmony_ci   * @param { number } [key2] - the second keyCode,set it default 0 if null or undefined.
406661847f8eSopenharmony_ci   * @returns { Promise<void> }
406761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
406861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
406961847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
407061847f8eSopenharmony_ci   * @atomicservice
407161847f8eSopenharmony_ci   * @since 11
407261847f8eSopenharmony_ci   * @test
407361847f8eSopenharmony_ci   */
407461847f8eSopenharmony_ci  mouseLongClick(p: Point, btnId: MouseButton, key1?: number, key2?: number): Promise<void>;
407561847f8eSopenharmony_ci
407661847f8eSopenharmony_ci  /**
407761847f8eSopenharmony_ci   * Swipe on the screen between the specified points with mouse.
407861847f8eSopenharmony_ci   *
407961847f8eSopenharmony_ci   * @param { Point } from - the starting point.
408061847f8eSopenharmony_ci   * @param { Point } to - the ending point.
408161847f8eSopenharmony_ci   * @param { number } [speed] - speed of swipe (pixels per second),the value ranges from 200 to 40000.Set it default 600 if out of range or null or undefined.
408261847f8eSopenharmony_ci   * @returns { Promise<void> }
408361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
408461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
408561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
408661847f8eSopenharmony_ci   * @atomicservice
408761847f8eSopenharmony_ci   * @since 11
408861847f8eSopenharmony_ci   * @test
408961847f8eSopenharmony_ci   */
409061847f8eSopenharmony_ci  mouseMoveWithTrack(from: Point, to: Point, speed?: number): Promise<void>;
409161847f8eSopenharmony_ci
409261847f8eSopenharmony_ci  /**
409361847f8eSopenharmony_ci   * Hold down the left mouse button and drag on the screen between the specified points.
409461847f8eSopenharmony_ci   *
409561847f8eSopenharmony_ci   * @param { Point } from - the starting point.
409661847f8eSopenharmony_ci   * @param { Point } to - the ending point.
409761847f8eSopenharmony_ci   * @param { number } [speed] - speed of drag (pixels per second),the value ranges from 200 to 40000,Set it default 600 if out of range or null or undefined.
409861847f8eSopenharmony_ci   * @returns { Promise<void> }
409961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
410061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
410161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
410261847f8eSopenharmony_ci   * @atomicservice
410361847f8eSopenharmony_ci   * @since 11
410461847f8eSopenharmony_ci   * @test
410561847f8eSopenharmony_ci   */
410661847f8eSopenharmony_ci  mouseDrag(from: Point, to: Point, speed?: number): Promise<void>;
410761847f8eSopenharmony_ci
410861847f8eSopenharmony_ci  /**
410961847f8eSopenharmony_ci   * Inject text on the specified location.
411061847f8eSopenharmony_ci   *
411161847f8eSopenharmony_ci   * @param { Point } p - the coordinate of the specified location.
411261847f8eSopenharmony_ci   * @param { string } text - the text to inject.
411361847f8eSopenharmony_ci   * @returns { Promise<void> }
411461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
411561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
411661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
411761847f8eSopenharmony_ci   * @atomicservice
411861847f8eSopenharmony_ci   * @since 11
411961847f8eSopenharmony_ci   * @test
412061847f8eSopenharmony_ci   */
412161847f8eSopenharmony_ci  inputText(p: Point, text: string): Promise<void>;
412261847f8eSopenharmony_ci}
412361847f8eSopenharmony_ci
412461847f8eSopenharmony_ci/**
412561847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
412661847f8eSopenharmony_ci * @since 9
412761847f8eSopenharmony_ci * @test
412861847f8eSopenharmony_ci */
412961847f8eSopenharmony_ci/**
413061847f8eSopenharmony_ci * Represents a window of the ohos application,user can perform operations or query attributes on it.
413161847f8eSopenharmony_ci *
413261847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
413361847f8eSopenharmony_ci * @atomicservice
413461847f8eSopenharmony_ci * @since 11
413561847f8eSopenharmony_ci * @test
413661847f8eSopenharmony_ci */
413761847f8eSopenharmony_cideclare class UiWindow {
413861847f8eSopenharmony_ci  /**
413961847f8eSopenharmony_ci   * Get the bundle name of this {@link UiWindow}.
414061847f8eSopenharmony_ci   *
414161847f8eSopenharmony_ci   * @returns { Promise<string> } the bundle name.
414261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
414361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
414461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
414561847f8eSopenharmony_ci   * @since 9
414661847f8eSopenharmony_ci   * @test
414761847f8eSopenharmony_ci   */
414861847f8eSopenharmony_ci  /**
414961847f8eSopenharmony_ci   * Get the bundle name of this {@link UiWindow}.
415061847f8eSopenharmony_ci   *
415161847f8eSopenharmony_ci   * @returns { Promise<string> } the bundle name.
415261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
415361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
415461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
415561847f8eSopenharmony_ci   * @atomicservice
415661847f8eSopenharmony_ci   * @since 11
415761847f8eSopenharmony_ci   * @test
415861847f8eSopenharmony_ci   */
415961847f8eSopenharmony_ci  getBundleName(): Promise<string>;
416061847f8eSopenharmony_ci
416161847f8eSopenharmony_ci  /**
416261847f8eSopenharmony_ci   * Get the bounds rect of this {@link UiWindow}.
416361847f8eSopenharmony_ci   *
416461847f8eSopenharmony_ci   * @returns { Promise<Rect> } the bounds rect object.
416561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
416661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
416761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
416861847f8eSopenharmony_ci   * @since 9
416961847f8eSopenharmony_ci   * @test
417061847f8eSopenharmony_ci   */
417161847f8eSopenharmony_ci  /**
417261847f8eSopenharmony_ci   * Get the bounds rect of this {@link UiWindow}.
417361847f8eSopenharmony_ci   *
417461847f8eSopenharmony_ci   * @returns { Promise<Rect> } the bounds rect object.
417561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
417661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
417761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
417861847f8eSopenharmony_ci   * @crossplatform
417961847f8eSopenharmony_ci   * @atomicservice
418061847f8eSopenharmony_ci   * @since 11
418161847f8eSopenharmony_ci   * @test
418261847f8eSopenharmony_ci   */
418361847f8eSopenharmony_ci  getBounds(): Promise<Rect>;
418461847f8eSopenharmony_ci
418561847f8eSopenharmony_ci  /**
418661847f8eSopenharmony_ci   * Get the title of this {@link UiWindow}.
418761847f8eSopenharmony_ci   *
418861847f8eSopenharmony_ci   * @returns { Promise<string> } the title value.
418961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
419061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
419161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
419261847f8eSopenharmony_ci   * @since 9
419361847f8eSopenharmony_ci   * @test
419461847f8eSopenharmony_ci   */
419561847f8eSopenharmony_ci  /**
419661847f8eSopenharmony_ci   * Get the title of this {@link UiWindow}.
419761847f8eSopenharmony_ci   *
419861847f8eSopenharmony_ci   * @returns { Promise<string> } the title value.
419961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
420061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
420161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
420261847f8eSopenharmony_ci   * @atomicservice
420361847f8eSopenharmony_ci   * @since 11
420461847f8eSopenharmony_ci   * @test
420561847f8eSopenharmony_ci   */
420661847f8eSopenharmony_ci  getTitle(): Promise<string>;
420761847f8eSopenharmony_ci
420861847f8eSopenharmony_ci  /**
420961847f8eSopenharmony_ci   * Get the window mode of this {@link UiWindow}.
421061847f8eSopenharmony_ci   *
421161847f8eSopenharmony_ci   * @returns { Promise<WindowMode> } the {@link WindowMode} object
421261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
421361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
421461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
421561847f8eSopenharmony_ci   * @since 9
421661847f8eSopenharmony_ci   * @test
421761847f8eSopenharmony_ci   */
421861847f8eSopenharmony_ci  /**
421961847f8eSopenharmony_ci   * Get the window mode of this {@link UiWindow}.
422061847f8eSopenharmony_ci   *
422161847f8eSopenharmony_ci   * @returns { Promise<WindowMode> } the {@link WindowMode} object
422261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
422361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
422461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
422561847f8eSopenharmony_ci   * @atomicservice
422661847f8eSopenharmony_ci   * @since 11
422761847f8eSopenharmony_ci   * @test
422861847f8eSopenharmony_ci   */
422961847f8eSopenharmony_ci  getWindowMode(): Promise<WindowMode>;
423061847f8eSopenharmony_ci
423161847f8eSopenharmony_ci  /**
423261847f8eSopenharmony_ci   * Get the focused status of this {@link UiWindow}.
423361847f8eSopenharmony_ci   *
423461847f8eSopenharmony_ci   * @returns { Promise<boolean> } the focused status
423561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
423661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
423761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
423861847f8eSopenharmony_ci   * @since 9
423961847f8eSopenharmony_ci   * @test
424061847f8eSopenharmony_ci   */
424161847f8eSopenharmony_ci  /**
424261847f8eSopenharmony_ci   * Get the focused status of this {@link UiWindow}.
424361847f8eSopenharmony_ci   *
424461847f8eSopenharmony_ci   * @returns { Promise<boolean> } the focused status
424561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
424661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
424761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
424861847f8eSopenharmony_ci   * @atomicservice
424961847f8eSopenharmony_ci   * @since 11
425061847f8eSopenharmony_ci   * @test
425161847f8eSopenharmony_ci   */
425261847f8eSopenharmony_ci  isFocused(): Promise<boolean>;
425361847f8eSopenharmony_ci
425461847f8eSopenharmony_ci  /**
425561847f8eSopenharmony_ci   * Get the active status of this {@link UiWindow}.
425661847f8eSopenharmony_ci   *
425761847f8eSopenharmony_ci   * @returns { Promise<boolean> } the actived status
425861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
425961847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
426061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
426161847f8eSopenharmony_ci   * @since 9
426261847f8eSopenharmony_ci   * @test
426361847f8eSopenharmony_ci   */
426461847f8eSopenharmony_ci  /**
426561847f8eSopenharmony_ci   * Get the active status of this {@link UiWindow}.
426661847f8eSopenharmony_ci   *
426761847f8eSopenharmony_ci   * @returns { Promise<boolean> } the actived status
426861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
426961847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
427061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
427161847f8eSopenharmony_ci   * @since 11
427261847f8eSopenharmony_ci   * @deprecated since 11
427361847f8eSopenharmony_ci   * @useinstead ohos.UiTest.UiWindow#isActive
427461847f8eSopenharmony_ci   * @test
427561847f8eSopenharmony_ci   */
427661847f8eSopenharmony_ci  isActived(): Promise<boolean>;
427761847f8eSopenharmony_ci
427861847f8eSopenharmony_ci  /**
427961847f8eSopenharmony_ci   * Set the focused status of this {@link UiWindow}.
428061847f8eSopenharmony_ci   *
428161847f8eSopenharmony_ci   * @returns { Promise<void> }
428261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
428361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
428461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
428561847f8eSopenharmony_ci   * @since 9
428661847f8eSopenharmony_ci   * @test
428761847f8eSopenharmony_ci   */
428861847f8eSopenharmony_ci  /**
428961847f8eSopenharmony_ci   * Set the focused status of this {@link UiWindow}.
429061847f8eSopenharmony_ci   *
429161847f8eSopenharmony_ci   * @returns { Promise<void> }
429261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
429361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
429461847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
429561847f8eSopenharmony_ci   * @atomicservice
429661847f8eSopenharmony_ci   * @since 11
429761847f8eSopenharmony_ci   * @test
429861847f8eSopenharmony_ci   */
429961847f8eSopenharmony_ci  focus(): Promise<void>;
430061847f8eSopenharmony_ci
430161847f8eSopenharmony_ci  /**
430261847f8eSopenharmony_ci   * Move this {@link UiWindow} to the specified points.
430361847f8eSopenharmony_ci   *
430461847f8eSopenharmony_ci   * @param { number } x The x coordinate of destination.
430561847f8eSopenharmony_ci   * @param { number } y The y coordinate of destination.
430661847f8eSopenharmony_ci   * @returns { Promise<void> }
430761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
430861847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
430961847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
431061847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
431161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
431261847f8eSopenharmony_ci   * @since 9
431361847f8eSopenharmony_ci   * @test
431461847f8eSopenharmony_ci   */
431561847f8eSopenharmony_ci  /**
431661847f8eSopenharmony_ci   * Move this {@link UiWindow} to the specified points.
431761847f8eSopenharmony_ci   *
431861847f8eSopenharmony_ci   * @param { number } x - the x coordinate of destination, not less than 0.
431961847f8eSopenharmony_ci   * @param { number } y - the y coordinate of destination, not less than 0.
432061847f8eSopenharmony_ci   * @returns { Promise<void> }
432161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
432261847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
432361847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
432461847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
432561847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
432661847f8eSopenharmony_ci   * @atomicservice
432761847f8eSopenharmony_ci   * @since 11
432861847f8eSopenharmony_ci   * @test
432961847f8eSopenharmony_ci   */
433061847f8eSopenharmony_ci  moveTo(x: number, y: number): Promise<void>;
433161847f8eSopenharmony_ci
433261847f8eSopenharmony_ci  /**
433361847f8eSopenharmony_ci   * Resize this {@link UiWindow} to the specified size for the specified direction.
433461847f8eSopenharmony_ci   *
433561847f8eSopenharmony_ci   * @param { number } wide The expected wide of the window after resizing.
433661847f8eSopenharmony_ci   * @param { number } height The expected height of the window after resizing.
433761847f8eSopenharmony_ci   * @param { ResizeDirection } direction The expected direction of the window after resizing.
433861847f8eSopenharmony_ci   * @returns { Promise<void> }
433961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
434061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
434161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
434261847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
434361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
434461847f8eSopenharmony_ci   * @since 9
434561847f8eSopenharmony_ci   * @test
434661847f8eSopenharmony_ci   */
434761847f8eSopenharmony_ci  /**
434861847f8eSopenharmony_ci   * Resize this {@link UiWindow} to the specified size for the specified direction.
434961847f8eSopenharmony_ci   *
435061847f8eSopenharmony_ci   * @param { number } wide - the expected wide of the window after resizing.
435161847f8eSopenharmony_ci   * @param { number } height - the expected height of the window after resizing.
435261847f8eSopenharmony_ci   * @param { ResizeDirection } direction - the expected direction of the window after resizing.
435361847f8eSopenharmony_ci   * @returns { Promise<void> }
435461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
435561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
435661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
435761847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
435861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
435961847f8eSopenharmony_ci   * @atomicservice
436061847f8eSopenharmony_ci   * @since 11
436161847f8eSopenharmony_ci   * @test
436261847f8eSopenharmony_ci   */
436361847f8eSopenharmony_ci  resize(wide: number, height: number, direction: ResizeDirection): Promise<void>;
436461847f8eSopenharmony_ci
436561847f8eSopenharmony_ci  /**
436661847f8eSopenharmony_ci   * Change this {@link UiWindow} into split screen mode.
436761847f8eSopenharmony_ci   *
436861847f8eSopenharmony_ci   * @returns { Promise<void> }
436961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
437061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
437161847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
437261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
437361847f8eSopenharmony_ci   * @since 9
437461847f8eSopenharmony_ci   * @test
437561847f8eSopenharmony_ci   */
437661847f8eSopenharmony_ci  /**
437761847f8eSopenharmony_ci   * Change this {@link UiWindow} into split screen mode.
437861847f8eSopenharmony_ci   *
437961847f8eSopenharmony_ci   * @returns { Promise<void> }
438061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
438161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
438261847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
438361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
438461847f8eSopenharmony_ci   * @atomicservice
438561847f8eSopenharmony_ci   * @since 11
438661847f8eSopenharmony_ci   * @test
438761847f8eSopenharmony_ci   */
438861847f8eSopenharmony_ci  split(): Promise<void>;
438961847f8eSopenharmony_ci
439061847f8eSopenharmony_ci  /**
439161847f8eSopenharmony_ci   * Maximize this {@link UiWindow}.
439261847f8eSopenharmony_ci   *
439361847f8eSopenharmony_ci   * @returns { Promise<void> }
439461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
439561847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
439661847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
439761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
439861847f8eSopenharmony_ci   * @since 9
439961847f8eSopenharmony_ci   * @test
440061847f8eSopenharmony_ci   */
440161847f8eSopenharmony_ci  /**
440261847f8eSopenharmony_ci   * Maximize this {@link UiWindow}.
440361847f8eSopenharmony_ci   *
440461847f8eSopenharmony_ci   * @returns { Promise<void> }
440561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
440661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
440761847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
440861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
440961847f8eSopenharmony_ci   * @atomicservice
441061847f8eSopenharmony_ci   * @since 11
441161847f8eSopenharmony_ci   * @test
441261847f8eSopenharmony_ci   */
441361847f8eSopenharmony_ci  maximize(): Promise<void>;
441461847f8eSopenharmony_ci
441561847f8eSopenharmony_ci  /**
441661847f8eSopenharmony_ci   * Minimize this {@link UiWindow}.
441761847f8eSopenharmony_ci   *
441861847f8eSopenharmony_ci   * @returns { Promise<void> }
441961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
442061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
442161847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
442261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
442361847f8eSopenharmony_ci   * @since 9
442461847f8eSopenharmony_ci   * @test
442561847f8eSopenharmony_ci   */
442661847f8eSopenharmony_ci  /**
442761847f8eSopenharmony_ci   * Minimize this {@link UiWindow}.
442861847f8eSopenharmony_ci   *
442961847f8eSopenharmony_ci   * @returns { Promise<void> }
443061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
443161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
443261847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
443361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
443461847f8eSopenharmony_ci   * @atomicservice
443561847f8eSopenharmony_ci   * @since 11
443661847f8eSopenharmony_ci   * @test
443761847f8eSopenharmony_ci   */
443861847f8eSopenharmony_ci  minimize(): Promise<void>;
443961847f8eSopenharmony_ci
444061847f8eSopenharmony_ci  /**
444161847f8eSopenharmony_ci   * Resume this {@link UiWindow}.
444261847f8eSopenharmony_ci   *
444361847f8eSopenharmony_ci   * @returns { Promise<void> }
444461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
444561847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
444661847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
444761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
444861847f8eSopenharmony_ci   * @since 9
444961847f8eSopenharmony_ci   * @test
445061847f8eSopenharmony_ci   */
445161847f8eSopenharmony_ci  /**
445261847f8eSopenharmony_ci   * Resume this {@link UiWindow}.
445361847f8eSopenharmony_ci   *
445461847f8eSopenharmony_ci   * @returns { Promise<void> }
445561847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
445661847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
445761847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
445861847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
445961847f8eSopenharmony_ci   * @atomicservice
446061847f8eSopenharmony_ci   * @since 11
446161847f8eSopenharmony_ci   * @test
446261847f8eSopenharmony_ci   */
446361847f8eSopenharmony_ci  resume(): Promise<void>;
446461847f8eSopenharmony_ci
446561847f8eSopenharmony_ci  /**
446661847f8eSopenharmony_ci   * Close this {@link UiWindow}.
446761847f8eSopenharmony_ci   *
446861847f8eSopenharmony_ci   * @returns { Promise<void> }
446961847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - if the async function was not called with await.
447061847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - if the window is invisible or destroyed.
447161847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - if the action is not supported on this window.
447261847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
447361847f8eSopenharmony_ci   * @since 9
447461847f8eSopenharmony_ci   * @test
447561847f8eSopenharmony_ci   */
447661847f8eSopenharmony_ci  /**
447761847f8eSopenharmony_ci   * Close this {@link UiWindow}.
447861847f8eSopenharmony_ci   *
447961847f8eSopenharmony_ci   * @returns { Promise<void> }
448061847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
448161847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
448261847f8eSopenharmony_ci   * @throws { BusinessError } 17000005 - This operation is not supported.
448361847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
448461847f8eSopenharmony_ci   * @atomicservice
448561847f8eSopenharmony_ci   * @since 11
448661847f8eSopenharmony_ci   * @test
448761847f8eSopenharmony_ci   */
448861847f8eSopenharmony_ci  close(): Promise<void>;
448961847f8eSopenharmony_ci
449061847f8eSopenharmony_ci  /**
449161847f8eSopenharmony_ci   * Get the active status of this {@link UiWindow}.
449261847f8eSopenharmony_ci   *
449361847f8eSopenharmony_ci   * @returns { Promise<boolean> } the active status.
449461847f8eSopenharmony_ci   * @throws { BusinessError } 17000002 - The async function is not called with await.
449561847f8eSopenharmony_ci   * @throws { BusinessError } 17000004 - The window or component is invisible or destroyed.
449661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
449761847f8eSopenharmony_ci   * @atomicservice
449861847f8eSopenharmony_ci   * @since 11
449961847f8eSopenharmony_ci   * @test
450061847f8eSopenharmony_ci   */
450161847f8eSopenharmony_ci  isActive(): Promise<boolean>;
450261847f8eSopenharmony_ci}
450361847f8eSopenharmony_ci
450461847f8eSopenharmony_ci/**
450561847f8eSopenharmony_ci * Represents a two-dimensional array of pointers on the device display, it's used to build a
450661847f8eSopenharmony_ci * multi-finger trace which can be injected with UiDriver.
450761847f8eSopenharmony_ci *
450861847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
450961847f8eSopenharmony_ci * @since 9
451061847f8eSopenharmony_ci * @test
451161847f8eSopenharmony_ci */
451261847f8eSopenharmony_ci/**
451361847f8eSopenharmony_ci * Represents a two-dimensional array of pointers on the device display, it's used to build a
451461847f8eSopenharmony_ci * multi-finger trace which can be injected with UiDriver.
451561847f8eSopenharmony_ci *
451661847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
451761847f8eSopenharmony_ci * @crossplatform
451861847f8eSopenharmony_ci * @atomicservice
451961847f8eSopenharmony_ci * @since 11
452061847f8eSopenharmony_ci * @test
452161847f8eSopenharmony_ci */
452261847f8eSopenharmony_cideclare class PointerMatrix {
452361847f8eSopenharmony_ci  /**
452461847f8eSopenharmony_ci   * Create an {@link PointerMatrix} object.
452561847f8eSopenharmony_ci   *
452661847f8eSopenharmony_ci   * @param { number } fingers The number of fingers.
452761847f8eSopenharmony_ci   * @param { number } steps The number of steps of each finger trace.
452861847f8eSopenharmony_ci   * @returns { PointerMatrix } the {@link PointerMatrix} object.
452961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
453061847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
453161847f8eSopenharmony_ci   * @since 9
453261847f8eSopenharmony_ci   * @test
453361847f8eSopenharmony_ci   */
453461847f8eSopenharmony_ci  /**
453561847f8eSopenharmony_ci   * Create an {@link PointerMatrix} object.
453661847f8eSopenharmony_ci   *
453761847f8eSopenharmony_ci   * @param { number } fingers - The number of fingers, ranges from 1 to 10.
453861847f8eSopenharmony_ci   * @param { number } steps - The number of steps of each finger trace, ranges from 1 to 1000.
453961847f8eSopenharmony_ci   * @returns { PointerMatrix } the {@link PointerMatrix} object.
454061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
454161847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
454261847f8eSopenharmony_ci   * @crossplatform
454361847f8eSopenharmony_ci   * @atomicservice
454461847f8eSopenharmony_ci   * @since 11
454561847f8eSopenharmony_ci   * @test
454661847f8eSopenharmony_ci   */
454761847f8eSopenharmony_ci  static create(fingers: number, steps: number): PointerMatrix;
454861847f8eSopenharmony_ci
454961847f8eSopenharmony_ci  /**
455061847f8eSopenharmony_ci   * Set the point value of an element in the PointerMatrix.
455161847f8eSopenharmony_ci   *
455261847f8eSopenharmony_ci   * @param { number } finger The index of target finger to set.
455361847f8eSopenharmony_ci   * @param { number } step The index of target step to set.
455461847f8eSopenharmony_ci   * @param { Point } point The coordinate of target step to set.
455561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the input parameters are invalid.
455661847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
455761847f8eSopenharmony_ci   * @since 9
455861847f8eSopenharmony_ci   * @test
455961847f8eSopenharmony_ci   */
456061847f8eSopenharmony_ci  /**
456161847f8eSopenharmony_ci   * Set the point value of an element in the PointerMatrix.
456261847f8eSopenharmony_ci   *
456361847f8eSopenharmony_ci   * @param { number } finger - the index of target finger to set.
456461847f8eSopenharmony_ci   * @param { number } step - the index of target step to set.
456561847f8eSopenharmony_ci   * @param { Point } point - the coordinate of target step to set.
456661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.
456761847f8eSopenharmony_ci   * @syscap SystemCapability.Test.UiTest
456861847f8eSopenharmony_ci   * @crossplatform
456961847f8eSopenharmony_ci   * @atomicservice
457061847f8eSopenharmony_ci   * @since 11
457161847f8eSopenharmony_ci   * @test
457261847f8eSopenharmony_ci   */
457361847f8eSopenharmony_ci  setPoint(finger: number, step: number, point: Point): void;
457461847f8eSopenharmony_ci}
457561847f8eSopenharmony_ci
457661847f8eSopenharmony_ci/**
457761847f8eSopenharmony_ci * The static builder for building {@link By}object conveniently,usage example:BY.text('txt').enabled(true).
457861847f8eSopenharmony_ci *
457961847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
458061847f8eSopenharmony_ci * @since 8
458161847f8eSopenharmony_ci * @deprecated since 9
458261847f8eSopenharmony_ci * @useinstead ohos.uitest.ON
458361847f8eSopenharmony_ci * @test
458461847f8eSopenharmony_ci */
458561847f8eSopenharmony_cideclare const BY: By;
458661847f8eSopenharmony_ci
458761847f8eSopenharmony_ci/**
458861847f8eSopenharmony_ci * The static builder for building {@link On}object conveniently,usage example:ON.text('txt').enabled(true).
458961847f8eSopenharmony_ci *
459061847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
459161847f8eSopenharmony_ci * @since 9
459261847f8eSopenharmony_ci * @test
459361847f8eSopenharmony_ci */
459461847f8eSopenharmony_ci/**
459561847f8eSopenharmony_ci * The static builder for building {@link On}object conveniently,usage example:ON.text('txt').enabled(true).
459661847f8eSopenharmony_ci *
459761847f8eSopenharmony_ci * @syscap SystemCapability.Test.UiTest
459861847f8eSopenharmony_ci * @crossplatform
459961847f8eSopenharmony_ci * @atomicservice
460061847f8eSopenharmony_ci * @since 11
460161847f8eSopenharmony_ci * @test
460261847f8eSopenharmony_ci */
460361847f8eSopenharmony_cideclare const ON: On;
460461847f8eSopenharmony_ci
460561847f8eSopenharmony_ciexport {
460661847f8eSopenharmony_ci  UiComponent,
460761847f8eSopenharmony_ci  UiDriver,
460861847f8eSopenharmony_ci  Component,
460961847f8eSopenharmony_ci  Driver,
461061847f8eSopenharmony_ci  UiWindow,
461161847f8eSopenharmony_ci  ON,
461261847f8eSopenharmony_ci  On,
461361847f8eSopenharmony_ci  BY,
461461847f8eSopenharmony_ci  By,
461561847f8eSopenharmony_ci  MatchPattern,
461661847f8eSopenharmony_ci  DisplayRotation,
461761847f8eSopenharmony_ci  ResizeDirection,
461861847f8eSopenharmony_ci  WindowMode,
461961847f8eSopenharmony_ci  Point,
462061847f8eSopenharmony_ci  WindowFilter,
462161847f8eSopenharmony_ci  Rect,
462261847f8eSopenharmony_ci  PointerMatrix,
462361847f8eSopenharmony_ci  UiDirection,
462461847f8eSopenharmony_ci  MouseButton,
462561847f8eSopenharmony_ci  UIElementInfo,
462661847f8eSopenharmony_ci  UIEventObserver
462761847f8eSopenharmony_ci};
4628