>>在新建窗口能捕获到控件,但是在编辑窗口中却无法定位,控件的name始终没有改变,在回放脚本时,却定位到了别的控件.
请问你用的VS哪个版本,2013吗?
你的意思是你记录的test是针对的新建窗口,但是你却用之前记录的test在编辑窗口上playback吗?如果这样,你有没有针对编辑窗口重新记录一个新的test,然后生成code,比较两个test的不同呢?
还有如果捕获错误控件,你要检查一下search property是不是它们两个控件具有相同的search property,如果这样,你要用独有的property作为search
property才行。
你可以添加Assertions去检查:

希望能帮到你!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.