空手道机器人-如何访问开始菜单和Windows搜索 [英] Karate Robot - How to access start menu and Windows search
问题描述
我当时正在和空手道机器人一起玩,真是太酷了.我开始运行它,并且可以遵循打开calc.exe的功能
I was playing around with Karate Robot, really cool. I got it running and could follow the feature which opened calc.exe
是否有一种方法可以访问Windows开始菜单和/或主要在任务栏上的搜索"按钮.
Is there a way to access the Windows Start menu and / or the Search button mainly on the taskbar.
我尝试用Karate Robot接触的用例是检查是否通过搜索找到了程序,并且在Windows开始"菜单(也位于特定文件夹下)中找到了程序.然后他们点击该应用并执行一些基本登录或一些基本操作.
The use case I am trying to reach with Karate Robot is to check if programs are found via the search and found in the Windows start menu (also under specific folders). And them click on the app and do some basic logon or some basic actions.
非常感谢您的建议.
推荐答案
UI自动化并不容易:)我建议您安装 Inspect.exe
,这里有一些提示:
UI automation is not easy :) I suggest you install Inspect.exe
, there are some tips here: https://github.com/intuit/karate/wiki/Karate-Robot-Windows-Install-Guide#windows-tips
无论如何,这在Windows 10上对我有效.单击开始
按钮:
Anyway, this works for me on Windows 10. To click the Start
button:
* click('/root/pane{Taskbar}/{Start}')
要进行搜索,这三行代码对我有用,甚至打开了 notepad
.因为单击开始
按钮会自动将焦点设置到搜索框:
And to do a search, these 3 lines did it for me and even opened notepad
. Because a click on the Start
button automatically sets focus to the search box:
* click('/root/pane{Taskbar}/{Start}')
* input('notepad')
* input(Key.ENTER)
这篇关于空手道机器人-如何访问开始菜单和Windows搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!