我正在尝试使用机器人框架自动安装。我可以启动命令提示符,现在下一步是向命令提示符发送一些命令。请帮我做同样的事。
我已经尝试了几种方法,比如白库和进程库,但都不能通过。
*** Settings ***
Library WhiteLibrary
Library SeleniumLibrary
Library AutoItLibrary
Library OperatingSystem
Library Process
*** Test Cases ***
FirstWindowsTest
Launch Application C:\\Windows\\System32\\cmd.exe
Run Process start C:\\wyz.exe -c 命令提示符应该打开并写入打开另一个安装程序的命令。
发布于 2020-12-22 17:06:58
我正在寻找答案,无论如何,似乎你应该附加cmd窗口,以便能够使用按键/按特殊键与其交互:
Launch Application C:\\Windows\\System32\\cmd.exe
Attach Window ... and here i'm not able to find the rigth locator for this windows我试过了:
Attach Window title:"C:\\WINDOWS\\system32\\cmd.exe" "C:\WINDOWS\system32\cmd.exe"Attach Window title:"C:\WINDOWS\system32\cmd.exe"找不到标题窗口C:\WINDOWS\system32\cmd.exeAttach Window title:C:\\WINDOWS\\system32\\cmd.exe =>找不到标题窗口C:WINDOWSsystem32cmd.exeAttach Window id:"Console Window" Window"Attach Window id:Console Window =>找不到标题窗口=> =>找不到标题窗口=> =>找不到标题窗口SearchCriteria AutomationId="Console Window“Attach Window id:Console Window=>找不到带有SearchCriteria的窗口ClassName="ConsoleWindowClass"Attach Window class_name:ConsoleWindowClass =>找不到带有SearchCriteria的窗口=>找不到带有SearchCriteria ClassName=ConsoleWindowClass的窗口
https://stackoverflow.com/questions/57500814
复制相似问题