编码的用户界面:如何通过Cortana搜索选项启动应用程序. [英] Coded UI:How To Launch App Through Cortana Search Option.

查看:107
本文介绍了编码的用户界面:如何通过Cortana搜索选项启动应用程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用编码的UI测试项目(通用Windows)来自动化通用Windows应用.在Universal Windows Apps自动化期间,当我尝试通过Cortana搜索选项启动应用程序时,由于未找到UITest控件而出现异常错误 异常.

I am using Coded UI Test Project(Universal Windows) for Automating Universal Windows Apps. During Automation of Universal Windows Apps, When I try to launch application through Cortana search option I am getting Exception error as UITest Control Not Found Exception.

推荐答案

vennu,

当我在一边尝试您的代码时,我也遇到了与您相同的问题.

I also had the same issue as yours when I tried your code in my side.

但是有一个更好的解决方法,您可以使用以下代码直接启动日历应用程序:

But there is a better workaround, you could launch the calendar app directly using the code below:

XamlWindow.Launch(" microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.calendar");

XamlWindow.Launch("microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.calendar");

谢谢

Jack


这篇关于编码的用户界面:如何通过Cortana搜索选项启动应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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