未验证 提交 e5dea642 编写于 作者: O openharmony_ci 提交者: Gitee

!9842 avRecorder用例多设备适配 问题修复

Merge pull request !9842 from Nicklaus/master
...@@ -38,6 +38,7 @@ export async function driveFn(num) { ...@@ -38,6 +38,7 @@ export async function driveFn(num) {
console.info(`UiDriver start`) console.info(`UiDriver start`)
for (let i = 0; i < num; i++) { for (let i = 0; i < num; i++) {
let button = await driver.findComponent(BY.text('允许')) let button = await driver.findComponent(BY.text('允许'))
if(button == null) continue;
console.info(`button is ${JSON.stringify(button)}`) console.info(`button is ${JSON.stringify(button)}`)
await msleepAsync(2000) await msleepAsync(2000)
await button.click() await button.click()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册