编码的UI交叉头发在VS 2017上无效 [英] Coded UI cross-hair isn't working on VS 2017

查看:56
本文介绍了编码的UI交叉头发在VS 2017上无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用Windows 10和VS 2017的笔记本电脑,它允许我运行CodedUI测试。我使用CodedUI Test Builder设置了这些测试,即交叉头发,它允许我选择页面上的元素,然后我可以将其添加到我的UI Map
文件中。

I've recently started using a laptop with Windows 10 and VS 2017 which allows me to run CodedUI tests. I set up these tests using the CodedUI Test Builder, namely the cross-hair which allows me to select elements on a page which I can then add to my UI Map file.

以前我有一台运行VS 2017的Windows 8机器,上面的工作非常好。但是,自升级以来,测试构建器中的交叉头发功能不再起作用。例如,当我将十字准线悬停在一个按钮上时,之前这个按钮
会有一个轮廓围绕它;当我放开鼠标时,我将该控件添加到我的UIMap文件中。我目前发现的是,十字准线无法与页面上的任何元素进行交互。请参阅下面的我正在尝试执行
的操作示例:

Previously I had a Windows 8 machine running VS 2017 and the above worked absolutely fine. However, since the upgrade the cross-hair function in the test builder no longer works. When I hover the cross-hair over a button for example, previously this button would have an outline round it; when I let go of the mouse I then have that control added to my UIMap file. What I'm currently finding is that the cross-hair can't interact with any of the elements on the page. See below for an example of an action I am trying to execute:

有人知道这个问题可能是什么吗?这是由于VS 2017? Windows 10?我正在使用IE Edge的事实?我几乎陷入困境,直到我能够解决这个问题,所以会感谢所提供的任何帮助!

Is anyone aware of what the issue might be? Is it due to VS 2017? Windows 10? The fact I'm using IE Edge? I'm pretty much stuck until I can get this resolved so would appreciate any assistance on offer!

Andy

Andrew Tilston

Andrew Tilston

推荐答案

嗨Andy,

感谢您的提问。

请确保您正在测试哪种应用程序,因为VS中有两种类型的编码UI项目,一种用于Windows应用程序,如WPF,winform, IE等,另一个用于UWP app, 比如Windows 10上的Edge或其他橱窗商店应用程序。

Please make sure what kind of applications you are testing, as there are two types of coded UI project in VS, one is for Desktop app like WPF, winform, IE etc, another is for UWP app,  like Edge or other window store apps on windows 10.

对于桌面,请使用此项目:

For the desktop please use this project:

对于UWP应用,请使用:

For UWP app, please use the:

如果有效,请告诉我。

Please let me know if it works.

期待您的回复。

 

祝你好运,

Fletcher


这篇关于编码的UI交叉头发在VS 2017上无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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