当Listview具有项目时,编码的UI不检测Listview页脚中的内容 [英] Coded UI not detecting contents in Listview Footer when Listview has items

查看:80
本文介绍了当Listview具有项目时,编码的UI不检测Listview页脚中的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我们在CodedUI中为UWP解决了一个奇怪的问题。我们有一个包含项目和页脚的列表视图。当listview为空时,codedUI会检测listview页脚中的项目,但是当listview有项目时,我们无法在录制时检测到listview页脚中的内容。

We are acing a weird issue in CodedUI for UWP. We have a listview with items and footer. when ever listview is empty codedUI detects items in listview footer, but when listview has items we are not able to detect contents in listview footer while recording.

推荐答案

朋友,

编码的UI测试项目(通用窗口)支持  " Record"的功能。

Coded UI test project(universal windows) does not support the functionality of "Record".

因此,请在编码的UI测试构建器中使用十字线来捕获您的UWP应用中的控件,将它们添加到
UI控制地图生成代码,然后手动编写测试脚本,然后运行它。

So please use Cross-hair in Coded UI test builder to capture the controls in your UWP app, add them in to UI Control MapGenerate code and then write your test script by hand, and run it.

正确的项目模板如下所示:

the right project template is shown below:

祝你好运,

Fletch


这篇关于当Listview具有项目时,编码的UI不检测Listview页脚中的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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