无法找到要选择用于播放脚本的确切html标识符.在Visual Studio中使用CodeUI框架 [英] Unable to find the exact html identifier to be chosen to play the script. Using CodeUI framework in visual studio

查看:61
本文介绍了无法找到要选择用于播放脚本的确切html标识符.在Visual Studio中使用CodeUI框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试访问一个下拉列表,并且HTML视图为:

I am trying to access a dropdown and the HTML view is:

< textarea id =''arid_WIN_0_536871001''; class ="text sr"行="1" arautoctt ="400" arautocak ="0" searchonly ="1" mdd ="1" readonly =" mstyle ="2" armenu ="SHR:DataValues" style =" top:14px;左:0px;宽度:145像素;高度:21像素;" maxlen ="20" cols ="20". wrap ="off" title =""/"/textarea"

<textarea id="arid_WIN_0_536871001" class="text sr " rows="1" arautoctt="400" arautocak="0" searchonly="1" mdd="1" readonly="" mstyle="2" armenu="SHR:DataValues" style="top:14px; left:0px; width:145px; height:21px;" maxlen="20" cols="20" wrap="off" title=""></textarea>

当我在codedUI中使用HTML文本区域时,它会引发controlnotfound异常.

When I am using HTML textarea in codedUI, it is throwing controlnotfound exception.

我也使用HTMLImage或Cell,我也一样.

Of I use HTMLImage or Cell also, I am getting the same.

我做错了还是没有参考.是新手.感谢您的帮助

Am I going wrong or is there any reference. Am a newbie. Appreciate your help

推荐答案

您好Sekhar483,

Hi Sekhar483,

您能和我们分享一个关于UI的简单屏幕截图吗?

Could you share us a simple screen shot about the UI?

您是如何创建编码的UI测试项目的?

How did you create your coded UI test project?

要真正解决此问题,最好与我们分享一个驱动器有关HTML Web应用程序的简单示例.

To really repro this issue, it would be better if you could share us a simple sample about the HTML web app with one drive.

>>当我在codedUI中使用HTML文本区域时,它会引发controlnotfound异常.

>>When I am using HTML textarea in codedUI, it is throwing controlnotfound exception.

您可以收集详细的日志消息吗?

Could you collect the detailed log messages?

https://msdn.microsoft.com/en-us/library/jj159363.aspx?f = 255& MSPPError = -2147217396

对于找不到控件的异常,请确保哪个控件产生了此问题,还请确保它是否与搜索属性有关或与其他属性有关.

For the controlnot found exception, please make sure that which control generated this issue, please also make sure that whether it is related to the search properties or others.

最好的问候,

Jack


这篇关于无法找到要选择用于播放脚本的确切html标识符.在Visual Studio中使用CodeUI框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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