From 72ebc7772c931db17289c2de170642afce4386d8 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Thu, 4 May 2023 14:48:09 +0800 Subject: [PATCH] Update doc (16883) Signed-off-by: ester.zhou --- en/application-dev/reference/apis/js-apis-uitest.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-uitest.md b/en/application-dev/reference/apis/js-apis-uitest.md index d1f1ba4db5..b14811afdb 100644 --- a/en/application-dev/reference/apis/js-apis-uitest.md +++ b/en/application-dev/reference/apis/js-apis-uitest.md @@ -144,7 +144,7 @@ Describes the injected simulated mouse button. ## On9+ Since API version 9, the UiTest framework provides a wide range of UI component feature description APIs in the **On** class to filter and match components. -The API capabilities provided by the **On** class exhibit the following features: 1. Allow one or more attributes as the match conditions. For example, you can specify both the **text** and **id** attributes to find the target component.
2. Provide multiple match patterns for component attributes.
3. Support absolute positioning and relative positioning for components. APIs such as [ON.isBefore](#isbefore) and [ON.isAfter](#isafter) can be used to specify the features of adjacent components to assist positioning.
All APIs provided in the **On** class are synchronous. You are advised to use the static constructor **ON** to create an **On** object in chain mode. +The API capabilities provided by the **On** class exhibit the following features: 1. Allow one or more attributes as the match conditions. For example, you can specify both the **text** and **id** attributes to find the target component.
2. Provide multiple match patterns for component attributes.
3. Support absolute positioning and relative positioning for components. APIs such as [ON.isBefore](#isbefore9) and [ON.isAfter](#isafter9) can be used to specify the features of adjacent components to assist positioning.
All APIs provided in the **On** class are synchronous. You are advised to use the static constructor **ON** to create an **On** object in chain mode. ```js ON.text('123').type('button'); @@ -542,7 +542,7 @@ Specifies that the target component is within the given application window. **Example** ```js -let on = ON.inWindow(ON.inWindow('com.uitestScene.acts')); // Create an On object using the static constructor ON, specifying that the target component is within the given application window. +let on = ON.inWindow('com.uitestScene.acts'); // Create an On object using the static constructor ON, specifying that the target component is within the given application window. ``` ## Component9+ @@ -1553,7 +1553,7 @@ Searches this **Driver** object for the target component that matches the given | Type | Description | | --------------------------------- | --------------------------------- | -| Promise\<[Component](#component)> | Promise used to return the found component.| +| Promise\<[Component](#component9)> | Promise used to return the found component.| **Error codes** -- GitLab