提交 6a275948 编写于 作者: D dongwei

授权button为空处理

Signed-off-by: Ndongwei <dongwei@kaihong.com>
上级 800b04b9
......@@ -38,6 +38,7 @@ export async function driveFn(num) {
console.info(`UiDriver start`)
for (let i = 0; i < num; i++) {
let button = await driver.findComponent(BY.text('允许'))
if(button == null) continue;
console.info(`button is ${JSON.stringify(button)}`)
await msleepAsync(2000)
await button.click()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册