Lines Matching refs:On

7 - [On<sup>9+</sup>](#on9): provides UI component feature description APIs for component filtering a…
11 …ing. This class is deprecated since API version 9. You are advised to use [On<sup>9+</sup>](#on9) …
176 ## On<sup>9+</sup>
178 …rk provides a wide range of UI component feature description APIs in the **On** class to filter an…
179On** class exhibit the following features:<br>1. Allow one or more attributes as the match conditi…
188 text(txt: string, pattern?: MatchPattern): On
207 | [On](#on9) | **On** object that matches the text attribute of the target component.|
220 import { On, ON } from '@kit.TestKit';
221 let on:On = ON.text('123'); // Use the static constructor ON to create an On object and specify the…
226 id(id: string): On
244 | [On](#on9) | **On** object that matches the ID attribute of the target component.|
257 import { On, ON } from '@kit.TestKit';
258 let on:On = ON.id('123'); // Use the static constructor ON to create an On object and specify the i…
264 type(tp: string): On
286 | [On](#on9) | **On** object that matches the type attribute of the target component.|
299 import { On, ON } from '@kit.TestKit';
300 let on:On = ON.type('Button'); // Use the static constructor ON to create an On object and specify …
306 clickable(b?: boolean): On
324 | [On](#on9) | **On** object that matches the clickable attribute of the target component.|
337 import { On, ON } from '@kit.TestKit';
338 let on:On = ON.clickable(true); // Use the static constructor ON to create an On object and specify…
343 longClickable(b?: boolean): On
361 | [On](#on9) | **On** object that matches the long-clickable attribute of the target component.|
374 import { On, ON } from '@kit.TestKit';
375 let on:On = ON.longClickable(true); // Use the static constructor ON to create an On object and spe…
381 scrollable(b?: boolean): On
399 | [On](#on9) | **On** object that matches the scrollable attribute of the target component.|
412 import { On, ON } from '@kit.TestKit';
413 let on:On = ON.scrollable(true); // Use the static constructor ON to create an On object and specif…
418 enabled(b?: boolean): On
436 | [On](#on9) | **On** object that matches the enabled attribute of the target component.|
449 import { On, ON } from '@kit.TestKit';
450 let on:On = ON.enabled(true); // Use the static constructor ON to create an On object and specify t…
455 focused(b?: boolean): On
473 | [On](#on9) | **On** object that matches the focused attribute of the target component.|
486 import { On, ON } from '@kit.TestKit';
487 let on:On = ON.focused(true); // Use the static constructor ON to create an On object and specify t…
492 selected(b?: boolean): On
510 | [On](#on9) | **On** object that matches the selected attribute of the target component.|
523 import { On, ON } from '@kit.TestKit';
524 let on:On = ON.selected(true); // Use the static constructor ON to create an On object and specify …
529 checked(b?: boolean): On
547 | [On](#on9) | **On** object that matches the checked attribute of the target component.|
560 import { On, ON } from '@kit.TestKit';
561 let on:On = ON.checked(true); // Use the static constructor ON to create an On object and specify t…
566 checkable(b?: boolean): On
584 | [On](#on9) | **On** object that matches the checkable attribute of the target component.|
597 import { On, ON } from '@kit.TestKit';
598 let on:On = ON.checkable(true); // Use the static constructor ON to create an On object and specify…
603 isBefore(on: On): On
615 | on | [On](#on9) | Yes | Information about the attribute component.|
621 | [On](#on9) | **On** object.|
634 import { On, ON } from '@kit.TestKit';
636 // Use the static constructor ON to create an On object and specify that the target component is lo…
637 let on:On = ON.type('Button').isBefore(ON.text('123')); // Search for the first <Button> component …
642 isAfter(on: On): On
654 | on | [On](#on9) | Yes | Information about the attribute component.|
660 | [On](#on9) | **On** object.|
673 import { On, ON } from '@kit.TestKit';
675 // Use the static constructor ON to create an On object and specify that the target component is lo…
676 let on:On = ON.type('Text').isAfter(ON.text('123')) // Search for the first <Text> component locat…
681 within(on: On): On
693 | on | [On](#on9) | Yes | Information about the attribute component.|
699 | [On](#on9) | **On** object.|
712 import { On, ON } from '@kit.TestKit';
713 // Use the static constructor ON to create an On object and specify that the target component is lo…
714 let on:On = ON.text('java').within(ON.type('Scroll')); // Search for the child component whose tex…
719 inWindow(bundleName: string): On;
737 | [On](#on9) | **On** object.|
750 import { On, ON } from '@kit.TestKit';
751 let on:On = ON.inWindow('com.uitestScene.acts'); // Use the static constructor ON to create an On o…
756 description(val: string, pattern?: MatchPattern): On
775 | [On](#on9) | **On** object.|
788 import { On, ON } from '@kit.TestKit';
789 let on:On = ON.description('123'); // Use the static constructor ON to create an On object and spec…
1456 scrollSearch(on: On): Promise\<Component>
1468 | on | [On](#on9) | Yes | Attributes of the target component.|
1794 findComponent(on: On): Promise\<Component>
1806 | on | [On](#on9) | Yes | Attributes of the target component.|
1835 findComponents(on: On): Promise\<Array\<Component>>
1847 | on | [On](#on9) | Yes | Attributes of the target component.|
1917 waitForComponent(on: On, time: number): Promise\<Component>
1929 | on | [On](#on9) | Yes | Attributes of the target component. |
1959 assertComponentExist(on: On): Promise\<void>
1971 | on | [On](#on9) | Yes | Attributes of the target component.|
3837 This class is deprecated since API version 9. You are advised to use [On<sup>9+</sup>](#on9) instea…