diff --git a/multimedia/media/media_js_standard/MediaTestBase.js b/multimedia/media/media_js_standard/MediaTestBase.js index 45dc7b11b3f1b53f6765a87bdd329f142f3782af..039fbae6a113702396435db550bd979fd713bb32 100644 --- a/multimedia/media/media_js_standard/MediaTestBase.js +++ b/multimedia/media/media_js_standard/MediaTestBase.js @@ -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()