编码UI:如何在窗口弹出窗口中查找html控件 [英] Coded UI: how to find html control in window popup

查看:73
本文介绍了编码UI:如何在窗口弹出窗口中查找html控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在研究IE中的自动编码ui项目,并试图在win form popup中找到html控件,但找不到它。


例如:我有一个win表单弹出窗口,可以通过以下代码找到它:


WinWindow winPopup = winPopup.SearchFor< WinWindow>(new {Name =" xxxx"},new {ClassName =" xxxx"});


我也可以在弹出窗口中找到WinEdit和WinButton控件。


但是,我无法在弹出窗口中找到htmltable。我尝试了很多方法(searchFor,SearchProperties.Add ..)但它不起作用。


有什么想法吗?谢谢


解决方案

嗨hoaphung1,


欢迎来到MSDN论坛。


< span style ="color:#666666; line-height:107%; font-family:'Segoe UI',sans-serif; font-size:10pt">>>

但是,我在弹出窗口中找不到htmltable。我尝试了很多方法(searchFor,SearchProperties.Add ..)但它不起作用。


如何在弹出窗口中找到htmltable的代码?执行代码时,您是否遇到任何错误消息?请分享完整的消息和截图
给我,这将有助于分析这个问题。


请使用编码的UI测试构建器来识别弹出窗口中的htmltable,找到htmltable的属性并分享屏幕截图。感谢您的理解。


关于在编码的UI项目中查找HTML控件的线程可能对您有所帮助,请看一下:




哪些HTML标记对于查找
编码用户界面中的搜索属性
更有用




无法在编码的UI项目中搜索HTML控件


问候,


Judyzh


Hi,

I am working on an automation coded ui project in IE and try to find html control in win form popup but cannot find it.

For example: I have an win form popup and can find it with below code:

WinWindow winPopup = winPopup.SearchFor<WinWindow>(new { Name = "xxxx" }, new { ClassName = "xxxx" });

I can find the WinEdit and WinButton controls within the popup as well.

However, i cannot find the htmltable within the popup. I tried many way (searchFor, SearchProperties.Add ..) but it does not work.

There is any idea? Thanks

解决方案

Hi hoaphung1,

Welcome to the MSDN forum.

>> However, i cannot find the htmltable within the popup. I tried many way (searchFor, SearchProperties.Add ..) but it does not work.

How’s the code of find the htmltable within the popup? When you execute the code, do you meet any error messages? Please share the full message and the screenshot to me, that will be helpful to analyze this issue.

Please use coded UI test builder to recognition the htmltable in the popup, find the properties of the htmltable and share the screenshot. Thanks for your understanding.

Following threads about find HTML control in coded UI project might helpful for you, please take a look:

# Which HTML tags are more useful for finding controls for Search Properties in Coded UI

# Not able to search HTML control in Coded UI project

Regards,

Judyzh


这篇关于编码UI:如何在窗口弹出窗口中查找html控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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