编码用户界面:如何在Cortana搜索中识别并输入搜索列表? [英] Coded UI:How to recognise and enter search list in Cortana search?

查看:80
本文介绍了编码用户界面:如何在Cortana搜索中识别并输入搜索列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我需要通过cortana搜索自动化应用程序。我无法识别cortana搜索并输入搜索列表。任何人都可以提供如何解决方案识别cortana搜索并通过CodedUI进入搜索列表?
$


感谢ingovance。
$


问候,

A.Manoj kumar。

Hi,

I need to automate apps through cortana search.I am unable to recognise cortana search and enter search list.Can any one provide solution on how to recognise cortana search and to enter search list through CodedUI?

Thanks inadvance.

Regards,
A.Manoj kumar.

推荐答案

嗨A.Manoj,

Hi A.Manoj,

好消息。我做到了。以下步骤供您试用。

Good news. I made it. Following steps for you to try.

使用  UWP编码的UI测试项目。我捕获了Contana app及其搜索框,如下所示:

By using UWP coded UI test project. I captured Contana app and its searchbox shown below:

我将Cortana置于开始

I put Cortana in Start

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1000304">

我还得到说出或输入  框:

 

我的代码如下:

           Keyboard.SendKeys("#");

            Playback.Wait(3000);
            
            Mouse.Click(UIMap.UIStartWindow.UIPinsviewList.UIUwpcodeduisgroupgrouGroup.UICortanaListItem);
            Playback.Wait(10000);

           Keyboard.SendKeys(UIMap.UICortanaWindow.UISearchboxEdit,"hi{Enter}");

然后我成功获得了Cortana的工作。

Then I successfully got the Cortana work.

请试一试,祝你好运!

祝你好运,

Fletch


这篇关于编码用户界面:如何在Cortana搜索中识别并输入搜索列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆