如何在排毒测试中使用 adb shell 命令?

问题描述 投票:0回答:1
`it('TC-30: WIFI', async () => {
    child.exec('adb shell cmd connectivity airplane-mode enable');
    await element(by.label('Violation №1')).tap();
    const errorMessage = 'no connection';
    waitFor(element(by.label(errorMessage))).toBeVisible();
});`

我尝试做这样的事情,但它不起作用。孩子不存在。

那么如何直接使用 e2e 测试中的 UI 设置呢?

另外打开照片库后如何导入图片?

javascript java adb detox e2e
1个回答
0
投票

您必须添加:

const child = require("child_process");
© www.soinside.com 2019 - 2024. All rights reserved.