Replies: 1 comment
|
可能还需要更多的测试,我先回撤了,明天再放出来,感谢你提供case |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
await nct.screen.waitFor(/Do you want to reset password|是否重置预置管理员密码/, 300000);
await nct.screen.sendLine('y');
nct.log('success');
我还试了
await nct.screen.waitForAny([
/Do you want to reset password/,
/是否重置预置管理员密码/
], 60000);
await nct.screen.sendLine('y');
nct.log('success');
或者使用输出匹配时运行,然后等待内容为/Do you want to reset password|是否重置预置管理员密码/
想要实现捕获终端打印的Do you want to reset password或是否重置预置管理员密码关键字时自动按y并回车,目前一执行,终端就自动输入y了。
All reactions