提交 ed6c8ee4 编写于 作者: L lijialang

更新month 分支 uitest.md代码规范

Signed-off-by: Nlijialang <lijialang2@huawei.com>
上级 22fd3fb5
...@@ -17,7 +17,7 @@ UiTest提供模拟UI操作的能力,供开发者在测试场景使用,主要 ...@@ -17,7 +17,7 @@ UiTest提供模拟UI操作的能力,供开发者在测试场景使用,主要
>本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 >本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
## 导入模块 ## 导入模块
```typescript ```typescript
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix, UiDirection, MouseButton, UIElementInfo, UIEventObserver} from '@ohos.UiTest'; import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix, UiDirection, MouseButton, UIElementInfo, UIEventObserver} from '@ohos.UiTest';
...@@ -871,7 +871,7 @@ async function demo() { ...@@ -871,7 +871,7 @@ async function demo() {
### isLongClickable<sup>9+</sup> ### isLongClickable<sup>9+</sup>
isLongClickable(): Promise\<boolean> isLongClickable(): Promise\<boolean>
获取控件对象可长按点击属性。 获取控件对象可长按点击属性。
...@@ -4156,4 +4156,4 @@ async function demo() { ...@@ -4156,4 +4156,4 @@ async function demo() {
let driver = UiDriver.create(); let driver = UiDriver.create();
await driver.screenCap('/data/storage/el2/base/cache/1.png'); await driver.screenCap('/data/storage/el2/base/cache/1.png');
} }
``` ```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册